Class TermsIndexReaderBase
java.lang.Object
org.apache.lucene.codecs.blockterms.TermsIndexReaderBase
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
FixedGapTermsIndexReader,VariableGapTermsIndexReader
BlockTermsReader interacts with an instance of this class to manage its terms index. The
writer must accept indexed terms (many pairs of BytesRef text + long fileOffset), and then this
reader must be able to retrieve the nearest index term to a provided term text.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimilar to TermsEnum, except, the only "metadata" it reports for a given indexed term is the long fileOffset into the main terms dictionary file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract TermsIndexReaderBase.FieldIndexEnumgetFieldEnum(FieldInfo fieldInfo) abstract boolean
-
Constructor Details
-
TermsIndexReaderBase
public TermsIndexReaderBase()
-
-
Method Details
-
getFieldEnum
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
supportsOrd
public abstract boolean supportsOrd()
-