Class FieldsIndexReader
java.lang.Object
org.apache.lucene.codecs.compressing.FieldsIndex
org.apache.lucene.codecs.compressing.FieldsIndexReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable,Accountable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final intprivate final DirectMonotonicReaderprivate final longprivate final DirectMonotonicReader.Metaprivate final longprivate final IndexInputprivate final intprivate final longprivate final intprivate final DirectMonotonicReaderprivate final longprivate final DirectMonotonicReader.Metaprivate final longFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate(package private)FieldsIndexReader(Directory dir, String name, String suffix, String extension, String codecName, byte[] id, IndexInput metaIn) -
Method Summary
Modifier and TypeMethodDescription(package private) voidCheck the integrity of the index.clone()voidclose()long(package private) longgetStartPointer(int docID) Get the start pointer for the block that contains the given docID.longReturn the memory usage of this object in bytes.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
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
-
startPointersMeta
-
indexInput
-
docsStartPointer
private final long docsStartPointer -
docsEndPointer
private final long docsEndPointer -
startPointersStartPointer
private final long startPointersStartPointer -
startPointersEndPointer
private final long startPointersEndPointer -
docs
-
startPointers
-
maxPointer
private final long maxPointer
-
-
Constructor Details
-
FieldsIndexReader
FieldsIndexReader(Directory dir, String name, String suffix, String extension, String codecName, byte[] id, IndexInput metaIn) throws IOException - Throws:
IOException
-
FieldsIndexReader
- Throws:
IOException
-
-
Method Details
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
close
- Throws:
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
- Specified by:
clonein classFieldsIndex
-
getMaxPointer
public long getMaxPointer() -
checkIntegrity
Description copied from class:FieldsIndexCheck the integrity of the index.- Specified by:
checkIntegrityin classFieldsIndex- Throws:
IOException
-