Class SavepointMetadataV2
java.lang.Object
org.apache.flink.state.api.runtime.metadata.SavepointMetadataV2
Savepoint metadata that can be modified.
-
Constructor Summary
ConstructorsConstructorDescriptionSavepointMetadataV2(int maxParallelism, Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates, Collection<org.apache.flink.runtime.checkpoint.OperatorState> initialStates) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperator(OperatorIdentifier identifier, StateBootstrapTransformation<?> transformation) List<org.apache.flink.runtime.checkpoint.OperatorState>Collection<org.apache.flink.runtime.checkpoint.MasterState>intorg.apache.flink.runtime.checkpoint.OperatorStategetOperatorState(OperatorIdentifier identifier) voidremoveOperator(OperatorIdentifier identifier)
-
Constructor Details
-
SavepointMetadataV2
public SavepointMetadataV2(int maxParallelism, Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates, Collection<org.apache.flink.runtime.checkpoint.OperatorState> initialStates)
-
-
Method Details
-
getMaxParallelism
public int getMaxParallelism() -
getMasterStates
-
getOperatorState
public org.apache.flink.runtime.checkpoint.OperatorState getOperatorState(OperatorIdentifier identifier) throws IOException - Returns:
- Operator state for the given UID.
- Throws:
IOException- If the savepoint does not contain operator state with the given uid.
-
removeOperator
-
addOperator
public void addOperator(OperatorIdentifier identifier, StateBootstrapTransformation<?> transformation) -
getExistingOperators
- Returns:
- List of
OperatorStatethat already exists within the savepoint.
-
getNewOperators
- Returns:
- List of new operator states for the savepoint, represented by their target
OperatorIDandStateBootstrapTransformation.
-