Class InstantiatedTermEnum
- java.lang.Object
-
- org.apache.lucene.index.TermEnum
-
- org.apache.lucene.store.instantiated.InstantiatedTermEnum
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class InstantiatedTermEnum extends org.apache.lucene.index.TermEnumATermEnumnavigating anInstantiatedIndexReader.
-
-
Constructor Summary
Constructors Constructor Description InstantiatedTermEnum(InstantiatedIndexReader reader)InstantiatedTermEnum(InstantiatedIndexReader reader, int startPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the enumeration to further activity, freeing resources.intdocFreq()Returns the docFreq of the current Term in the enumeration.booleannext()Increments the enumeration to the next element.org.apache.lucene.index.Termterm()Returns the current Term in the enumeration.
-
-
-
Constructor Detail
-
InstantiatedTermEnum
public InstantiatedTermEnum(InstantiatedIndexReader reader)
-
InstantiatedTermEnum
public InstantiatedTermEnum(InstantiatedIndexReader reader, int startPosition)
-
-
Method Detail
-
next
public boolean next()
Increments the enumeration to the next element. True if one exists.- Specified by:
nextin classorg.apache.lucene.index.TermEnum
-
term
public org.apache.lucene.index.Term term()
Returns the current Term in the enumeration.- Specified by:
termin classorg.apache.lucene.index.TermEnum
-
docFreq
public int docFreq()
Returns the docFreq of the current Term in the enumeration.- Specified by:
docFreqin classorg.apache.lucene.index.TermEnum
-
close
public void close()
Closes the enumeration to further activity, freeing resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.index.TermEnum
-
-