Package org.apache.lucene.codecs
Class PointsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PointsReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
Lucene60PointsReader,Lucene86PointsReader,Lucene90PointsReader,SimpleTextPointsReader
public abstract class PointsReader extends java.lang.Object implements java.io.CloseableAbstract API to visit point values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointsReader()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcheckIntegrity()Checks consistency of this reader.PointsReadergetMergeInstance()Returns an instance optimized for merging.abstract PointValuesgetValues(java.lang.String field)ReturnPointValuesfor the givenfield.
-
-
-
Method Detail
-
checkIntegrity
public abstract void checkIntegrity() throws java.io.IOExceptionChecks 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.
- Throws:
java.io.IOException
-
getValues
public abstract PointValues getValues(java.lang.String field) throws java.io.IOException
ReturnPointValuesfor the givenfield. The behavior is undefined if the given field doesn't have points enabled on itsFieldInfo.- Throws:
java.io.IOException
-
getMergeInstance
public PointsReader getMergeInstance()
Returns an instance optimized for merging. This instance may only be used in the thread that acquires it.The default implementation returns
this
-
-