public abstract class FilteredTermEnum extends TermEnum
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
Modifier and Type | Field and Description |
---|---|
protected TermEnum |
actualEnum
the delegate enum - to set this member use
setEnum(org.apache.lucene.index.TermEnum) |
protected Term |
currentTerm
the current term
|
Constructor and Description |
---|
FilteredTermEnum() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the enumeration to further activity, freeing resources.
|
abstract float |
difference()
Equality measure on the term
|
int |
docFreq()
Returns the docFreq of the current Term in the enumeration.
|
protected abstract boolean |
endEnum()
Indicates the end of the enumeration has been reached
|
boolean |
next()
Increments the enumeration to the next element.
|
protected void |
setEnum(TermEnum actualEnum)
use this method to set the actual TermEnum (e.g.
|
Term |
term()
Returns the current Term in the enumeration.
|
protected abstract boolean |
termCompare(Term term)
Equality compare on the term
|
protected Term currentTerm
protected TermEnum actualEnum
setEnum(org.apache.lucene.index.TermEnum)
protected abstract boolean termCompare(Term term)
public abstract float difference()
protected abstract boolean endEnum()
protected void setEnum(TermEnum actualEnum) throws java.io.IOException
java.io.IOException
public int docFreq()
public boolean next() throws java.io.IOException
public Term term()
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.