public abstract class TermsIndexReaderBase extends Object implements Closeable
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 int |
getDivisor() |
abstract TermsIndexReaderBase.FieldIndexEnum |
getFieldEnum(FieldInfo fieldInfo) |
abstract long |
ramBytesUsed()
Returns approximate RAM bytes used
|
abstract boolean |
supportsOrd() |
public abstract TermsIndexReaderBase.FieldIndexEnum getFieldEnum(FieldInfo fieldInfo)
public abstract void close() throws IOException
close
in interface Closeable
IOException
public abstract boolean supportsOrd()
public abstract int getDivisor()
public abstract long ramBytesUsed()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.