|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.TermEnum
org.apache.lucene.search.FilteredTermEnum
org.apache.lucene.search.SingleTermEnum
public class SingleTermEnum
Subclass of FilteredTermEnum for enumerating a single term.
This can be used by MultiTermQuerys that need only visit one term,
but want to preserve MultiTermQuery semantics such as
MultiTermQuery.rewriteMethod.
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.search.FilteredTermEnum |
|---|
actualEnum, currentTerm |
| Constructor Summary | |
|---|---|
SingleTermEnum(IndexReader reader,
Term singleTerm)
Creates a new SingleTermEnum. |
|
| Method Summary | |
|---|---|
float |
difference()
Equality measure on the term |
protected boolean |
endEnum()
Indicates the end of the enumeration has been reached |
protected boolean |
termCompare(Term term)
Equality compare on the term |
| Methods inherited from class org.apache.lucene.search.FilteredTermEnum |
|---|
close, docFreq, next, setEnum, term |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleTermEnum(IndexReader reader,
Term singleTerm)
throws IOException
SingleTermEnum.
After calling the constructor the enumeration is already pointing to the term, if it exists.
IOException| Method Detail |
|---|
public float difference()
FilteredTermEnum
difference in class FilteredTermEnumprotected boolean endEnum()
FilteredTermEnum
endEnum in class FilteredTermEnumprotected boolean termCompare(Term term)
FilteredTermEnum
termCompare in class FilteredTermEnum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||