java.lang.Object
org.elasticsearch.index.mapper.blockloader.docvalues.BlockDocValuesReader
All Implemented Interfaces:
Closeable, AutoCloseable, Releasable, BlockLoader.ColumnAtATimeReader, BlockLoader.Reader
Direct Known Subclasses:
AbstractBooleansBlockLoader.Singleton, AbstractBytesRefsFromOrdsBlockLoader.Singleton, AbstractBytesRefsFromOrdsBlockLoader.SortedSet, AbstractDoublesFromDocValuesBlockLoader.Singleton, AbstractDoublesFromDocValuesBlockLoader.Sorted, AbstractIntsFromDocValuesBlockLoader.Singleton, AbstractIntsFromDocValuesBlockLoader.Sorted, AbstractLongsFromDocValuesBlockLoader.Singleton, AbstractLongsFromDocValuesBlockLoader.Sorted, BytesRefsFromCustomBinaryBlockLoader.AbstractBytesRefsFromBinary, MultiValuedBinaryWithSeparateCountsLengthReader

public abstract class BlockDocValuesReader extends Object implements BlockLoader.ColumnAtATimeReader
A reader that supports reading doc-values from a Lucene segment in Block fashion.
  • Field Details

  • Constructor Details

    • BlockDocValuesReader

      public BlockDocValuesReader(CircuitBreaker breaker)
  • Method Details

    • docId

      protected abstract int docId()
    • canReuse

      public final boolean canReuse(int startingDocID)
      Checks if the reader can be used to read a range documents starting with the given docID by the current thread.
      Specified by:
      canReuse in interface BlockLoader.Reader
    • toString

      public abstract String toString()
      Description copied from interface: BlockLoader.Reader
      A string representation of the BlockLoader.Reader. It's important that this have a nice implementation because this is used in the profile.
      Specified by:
      toString in interface BlockLoader.Reader
      Overrides:
      toString in class Object