Class LegacyFieldsIndexReader
java.lang.Object
org.apache.lucene.backward_codecs.lucene50.compressing.FieldsIndex
org.apache.lucene.backward_codecs.lucene50.compressing.LegacyFieldsIndexReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int[]
(package private) final long[]
(package private) final int[]
(package private) final PackedInts.Reader[]
(package private) final int
(package private) final long[]
(package private) final PackedInts.Reader[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
block
(int docID) (package private) void
Check the integrity of the index.clone()
void
close()
(package private) long
getStartPointer
(int docID) Get the start pointer for the block that contains the given docID.private int
relativeChunk
(int block, int relativeDoc) private int
relativeDocBase
(int block, int relativeChunk) private long
relativeStartPointer
(int block, int relativeChunk) toString()
-
Field Details
-
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:FieldsIndex
Get the start pointer for the block that contains the given docID.- Specified by:
getStartPointer
in classFieldsIndex
-
clone
- Specified by:
clone
in classFieldsIndex
-
toString
-
close
- Throws:
IOException
-
checkIntegrity
Description copied from class:FieldsIndex
Check the integrity of the index.- Specified by:
checkIntegrity
in classFieldsIndex
- Throws:
IOException
-