public final class DocSetBuilder extends Object
Constructor and Description |
---|
DocSetBuilder(int maxDoc,
long costEst) |
Modifier and Type | Method and Description |
---|---|
void |
add(DocIdSetIterator iter,
int base) |
static void |
add(FixedBitSet bitSet,
DocIdSetIterator iter,
int base) |
void |
add(int doc) |
int |
add(TermsEnum te,
int base)
Returns the number of terms visited
|
DocSet |
build(FixedBitSet filter) |
DocSet |
buildUniqueInOrder(FixedBitSet filter)
Only use this if you know there were no duplicates and that docs were collected in-order!
|
void |
grow(int numDocs) |
public void add(DocIdSetIterator iter, int base) throws IOException
IOException
public static void add(FixedBitSet bitSet, DocIdSetIterator iter, int base) throws IOException
IOException
public int add(TermsEnum te, int base) throws IOException
IOException
public void grow(int numDocs)
public void add(int doc)
public DocSet build(FixedBitSet filter)
public DocSet buildUniqueInOrder(FixedBitSet filter)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.