Package org.apache.lucene.index
Class FilterIndexReader.FilterTermEnum
- java.lang.Object
-
- org.apache.lucene.index.TermEnum
-
- org.apache.lucene.index.FilterIndexReader.FilterTermEnum
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- FilterIndexReader
public static class FilterIndexReader.FilterTermEnum extends TermEnum
Base class for filteringTermEnumimplementations.
-
-
Constructor Summary
Constructors Constructor Description FilterTermEnum(TermEnum in)
-
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.Termterm()Returns the current Term in the enumeration.
-
-
-
Field Detail
-
in
protected TermEnum in
-
-
Constructor Detail
-
FilterTermEnum
public FilterTermEnum(TermEnum in)
-
-
Method Detail
-
next
public boolean next() throws IOExceptionDescription copied from class:TermEnumIncrements the enumeration to the next element. True if one exists.- Specified by:
nextin classTermEnum- Throws:
IOException
-
term
public Term term()
Description copied from class:TermEnumReturns the current Term in the enumeration.
-
docFreq
public int docFreq()
Description copied from class:TermEnumReturns the docFreq of the current Term in the enumeration.
-
close
public void close() throws IOExceptionDescription copied from class:TermEnumCloses the enumeration to further activity, freeing resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classTermEnum- Throws:
IOException
-
-