Class PointsReader

java.lang.Object
org.apache.lucene.codecs.PointsReader
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
Lucene60PointsReader, Lucene86PointsReader, Lucene90PointsReader, SimpleTextPointsReader, SlowCompositeCodecReaderWrapper.SlowCompositePointsReaderWrapper

public abstract class PointsReader extends Object implements Closeable
Abstract API to visit point values.
  • Constructor Details

    • PointsReader

      protected PointsReader()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • checkIntegrity

      public abstract void checkIntegrity() throws 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:
      IOException
    • getValues

      public abstract PointValues getValues(String field) throws IOException
      Return PointValues for the given field. The behavior is undefined if the given field doesn't have points enabled on its FieldInfo.
      Throws:
      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