Class LegacyFieldsIndexReader
java.lang.Object
org.apache.lucene.codecs.compressing.FieldsIndex
org.apache.lucene.codecs.compressing.LegacyFieldsIndexReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable,Accountable
Random-access reader for
FieldsIndexWriter.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[](package private) final long[]private static final long(package private) final int[](package private) final PackedInts.Reader[](package private) final int(package private) final long[](package private) final PackedInts.Reader[]Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intblock(int docID) (package private) voidCheck the integrity of the index.clone()voidclose()Returns nested resources of this class.(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.private intrelativeChunk(int block, int relativeDoc) private intrelativeDocBase(int block, int relativeChunk) private longrelativeStartPointer(int block, int relativeChunk) toString()
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
maxDoc
final int maxDoc -
docBases
final int[] docBases -
startPointers
final long[] startPointers -
avgChunkDocs
final int[] avgChunkDocs -
avgChunkSizes
final long[] avgChunkSizes -
docBasesDeltas
-
startPointersDeltas
-
-
Constructor Details
-
LegacyFieldsIndexReader
LegacyFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws IOException - Throws:
IOException
-
-
Method Details
-
block
private int block(int docID) -
relativeDocBase
private int relativeDocBase(int block, int relativeChunk) -
relativeStartPointer
private long relativeStartPointer(int block, int relativeChunk) -
relativeChunk
private int relativeChunk(int block, int relativeDoc) -
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
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
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:
-
toString
-
close
- Throws:
IOException
-
checkIntegrity
Description copied from class:FieldsIndexCheck the integrity of the index.- Specified by:
checkIntegrityin classFieldsIndex- Throws:
IOException
-