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 filteringTermEnum
implementations.
-
-
Constructor Summary
Constructors Constructor Description FilterTermEnum(TermEnum in)
-
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.Term
term()
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 IOException
Description copied from class:TermEnum
Increments the enumeration to the next element. True if one exists.- Specified by:
next
in classTermEnum
- Throws:
IOException
-
term
public Term term()
Description copied from class:TermEnum
Returns the current Term in the enumeration.
-
docFreq
public int docFreq()
Description copied from class:TermEnum
Returns the docFreq of the current Term in the enumeration.
-
close
public void close() throws IOException
Description copied from class:TermEnum
Closes the enumeration to further activity, freeing resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classTermEnum
- Throws:
IOException
-
-