Class StateMetadata
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.StateMetadata
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 zerottl: 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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStateMetadata(int stateIndex, String stateTtl, String stateName) StateMetadata(int stateIndex, Duration stateTtl, String stateName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic List<StateMetadata>getMultiInputOperatorDefaultMeta(Map<Integer, Long> stateTtlFromHint, org.apache.flink.configuration.ReadableConfig tableConfig, String... stateNameList) static List<StateMetadata>getOneInputOperatorDefaultMeta(Long stateTtlFromHint, org.apache.flink.configuration.ReadableConfig tableConfig, String stateName) static List<StateMetadata>getOneInputOperatorDefaultMeta(org.apache.flink.configuration.ReadableConfig tableConfig, String stateName) intgetStateTtlForMultiInputOperator(ExecNodeConfig config, int inputNumOfOperator, List<StateMetadata> stateMetadataList) static longgetStateTtlForOneInputOperator(ExecNodeConfig config, List<StateMetadata> stateMetadataList) inthashCode()
-
Field Details
-
FIELD_NAME_STATE_INDEX
- See Also:
-
FIELD_NAME_STATE_TTL
- See Also:
-
FIELD_NAME_STATE_NAME
- See Also:
-
-
Constructor Details
-
StateMetadata
-
StateMetadata
-
-
Method Details
-
getStateIndex
public int getStateIndex() -
getStateTtl
-
getOneInputOperatorDefaultMeta
public static List<StateMetadata> getOneInputOperatorDefaultMeta(org.apache.flink.configuration.ReadableConfig tableConfig, String stateName) -
getOneInputOperatorDefaultMeta
public static List<StateMetadata> getOneInputOperatorDefaultMeta(@Nullable Long stateTtlFromHint, org.apache.flink.configuration.ReadableConfig tableConfig, String stateName) -
getMultiInputOperatorDefaultMeta
-
getStateTtlForOneInputOperator
public static long getStateTtlForOneInputOperator(ExecNodeConfig config, @Nullable List<StateMetadata> stateMetadataList) -
getStateTtlForMultiInputOperator
public static List<Long> getStateTtlForMultiInputOperator(ExecNodeConfig config, int inputNumOfOperator, @Nullable List<StateMetadata> stateMetadataList) -
equals
-
hashCode
public int hashCode()
-