Package org.apache.solr.search
Class BitDocSet
- java.lang.Object
- 
- org.apache.solr.search.DocSet
- 
- org.apache.solr.search.BitDocSet
 
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllTo(org.apache.lucene.util.FixedBitSet target)Adds all the docs from this set to the target.DocSetandNot(DocSet other)Returns the documents in this set that are not in the other set.intandNotSize(DocSet other)Returns the number of documents in this set that are not in the other set.BitDocSetclone()booleanexists(int doc)Returns true of the doc exists in the set.org.apache.lucene.util.FixedBitSetgetBits()ABitsthat has fast random access (as is generally required of Bits).Collection<org.apache.lucene.util.Accountable>getChildResources()protected org.apache.lucene.util.FixedBitSetgetFixedBitSet()protected org.apache.lucene.util.FixedBitSetgetFixedBitSetClone()DocSetintersection(DocSet other)Returns the intersection of this set with another set.intintersectionSize(DocSet other)Returns the number of documents of the intersection of this set with another set.booleanintersects(DocSet other)Returns true if these sets have any elements in commonDocIteratoriterator()Returns an ordered iterator of the documents in the set.org.apache.lucene.search.DocIdSetIteratoriterator(org.apache.lucene.index.LeafReaderContext context)Returns an ordered iterator of the documents in the set for the specifiedLeafReaderContext.org.apache.solr.search.DocSetQuerymakeQuery()Returns a Query matching these documents with a score of 1.longramBytesUsed()intsize()Returns the number of documents in the set.StringtoString()DocSetunion(DocSet other)Returns the union of this set with another set.intunionSize(DocSet other)Returns the number of documents of the union of this set with another set.
 
- 
- 
- 
Constructor Detail- 
BitDocSetpublic BitDocSet() 
 - 
BitDocSetpublic BitDocSet(org.apache.lucene.util.FixedBitSet bits) Construct a BitDocSet. The capacity of theFixedBitSetshould be at least maxDoc()
 - 
BitDocSetpublic BitDocSet(org.apache.lucene.util.FixedBitSet bits, int size)Construct a BitDocSet, and provides the number of set bits. The capacity of theFixedBitSetshould be at least maxDoc()
 
- 
 - 
Method Detail- 
iteratorpublic DocIterator iterator() Description copied from class:DocSetReturns an ordered iterator of the documents in the set. Any scoring information is meaningless.
 - 
getBitspublic org.apache.lucene.util.FixedBitSet getBits() Description copied from class:DocSetABitsthat has fast random access (as is generally required of Bits). It may be necessary to do work to build this.
 - 
getFixedBitSetprotected org.apache.lucene.util.FixedBitSet getFixedBitSet() - Specified by:
- getFixedBitSetin class- DocSet
 
 - 
getFixedBitSetCloneprotected org.apache.lucene.util.FixedBitSet getFixedBitSetClone() - Specified by:
- getFixedBitSetClonein class- DocSet
 
 - 
sizepublic int size() Description copied from class:DocSetReturns the number of documents in the set.
 - 
existspublic boolean exists(int doc) Returns true of the doc exists in the set. Should only be called when doc <FixedBitSet.length().
 - 
intersectionpublic DocSet intersection(DocSet other) Description copied from class:DocSetReturns the intersection of this set with another set. Neither set is modified - a new DocSet is created and returned.- Specified by:
- intersectionin class- DocSet
- Returns:
- a DocSet representing the intersection
 
 - 
intersectionSizepublic int intersectionSize(DocSet other) Description copied from class:DocSetReturns the number of documents of the intersection of this set with another set. May be more efficient than actually creating the intersection and then getting its size.- Specified by:
- intersectionSizein class- DocSet
 
 - 
intersectspublic boolean intersects(DocSet other) Description copied from class:DocSetReturns true if these sets have any elements in common- Specified by:
- intersectsin class- DocSet
 
 - 
unionSizepublic int unionSize(DocSet other) Description copied from class:DocSetReturns the number of documents of the union of this set with another set. May be more efficient than actually creating the union and then getting its size.
 - 
andNotSizepublic int andNotSize(DocSet other) Description copied from class:DocSetReturns the number of documents in this set that are not in the other set.- Overrides:
- andNotSizein class- DocSet
 
 - 
addAllTopublic void addAllTo(org.apache.lucene.util.FixedBitSet target) Description copied from class:DocSetAdds all the docs from this set to the target. The target should be sized large enough to accommodate all of the documents before calling this method.
 - 
andNotpublic DocSet andNot(DocSet other) Description copied from class:DocSetReturns the documents in this set that are not in the other set. Neither set is modified - a new DocSet is created and returned.
 - 
unionpublic DocSet union(DocSet other) Description copied from class:DocSetReturns the union of this set with another set. Neither set is modified - a new DocSet is created and returned.
 - 
iteratorpublic org.apache.lucene.search.DocIdSetIterator iterator(org.apache.lucene.index.LeafReaderContext context) Description copied from class:DocSetReturns an ordered iterator of the documents in the set for the specifiedLeafReaderContext. NOTE: may return null if there are no matching documents for this leaf.
 - 
makeQuerypublic org.apache.solr.search.DocSetQuery makeQuery() Description copied from class:DocSetReturns a Query matching these documents with a score of 1. Note that DocSets do not refer to deleted docs.
 - 
ramBytesUsedpublic long ramBytesUsed() 
 - 
getChildResourcespublic Collection<org.apache.lucene.util.Accountable> getChildResources() 
 
- 
 
-