Closeable, AutoCloseablepublic class PrefixTermEnum extends FilteredTermEnum
Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.
actualEnum, currentTerm| Constructor | Description |
|---|---|
PrefixTermEnum(IndexReader reader,
Term prefix) |
| Modifier and Type | Method | Description |
|---|---|---|
float |
difference() |
Equality measure on the term
|
protected boolean |
endEnum() |
Indicates the end of the enumeration has been reached
|
protected Term |
getPrefixTerm() |
|
protected boolean |
termCompare(Term term) |
Equality compare on the term
|
public PrefixTermEnum(IndexReader reader, Term prefix) throws IOException
IOExceptionpublic float difference()
FilteredTermEnumdifference in class FilteredTermEnumprotected boolean endEnum()
FilteredTermEnumendEnum in class FilteredTermEnumprotected Term getPrefixTerm()
protected boolean termCompare(Term term)
FilteredTermEnumtermCompare in class FilteredTermEnumCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.