Class StateMetadata


  • @Internal
    public class StateMetadata
    extends Object
    It is used to describe the state metadata of a stateful operator, which is serialized/deserialized into/from those StreamExecNodes that can generate stateful operators. For ExecNodes that generates TwoInputStreamOperator or MultipleInputStreamOperator, there will be multiple metadata describing information about each input's state.

    The metadata describes the following attributes.

    • stateIndex: annotates the state is from the i-th input, index based on zero
    • ttl: annotates the state retention time for the i-th input's state, the time unit is ms.
    • name: annotates the state description, such as deduplicate-state, join-left-state.