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.TermEnum
ATermEnum
navigating 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 void
close()
Closes the enumeration to further activity, freeing resources.int
docFreq()
Returns the docFreq of the current Term in the enumeration.boolean
next()
Increments the enumeration to the next element.org.apache.lucene.index.Term
term()
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:
next
in classorg.apache.lucene.index.TermEnum
-
term
public org.apache.lucene.index.Term term()
Returns the current Term in the enumeration.- Specified by:
term
in classorg.apache.lucene.index.TermEnum
-
docFreq
public int docFreq()
Returns the docFreq of the current Term in the enumeration.- Specified by:
docFreq
in classorg.apache.lucene.index.TermEnum
-
close
public void close()
Closes the enumeration to further activity, freeing resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.lucene.index.TermEnum
-
-