Package org.apache.solr.search
Class DocSetBuilder
- java.lang.Object
-
- org.apache.solr.search.DocSetBuilder
-
public final class DocSetBuilder extends Object
Adapted from DocIdSetBuilder to build DocSets- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description DocSetBuilder(int maxDoc, long costEst)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int doc)intadd(org.apache.lucene.index.TermsEnum te, int base)Returns the number of terms visitedvoidadd(org.apache.lucene.search.DocIdSetIterator iter, int base)static voidadd(org.apache.lucene.util.FixedBitSet bitSet, org.apache.lucene.search.DocIdSetIterator iter, int base)DocSetbuild(org.apache.lucene.util.FixedBitSet filter)DocSetbuildUniqueInOrder(org.apache.lucene.util.FixedBitSet filter)Only use this if you know there were no duplicates and that docs were collected in-order!voidgrow(int numDocs)
-
-
-
Method Detail
-
add
public void add(org.apache.lucene.search.DocIdSetIterator iter, int base) throws IOException- Throws:
IOException
-
add
public static void add(org.apache.lucene.util.FixedBitSet bitSet, org.apache.lucene.search.DocIdSetIterator iter, int base) throws IOException- Throws:
IOException
-
add
public int add(org.apache.lucene.index.TermsEnum te, int base) throws IOExceptionReturns the number of terms visited- Throws:
IOException
-
grow
public void grow(int numDocs)
-
add
public void add(int doc)
-
build
public DocSet build(org.apache.lucene.util.FixedBitSet filter)
-
buildUniqueInOrder
public DocSet buildUniqueInOrder(org.apache.lucene.util.FixedBitSet filter)
Only use this if you know there were no duplicates and that docs were collected in-order!
-
-