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

    Fields
    Modifier and Type
    Field
    Description
    static final NumericCodecFactory
    Default factory that delegates to NumericEncoder.fromConfig(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig) and NumericDecoder.fromDescriptor(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor).
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a decoder from the given pipeline descriptor.
    Creates an encoder from the given pipeline configuration.
  • Field Details

    • DEFAULT

      static final NumericCodecFactory DEFAULT
      Default factory that delegates to NumericEncoder.fromConfig(org.elasticsearch.index.codec.tsdb.pipeline.PipelineConfig) and NumericDecoder.fromDescriptor(org.elasticsearch.index.codec.tsdb.pipeline.PipelineDescriptor).
  • Method Details

    • createEncoder

      NumericEncoder createEncoder(PipelineConfig config)
      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

      NumericDecoder createDecoder(PipelineDescriptor descriptor)
      Creates a decoder from the given pipeline descriptor.
      Parameters:
      descriptor - the pipeline descriptor read from segment metadata
      Returns:
      the decoder for the described pipeline