Module org.elasticsearch.server
Interface NumericCodecFactory
public interface NumericCodecFactory
Factory for creating encoder/decoder instances.
The two factory methods take different inputs because they serve different
paths: createEncoder(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig) takes a PipelineConfig (the fluent
builder API used at index time to specify which stages to apply), while
createDecoder(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor) takes a PipelineDescriptor (the compact
byte-level representation read from segment metadata at search time). The
encoder writes the descriptor; the decoder reads it back.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumericCodecFactoryDefault factory that delegates toNumericEncoder.fromConfig(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig)andNumericDecoder.fromDescriptor(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor). -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder(PipelineDescriptor descriptor) Creates a decoder from the given pipeline descriptor.createEncoder(PipelineConfig config) Creates an encoder from the given pipeline configuration.
-
Field Details
-
DEFAULT
Default factory that delegates toNumericEncoder.fromConfig(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig)andNumericDecoder.fromDescriptor(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor).
-
-
Method Details
-
createEncoder
Creates an encoder from the given pipeline configuration.- Parameters:
config- the pipeline configuration specifying which stages to apply- Returns:
- the encoder for the configured pipeline
-
createDecoder
Creates a decoder from the given pipeline descriptor.- Parameters:
descriptor- the pipeline descriptor read from segment metadata- Returns:
- the decoder for the described pipeline
-