Class Lucene60PointsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PointsReader
-
- org.apache.lucene.codecs.lucene60.Lucene60PointsReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
public class Lucene60PointsReader extends PointsReader implements Closeable
Reads point values previously written withLucene60PointsWriter
-
-
Constructor Summary
Constructors Constructor Description Lucene60PointsReader(SegmentReadState readState)Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks consistency of this reader.voidclose()Collection<Accountable>getChildResources()Returns nested resources of this class.PointValuesgetValues(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
-
-
-
-
Constructor Detail
-
Lucene60PointsReader
public Lucene60PointsReader(SegmentReadState readState) throws IOException
Sole constructor- Throws:
IOException
-
-
Method Detail
-
getValues
public PointValues getValues(String fieldName)
Returns the underlyingBKDReader.- Specified by:
getValuesin classPointsReader- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
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
-
getChildResources
public Collection<Accountable> getChildResources()
Description copied from interface:AccountableReturns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).- Specified by:
getChildResourcesin interfaceAccountable- See Also:
Accountables
-
checkIntegrity
public void checkIntegrity() throws 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:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-