public interface AccumulatorStateSerializer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(Block block,
int index,
T state)
Deserialize
index-th position in block into state. |
Type |
getSerializedType() |
void |
serialize(T state,
BlockBuilder out) |
Type getSerializedType()
void serialize(T state, BlockBuilder out)
void deserialize(Block block, int index, T state)
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.
Copyright © 2012–2022. All rights reserved.