Class FieldsIndexReader
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.FieldsIndex
-
- org.apache.lucene.codecs.compressing.FieldsIndexReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Cloneable,Accountable
final class FieldsIndexReader extends FieldsIndex
-
-
Field Summary
Fields Modifier and Type Field Description private static longBASE_RAM_BYTES_USEDprivate intblockShiftprivate DirectMonotonicReaderdocsprivate longdocsEndPointerprivate DirectMonotonicReader.MetadocsMetaprivate longdocsStartPointerprivate IndexInputindexInputprivate intmaxDocprivate longmaxPointerprivate intnumChunksprivate DirectMonotonicReaderstartPointersprivate longstartPointersEndPointerprivate DirectMonotonicReader.MetastartPointersMetaprivate longstartPointersStartPointer-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFieldsIndexReader(FieldsIndexReader other)(package private)FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, IndexInput metaIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcheckIntegrity()Check the integrity of the index.FieldsIndexclone()voidclose()longgetMaxPointer()(package private) longgetStartPointer(int docID)Get the start pointer for the block that contains the given docID.longramBytesUsed()Return the memory usage of this object in bytes.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED
-
maxDoc
private final int maxDoc
-
blockShift
private final int blockShift
-
numChunks
private final int numChunks
-
docsMeta
private final DirectMonotonicReader.Meta docsMeta
-
startPointersMeta
private final DirectMonotonicReader.Meta startPointersMeta
-
indexInput
private final IndexInput indexInput
-
docsStartPointer
private final long docsStartPointer
-
docsEndPointer
private final long docsEndPointer
-
startPointersStartPointer
private final long startPointersStartPointer
-
startPointersEndPointer
private final long startPointersEndPointer
-
docs
private final DirectMonotonicReader docs
-
startPointers
private final DirectMonotonicReader startPointers
-
maxPointer
private final long maxPointer
-
-
Constructor Detail
-
FieldsIndexReader
FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, IndexInput metaIn) throws java.io.IOException
- Throws:
java.io.IOException
-
FieldsIndexReader
private FieldsIndexReader(FieldsIndexReader other) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getStartPointer
long getStartPointer(int docID)
Description copied from class:FieldsIndexGet the start pointer for the block that contains the given docID.- Specified by:
getStartPointerin classFieldsIndex
-
clone
public FieldsIndex clone()
- Specified by:
clonein classFieldsIndex
-
getMaxPointer
public long getMaxPointer()
-
checkIntegrity
void checkIntegrity() throws java.io.IOExceptionDescription copied from class:FieldsIndexCheck the integrity of the index.- Specified by:
checkIntegrityin classFieldsIndex- Throws:
java.io.IOException
-
-