Package io.trino.spi.function
Interface AccumulatorStateSerializer<T extends AccumulatorState>
public interface AccumulatorStateSerializer<T extends AccumulatorState>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(Block block, int index, T state) Deserializeindex-th position inblockintostate.voidserialize(T state, BlockBuilder out)
-
Method Details
-
getSerializedType
Type getSerializedType() -
serialize
-
deserialize
Deserializeindex-th position inblockintostate.This method may be invoked with a reused dirty
state. Therefore, implementations must not make assumptions about the initial value ofstate.Null positions in
blockare skipped and ignored. In other words,block.isNull(index)is guaranteed to return false.
-