Class Lucene86PointsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PointsReader
-
- org.apache.lucene.codecs.lucene86.Lucene86PointsReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Accountable
public class Lucene86PointsReader extends PointsReader implements java.io.Closeable
Reads point values previously written withLucene86PointsWriter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexInputdataIn(package private) IndexInputindexIn(package private) java.util.Map<java.lang.Integer,BKDReader>readers(package private) SegmentReadStatereadState-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description Lucene86PointsReader(SegmentReadState readState)Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks consistency of this reader.voidclose()PointValuesgetValues(java.lang.String fieldName)Returns the underlyingBKDReader.longramBytesUsed()Return the memory usage of this object in bytes.-
Methods inherited from class org.apache.lucene.codecs.PointsReader
getMergeInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Field Detail
-
indexIn
final IndexInput indexIn
-
dataIn
final IndexInput dataIn
-
readState
final SegmentReadState readState
-
readers
final java.util.Map<java.lang.Integer,BKDReader> readers
-
-
Constructor Detail
-
Lucene86PointsReader
public Lucene86PointsReader(SegmentReadState readState) throws java.io.IOException
Sole constructor- Throws:
java.io.IOException
-
-
Method Detail
-
getValues
public PointValues getValues(java.lang.String fieldName)
Returns the underlyingBKDReader.- Specified by:
getValuesin classPointsReader
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
checkIntegrity
public void checkIntegrity() throws java.io.IOExceptionDescription copied from class:PointsReaderChecks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrityin classPointsReader- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-