Module org.elasticsearch.server
Class NumericEncoder
java.lang.Object
org.elasticsearch.index.codec.tsdb.pipeline.numeric.NumericEncoder
Write-path coordinator for pipeline-based numeric encoding. This is the
entry point used by the doc values consumer to encode numeric fields. It
owns a
NumericEncodePipeline and produces NumericBlockEncoder
instances for per-block encoding.
Instances are immutable and thread-safe. Per-field mutable state lives in
NumericBlockEncoder, which callers obtain via newBlockEncoder().
Created via fromConfig(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig) or via NumericCodecFactory.createEncoder(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig).
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of values per block.Returns the pipeline descriptor for persistence viaFieldDescriptor.Creates a new block encoder with its own mutable encoding context.
-
Method Details
-
newBlockEncoder
Creates a new block encoder with its own mutable encoding context.- Returns:
- a fresh block encoder
-
descriptor
Returns the pipeline descriptor for persistence viaFieldDescriptor.- Returns:
- the pipeline descriptor
-
blockSize
public int blockSize()Returns the number of values per block.- Returns:
- the number of values per block
-