Class Lucene60PointsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PointsReader
-
- org.apache.lucene.codecs.lucene60.Lucene60PointsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Accountable
public class Lucene60PointsReader extends PointsReader implements java.io.Closeable
Reads point values previously written with Lucene60PointsWriter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexInput
dataIn
(package private) java.util.Map<java.lang.Integer,BKDReader>
readers
(package private) SegmentReadState
readState
-
Constructor Summary
Constructors Constructor Description Lucene60PointsReader(SegmentReadState readState)
Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this reader.void
close()
PointValues
getValues(java.lang.String fieldName)
Returns the underlyingBKDReader
.long
ramBytesUsed()
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
-
dataIn
final IndexInput dataIn
-
readState
final SegmentReadState readState
-
readers
final java.util.Map<java.lang.Integer,BKDReader> readers
-
-
Constructor Detail
-
Lucene60PointsReader
public Lucene60PointsReader(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:
getValues
in classPointsReader
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-
checkIntegrity
public void checkIntegrity() throws java.io.IOException
Description copied from class:PointsReader
Checks 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:
checkIntegrity
in classPointsReader
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-