All Known Subinterfaces:
NumericCodecStage
All Known Implementing Classes:
DeltaCodecStage, GcdCodecStage, OffsetCodecStage

public interface TransformDecoder
Reverses an in-place transformation as a non-terminal stage of the decode pipeline.

Unlike PayloadDecoder, transform decoders do not read from a DataInput directly. They read metadata written by the corresponding TransformEncoder via DecodingContext.metadata().

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(long[] values, int valueCount, DecodingContext context)
    Reverses the transformation on values in-place using metadata from the context.
    byte
    id()
    Returns the unique stage identifier.
  • Method Details

    • id

      byte id()
      Returns the unique stage identifier.
      Returns:
      the stage ID byte
    • decode

      void decode(long[] values, int valueCount, DecodingContext context) throws IOException
      Reverses the transformation on values in-place using metadata from the context.
      Parameters:
      values - the values to reverse-transform in-place
      valueCount - the number of valid values in the array
      context - the decoding context for reading stage metadata
      Throws:
      IOException - if an I/O error occurs while reading metadata