Class FixedGapTermsIndexReader
- java.lang.Object
-
- org.apache.lucene.codecs.blockterms.TermsIndexReaderBase
-
- org.apache.lucene.codecs.blockterms.FixedGapTermsIndexReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Accountable
public class FixedGapTermsIndexReader extends TermsIndexReaderBase
TermsIndexReader for simple every Nth terms indexes.- See Also:
FixedGapTermsIndexWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classFixedGapTermsIndexReader.FieldIndexDataprivate classFixedGapTermsIndexReader.IndexEnum-
Nested classes/interfaces inherited from class org.apache.lucene.codecs.blockterms.TermsIndexReaderBase
TermsIndexReaderBase.FieldIndexEnum
-
-
Field Summary
Fields Modifier and Type Field Description private intblocksize(package private) java.util.HashMap<java.lang.String,FixedGapTermsIndexReader.FieldIndexData>fieldsprivate longindexIntervalprivate intpackedIntsVersionprivate static intPAGED_BYTES_BITSprivate PagedBytes.ReadertermBytesReader-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description FixedGapTermsIndexReader(SegmentReadState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.util.Collection<Accountable>getChildResources()Returns nested resources of this class.TermsIndexReaderBase.FieldIndexEnumgetFieldEnum(FieldInfo fieldInfo)longramBytesUsed()Return the memory usage of this object in bytes.private voidseekDir(IndexInput input)booleansupportsOrd()java.lang.StringtoString()
-
-
-
Field Detail
-
indexInterval
private final long indexInterval
-
packedIntsVersion
private final int packedIntsVersion
-
blocksize
private final int blocksize
-
PAGED_BYTES_BITS
private static final int PAGED_BYTES_BITS
- See Also:
- Constant Field Values
-
termBytesReader
private final PagedBytes.Reader termBytesReader
-
fields
final java.util.HashMap<java.lang.String,FixedGapTermsIndexReader.FieldIndexData> fields
-
-
Constructor Detail
-
FixedGapTermsIndexReader
public FixedGapTermsIndexReader(SegmentReadState state) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
supportsOrd
public boolean supportsOrd()
- Specified by:
supportsOrdin classTermsIndexReaderBase
-
getFieldEnum
public TermsIndexReaderBase.FieldIndexEnum getFieldEnum(FieldInfo fieldInfo)
- Specified by:
getFieldEnumin classTermsIndexReaderBase
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classTermsIndexReaderBase- Throws:
java.io.IOException
-
seekDir
private void seekDir(IndexInput input) throws java.io.IOException
- Throws:
java.io.IOException
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
public java.util.Collection<Accountable> getChildResources()
Description copied from interface:AccountableReturns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- See Also:
Accountables
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-