Class SavepointMetadataV2
- java.lang.Object
-
- org.apache.flink.state.api.runtime.metadata.SavepointMetadataV2
-
-
Constructor Summary
Constructors Constructor Description SavepointMetadataV2(int maxParallelism, Collection<MasterState> masterStates, Collection<OperatorState> initialStates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperator(OperatorIdentifier identifier, StateBootstrapTransformation<?> transformation)
List<OperatorState>
getExistingOperators()
Collection<MasterState>
getMasterStates()
int
getMaxParallelism()
List<StateBootstrapTransformationWithID<?>>
getNewOperators()
OperatorState
getOperatorState(OperatorIdentifier identifier)
void
removeOperator(OperatorIdentifier identifier)
-
-
-
Constructor Detail
-
SavepointMetadataV2
public SavepointMetadataV2(int maxParallelism, Collection<MasterState> masterStates, Collection<OperatorState> initialStates)
-
-
Method Detail
-
getMaxParallelism
public int getMaxParallelism()
-
getMasterStates
public Collection<MasterState> getMasterStates()
-
getOperatorState
public 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
public void removeOperator(OperatorIdentifier identifier)
-
addOperator
public void addOperator(OperatorIdentifier identifier, StateBootstrapTransformation<?> transformation)
-
getExistingOperators
public List<OperatorState> getExistingOperators()
- Returns:
- List of
OperatorState
that already exists within the savepoint.
-
getNewOperators
public List<StateBootstrapTransformationWithID<?>> getNewOperators()
- Returns:
- List of new operator states for the savepoint, represented by their target
OperatorID
andStateBootstrapTransformation
.
-
-