java.lang.Object
org.elasticsearch.index.mapper.blockloader.script.BlockScriptReader
All Implemented Interfaces:
Closeable, AutoCloseable, Releasable, BlockLoader.Reader, BlockLoader.RowStrideReader
Direct Known Subclasses:
BooleanScriptBlockDocValuesReader, DateScriptBlockDocValuesReader, DoubleScriptBlockDocValuesReader, IpScriptBlockDocValuesReader, KeywordScriptBlockDocValuesReader, LongScriptBlockDocValuesReader

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

  • Constructor Details

    • BlockScriptReader

      public BlockScriptReader(CircuitBreaker breaker, long byteSize)
  • 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
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Releasable
    • 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