public abstract class TermsIndexReaderBase extends java.lang.Object implements java.io.Closeable, Accountable
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.Modifier and Type | Class and Description |
---|---|
static class |
TermsIndexReaderBase.FieldIndexEnum
Similar to TermsEnum, except, the only "metadata" it
reports for a given indexed term is the long fileOffset
into the main terms dictionary file.
|
Constructor and Description |
---|
TermsIndexReaderBase() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
abstract TermsIndexReaderBase.FieldIndexEnum |
getFieldEnum(FieldInfo fieldInfo) |
abstract boolean |
supportsOrd() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources, ramBytesUsed
public abstract TermsIndexReaderBase.FieldIndexEnum getFieldEnum(FieldInfo fieldInfo)
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public abstract boolean supportsOrd()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.