java.lang.Object
org.elasticsearch.index.codec.tsdb.pipeline.numeric.NumericDecoder

public final class NumericDecoder extends Object
Read-path coordinator for pipeline-based numeric decoding. This is the entry point used by the doc values producer to decode numeric fields. It owns a NumericDecodePipeline and produces NumericBlockDecoder instances for per-block decoding.

Instances are immutable and thread-safe. Per-field mutable state lives in NumericBlockDecoder, which callers obtain via newBlockDecoder().

Created via fromDescriptor(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor) or via NumericCodecFactory.createDecoder(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor).

  • Method Details

    • newBlockDecoder

      public NumericBlockDecoder newBlockDecoder()
      Creates a new block decoder with its own mutable decoding context.
      Returns:
      a fresh block decoder
    • blockSize

      public int blockSize()
      Returns the number of values per block.
      Returns:
      the number of values per block