Interface AccumulatorStateSerializer<T extends AccumulatorState>


public interface AccumulatorStateSerializer<T extends AccumulatorState>
  • Method Details

    • getSerializedType

      Type getSerializedType()
    • serialize

      void serialize(T state, BlockBuilder out)
    • deserialize

      void deserialize(Block block, int index, T state)
      Deserialize index-th position in block into state.

      This method may be invoked with a reused dirty state. Therefore, implementations must not make assumptions about the initial value of state.

      Null positions in block are skipped and ignored. In other words, block.isNull(index) is guaranteed to return false.