All Known Subinterfaces:
StageSpec.PayloadSpec, StageSpec.TransformSpec
All Known Implementing Classes:
StageSpec.BitPackPayload, StageSpec.DeltaStage, StageSpec.GcdStage, StageSpec.OffsetStage

public sealed interface StageSpec permits StageSpec.TransformSpec, StageSpec.PayloadSpec
Sealed hierarchy capturing pipeline stage specifications.

Each record represents a stage type. References StageId as the source of truth for persisted byte identifiers.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Bit-packing payload: packs values using the minimum number of bits.
    static final record 
    Delta encoding: stores differences between consecutive values.
    static final record 
    GCD factoring: divides all values by their greatest common divisor.
    static final record 
    Offset removal: subtracts the minimum value from all entries.
    static interface 
    Marker for terminal payload stages that serialize values to bytes.
    static interface 
    Marker for transform stages that can be chained in the pipeline.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the persisted stage identifier for this specification.
  • Method Details

    • stageId

      StageId stageId()
      Returns the persisted stage identifier for this specification.
      Returns:
      the StageId for this stage