abstract static class TermCollectingRewrite.TermCollector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
AttributeSource |
attributes
attributes used for communication with the enum
|
protected LeafReaderContext |
readerContext |
protected IndexReaderContext |
topReaderContext |
Constructor and Description |
---|
TermCollector() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
collect(BytesRef bytes)
return false to stop collecting
|
abstract void |
setNextEnum(TermsEnum termsEnum)
the next segment's
TermsEnum that is used to collect terms |
void |
setReaderContext(IndexReaderContext topReaderContext,
LeafReaderContext readerContext) |
protected LeafReaderContext readerContext
protected IndexReaderContext topReaderContext
public final AttributeSource attributes
public void setReaderContext(IndexReaderContext topReaderContext, LeafReaderContext readerContext)
public abstract boolean collect(BytesRef bytes) throws java.io.IOException
java.io.IOException