Class FieldsIndexReader
- java.lang.Object
-
- org.apache.lucene.backward_codecs.lucene50.compressing.FieldsIndex
-
- org.apache.lucene.backward_codecs.lucene50.compressing.FieldsIndexReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
final class FieldsIndexReader extends FieldsIndex
-
-
Field Summary
Fields Modifier and Type Field Description private int
blockShift
private LegacyDirectMonotonicReader
docs
private long
docsEndPointer
private LegacyDirectMonotonicReader.Meta
docsMeta
private long
docsStartPointer
private IndexInput
indexInput
private int
maxDoc
private long
maxPointer
private int
numChunks
private LegacyDirectMonotonicReader
startPointers
private long
startPointersEndPointer
private LegacyDirectMonotonicReader.Meta
startPointersMeta
private long
startPointersStartPointer
(package private) static int
VERSION_CURRENT
(package private) static int
VERSION_START
-
Constructor Summary
Constructors Modifier Constructor Description private
FieldsIndexReader(FieldsIndexReader other)
(package private)
FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, IndexInput metaIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
checkIntegrity()
Check the integrity of the index.FieldsIndex
clone()
void
close()
long
getMaxPointer()
(package private) long
getStartPointer(int docID)
Get the start pointer for the block that contains the given docID.
-
-
-
Field Detail
-
VERSION_START
static final int VERSION_START
- See Also:
- Constant Field Values
-
VERSION_CURRENT
static final int VERSION_CURRENT
- See Also:
- Constant Field Values
-
maxDoc
private final int maxDoc
-
blockShift
private final int blockShift
-
numChunks
private final int numChunks
-
docsMeta
private final LegacyDirectMonotonicReader.Meta docsMeta
-
startPointersMeta
private final LegacyDirectMonotonicReader.Meta startPointersMeta
-
indexInput
private final IndexInput indexInput
-
docsStartPointer
private final long docsStartPointer
-
docsEndPointer
private final long docsEndPointer
-
startPointersStartPointer
private final long startPointersStartPointer
-
startPointersEndPointer
private final long startPointersEndPointer
-
docs
private final LegacyDirectMonotonicReader docs
-
startPointers
private final LegacyDirectMonotonicReader startPointers
-
maxPointer
private final long maxPointer
-
-
Constructor Detail
-
FieldsIndexReader
FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extension, java.lang.String codecName, byte[] id, IndexInput metaIn) throws java.io.IOException
- Throws:
java.io.IOException
-
FieldsIndexReader
private FieldsIndexReader(FieldsIndexReader other) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
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 FieldsIndex clone()
- Specified by:
clone
in classFieldsIndex
-
getMaxPointer
public long getMaxPointer()
-
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
-
-