Module org.elasticsearch.server
Class NumericDecoder
java.lang.Object
org.elasticsearch.index.codec.tsdb.pipeline.numeric.NumericDecoder
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 Summary
Modifier and TypeMethodDescriptionintReturns the number of values per block.Creates a new block decoder with its own mutable decoding context.
-
Method Details
-
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
-