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 intblock(int docID) (package private) voidCheck the integrity of the index.clone()voidclose()(package private) longgetStartPointer(int docID) Get the start pointer for the block that contains the given docID.private intrelativeChunk(int block, int relativeDoc) private intrelativeDocBase(int block, int relativeChunk) private longrelativeStartPointer(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:FieldsIndexGet the start pointer for the block that contains the given docID.- Specified by:
getStartPointerin classFieldsIndex
-
clone
- Specified by:
clonein classFieldsIndex
-
toString
-
close
- Throws:
IOException
-
checkIntegrity
Description copied from class:FieldsIndexCheck the integrity of the index.- Specified by:
checkIntegrityin classFieldsIndex- Throws:
IOException
-