Package org.apache.lucene.codecs
Class PointsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PointsReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Accountable
- Direct Known Subclasses:
Lucene60PointsReader
,Lucene86PointsReader
,SimpleTextPointsReader
public abstract class PointsReader extends java.lang.Object implements java.io.Closeable, Accountable
Abstract API to visit point values.
-
-
Field Summary
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PointsReader()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
checkIntegrity()
Checks consistency of this reader.PointsReader
getMergeInstance()
Returns an instance optimized for merging.abstract PointValues
getValues(java.lang.String field)
ReturnPointValues
for the givenfield
.-
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, ramBytesUsed
-
-
-
-
Method Detail
-
checkIntegrity
public abstract void checkIntegrity() throws java.io.IOException
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.
- Throws:
java.io.IOException
-
getValues
public abstract PointValues getValues(java.lang.String field) throws java.io.IOException
ReturnPointValues
for the givenfield
.- 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
-
-