Class SavepointMetadataV2


  • @Internal
    public class SavepointMetadataV2
    extends Object
    Savepoint metadata that can be modified.
    • Constructor Detail

      • SavepointMetadataV2

        public SavepointMetadataV2​(long checkpointId,
                                   int maxParallelism,
                                   Collection<org.apache.flink.runtime.checkpoint.MasterState> masterStates,
                                   Collection<org.apache.flink.runtime.checkpoint.OperatorState> initialStates)
    • Method Detail

      • getCheckpointId

        public long getCheckpointId()
      • getMaxParallelism

        public int getMaxParallelism()
      • getMasterStates

        public Collection<org.apache.flink.runtime.checkpoint.MasterState> 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.
      • getExistingOperators

        public List<org.apache.flink.runtime.checkpoint.OperatorState> getExistingOperators()
        Returns:
        List of OperatorState that already exists within the savepoint.