Class FieldsIndexReader
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.FieldsIndex
-
- org.apache.lucene.codecs.compressing.FieldsIndexReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
,Accountable
final class FieldsIndexReader extends FieldsIndex
-
-
Field Summary
Fields Modifier and Type Field Description private static long
BASE_RAM_BYTES_USED
private int
blockShift
private DirectMonotonicReader
docs
private long
docsEndPointer
private DirectMonotonicReader.Meta
docsMeta
private long
docsStartPointer
private IndexInput
indexInput
private int
maxDoc
private long
maxPointer
private int
numChunks
private DirectMonotonicReader
startPointers
private long
startPointersEndPointer
private DirectMonotonicReader.Meta
startPointersMeta
private long
startPointersStartPointer
-
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 extensionPrefix, java.lang.String codecName, byte[] id)
-
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.long
ramBytesUsed()
Return the memory usage of this object in bytes.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED
-
maxDoc
private final int maxDoc
-
blockShift
private final int blockShift
-
numChunks
private final int numChunks
-
docsMeta
private final DirectMonotonicReader.Meta docsMeta
-
startPointersMeta
private final DirectMonotonicReader.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 DirectMonotonicReader docs
-
startPointers
private final DirectMonotonicReader startPointers
-
maxPointer
private final long maxPointer
-
-
Constructor Detail
-
FieldsIndexReader
FieldsIndexReader(Directory dir, java.lang.String name, java.lang.String suffix, java.lang.String extensionPrefix, java.lang.String codecName, byte[] id) throws java.io.IOException
- Throws:
java.io.IOException
-
FieldsIndexReader
private FieldsIndexReader(FieldsIndexReader other) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
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
-
-