Class LegacyFieldsIndexReader
- java.lang.Object
-
- org.apache.lucene.backward_codecs.lucene50.compressing.FieldsIndex
-
- org.apache.lucene.backward_codecs.lucene50.compressing.LegacyFieldsIndexReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
final class LegacyFieldsIndexReader extends FieldsIndex
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]
avgChunkDocs
(package private) long[]
avgChunkSizes
(package private) int[]
docBases
(package private) PackedInts.Reader[]
docBasesDeltas
(package private) int
maxDoc
(package private) long[]
startPointers
(package private) PackedInts.Reader[]
startPointersDeltas
-
Constructor Summary
Constructors Constructor Description LegacyFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
block(int docID)
(package private) void
checkIntegrity()
Check the integrity of the index.LegacyFieldsIndexReader
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)
java.lang.String
toString()
-
-
-
Field Detail
-
maxDoc
final int maxDoc
-
docBases
final int[] docBases
-
startPointers
final long[] startPointers
-
avgChunkDocs
final int[] avgChunkDocs
-
avgChunkSizes
final long[] avgChunkSizes
-
docBasesDeltas
final PackedInts.Reader[] docBasesDeltas
-
startPointersDeltas
final PackedInts.Reader[] startPointersDeltas
-
-
Constructor Detail
-
LegacyFieldsIndexReader
LegacyFieldsIndexReader(IndexInput fieldsIndexIn, SegmentInfo si) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
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
public LegacyFieldsIndexReader clone()
- Specified by:
clone
in classFieldsIndex
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
checkIntegrity
void checkIntegrity() throws java.io.IOException
Description copied from class:FieldsIndex
Check the integrity of the index.- Specified by:
checkIntegrity
in classFieldsIndex
- Throws:
java.io.IOException
-
-