org.elasticsearch.common.lucene.docset
Class OpenBitDocSet

java.lang.Object
  extended by org.apache.lucene.search.DocIdSet
      extended by org.elasticsearch.common.lucene.docset.DocSet
          extended by org.elasticsearch.common.lucene.docset.OpenBitDocSet
All Implemented Interfaces:
org.apache.lucene.util.Bits

public class OpenBitDocSet
extends DocSet


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits
org.apache.lucene.util.Bits.MatchAllBits, org.apache.lucene.util.Bits.MatchNoBits
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.lucene.docset.DocSet
EMPTY_DOC_SET
 
Fields inherited from class org.apache.lucene.search.DocIdSet
EMPTY_DOCIDSET
 
Fields inherited from interface org.apache.lucene.util.Bits
EMPTY_ARRAY
 
Constructor Summary
OpenBitDocSet(org.apache.lucene.search.DocIdSetIterator disi, int numBits)
           
OpenBitDocSet(int numBits)
           
OpenBitDocSet(org.apache.lucene.util.OpenBitSet set)
           
 
Method Summary
 boolean get(int doc)
           
 boolean isCacheable()
           
 org.apache.lucene.search.DocIdSetIterator iterator()
           
 int length()
           
 org.apache.lucene.util.OpenBitSet set()
           
 long sizeInBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenBitDocSet

public OpenBitDocSet(org.apache.lucene.util.OpenBitSet set)

OpenBitDocSet

public OpenBitDocSet(int numBits)

OpenBitDocSet

public OpenBitDocSet(org.apache.lucene.search.DocIdSetIterator disi,
                     int numBits)
              throws IOException
Throws:
IOException
Method Detail

length

public int length()

isCacheable

public boolean isCacheable()
Overrides:
isCacheable in class org.apache.lucene.search.DocIdSet

set

public org.apache.lucene.util.OpenBitSet set()

get

public boolean get(int doc)
Specified by:
get in interface org.apache.lucene.util.Bits
Specified by:
get in class DocSet

iterator

public org.apache.lucene.search.DocIdSetIterator iterator()
                                                   throws IOException
Specified by:
iterator in class org.apache.lucene.search.DocIdSet
Throws:
IOException

sizeInBytes

public long sizeInBytes()
Specified by:
sizeInBytes in class DocSet


Copyright © 2009-2012. All Rights Reserved.