Module org.apache.lucene.core
Class FieldsIndexReader
java.lang.Object
org.apache.lucene.codecs.lucene90.compressing.FieldsIndex
org.apache.lucene.codecs.lucene90.compressing.FieldsIndexReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final DirectMonotonicReader
private final long
private final DirectMonotonicReader.Meta
private final long
private final IndexInput
private final int
private final long
private final int
private final DirectMonotonicReader
private final long
private final DirectMonotonicReader.Meta
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
(package private)
FieldsIndexReader
(Directory dir, String name, String suffix, String extension, String codecName, byte[] id, IndexInput metaIn, IOContext context) -
Method Summary
Modifier and TypeMethodDescription(package private) void
Check the integrity of the index.clone()
void
close()
(package private) long
getBlockID
(int docID) Get the ID of the block that contains the given docID.(package private) long
getBlockLength
(long blockIndex) Get the number of bytes of the block with the given ID.(package private) long
getBlockStartPointer
(long blockIndex) Get the start pointer of the block with the given ID.long
Methods inherited from class org.apache.lucene.codecs.lucene90.compressing.FieldsIndex
getStartPointer
-
Field Details
-
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, IOContext context) throws IOException - Throws:
IOException
-
FieldsIndexReader
- Throws:
IOException
-
-
Method Details
-
close
- Throws:
IOException
-
getBlockID
long getBlockID(int docID) Description copied from class:FieldsIndex
Get the ID of the block that contains the given docID.- Specified by:
getBlockID
in classFieldsIndex
-
getBlockStartPointer
long getBlockStartPointer(long blockIndex) Description copied from class:FieldsIndex
Get the start pointer of the block with the given ID.- Specified by:
getBlockStartPointer
in classFieldsIndex
-
getBlockLength
long getBlockLength(long blockIndex) Description copied from class:FieldsIndex
Get the number of bytes of the block with the given ID.- Specified by:
getBlockLength
in classFieldsIndex
-
clone
- Specified by:
clone
in classFieldsIndex
-
getMaxPointer
public long getMaxPointer() -
checkIntegrity
Description copied from class:FieldsIndex
Check the integrity of the index.- Specified by:
checkIntegrity
in classFieldsIndex
- Throws:
IOException
-