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 class
FixedGapTermsIndexReader.FieldIndexData
private class
FixedGapTermsIndexReader.IndexEnum
-
Nested classes/interfaces inherited from class org.apache.lucene.codecs.blockterms.TermsIndexReaderBase
TermsIndexReaderBase.FieldIndexEnum
-
-
Field Summary
Fields Modifier and Type Field Description private int
blocksize
(package private) java.util.HashMap<java.lang.String,FixedGapTermsIndexReader.FieldIndexData>
fields
private long
indexInterval
private int
packedIntsVersion
private static int
PAGED_BYTES_BITS
private PagedBytes.Reader
termBytesReader
-
Constructor Summary
Constructors Constructor Description FixedGapTermsIndexReader(SegmentReadState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Collection<Accountable>
getChildResources()
Returns nested resources of this class.TermsIndexReaderBase.FieldIndexEnum
getFieldEnum(FieldInfo fieldInfo)
long
ramBytesUsed()
Return the memory usage of this object in bytes.private void
seekDir(IndexInput input)
boolean
supportsOrd()
java.lang.String
toString()
-
-
-
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:
supportsOrd
in classTermsIndexReaderBase
-
getFieldEnum
public TermsIndexReaderBase.FieldIndexEnum getFieldEnum(FieldInfo fieldInfo)
- Specified by:
getFieldEnum
in classTermsIndexReaderBase
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in 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:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
getChildResources
public java.util.Collection<Accountable> getChildResources()
Description copied from interface:Accountable
Returns 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:
toString
in classjava.lang.Object
-
-