@Internal public class SavepointMetadata extends Object
| Constructor and Description |
|---|
SavepointMetadata(int maxParallelism,
Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates,
Collection<org.apache.flink.runtime.checkpoint.OperatorState> initialStates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperator(String uid,
BootstrapTransformation<?> transformation) |
List<org.apache.flink.runtime.checkpoint.OperatorState> |
getExistingOperators() |
Collection<org.apache.flink.runtime.checkpoint.MasterState> |
getMasterStates() |
int |
getMaxParallelism() |
List<BootstrapTransformationWithID<?>> |
getNewOperators() |
org.apache.flink.runtime.checkpoint.OperatorState |
getOperatorState(String uid) |
void |
removeOperator(String uid) |
public SavepointMetadata(int maxParallelism,
Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates,
Collection<org.apache.flink.runtime.checkpoint.OperatorState> initialStates)
public int getMaxParallelism()
public Collection<org.apache.flink.runtime.checkpoint.MasterState> getMasterStates()
public org.apache.flink.runtime.checkpoint.OperatorState getOperatorState(String uid) throws IOException
IOException - If the savepoint does not contain operator state with the given uid.public void removeOperator(String uid)
public void addOperator(String uid, BootstrapTransformation<?> transformation)
public List<org.apache.flink.runtime.checkpoint.OperatorState> getExistingOperators()
OperatorState that already exists within the savepoint.public List<BootstrapTransformationWithID<?>> getNewOperators()
OperatorID and BootstrapTransformation.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.