public abstract class TermsIndexReaderBase extends Object implements 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.
|
NULL_ACCOUNTABLE
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 IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public abstract boolean supportsOrd()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.