All Known Subinterfaces:
PayloadCodecStage
All Known Implementing Classes:
BitPackCodecStage

public interface PayloadDecoder
Deserializes bytes back to values as the terminal stage of the decode pipeline.

Unlike TransformDecoder, payload stages read directly from a DataInput rather than reading metadata from the context.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    decode(long[] values, org.apache.lucene.store.DataInput in, DecodingContext context)
    Deserializes bytes from the input stream back to values.
    byte
    id()
    Returns the unique stage identifier.
  • Method Details

    • id

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

      int decode(long[] values, org.apache.lucene.store.DataInput in, DecodingContext context) throws IOException
      Deserializes bytes from the input stream back to values.
      Parameters:
      values - the output array to populate
      in - the data input stream
      context - the decoding context with block metadata
      Returns:
      the number of values decoded
      Throws:
      IOException - if an I/O error occurs