Package org.apache.flink.state.api
Class Savepoint
- java.lang.Object
-
- org.apache.flink.state.api.Savepoint
-
@PublicEvolving @Deprecated public final class Savepoint extends Object
Deprecated.For creating a new savepoint, useSavepointWriterand the data stream api under batch execution. For reading a savepoint, useSavepointReaderand the data stream api under batch execution.This class provides entry points for loading an existing savepoint, or a new empty savepoint.- See Also:
ExistingSavepoint,NewSavepoint,SavepointReader,SavepointWriter
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NewSavepointcreate(int maxParallelism)Deprecated.Creates a new savepoint.static NewSavepointcreate(org.apache.flink.runtime.state.StateBackend stateBackend, int maxParallelism)Deprecated.Creates a new savepoint.static ExistingSavepointload(org.apache.flink.api.java.ExecutionEnvironment env, String path)Deprecated.Loads an existing savepoint.static ExistingSavepointload(org.apache.flink.api.java.ExecutionEnvironment env, String path, org.apache.flink.runtime.state.StateBackend stateBackend)Deprecated.Loads an existing savepoint.
-
-
-
Method Detail
-
load
public static ExistingSavepoint load(org.apache.flink.api.java.ExecutionEnvironment env, String path) throws IOException
Deprecated.Loads an existing savepoint. Useful if you want to query, modify, or extend the state of an existing application. The savepoint will be read using the state backend defined via the clusters configuration.- Parameters:
env- The execution environment used to transform the savepoint.path- The path to an existing savepoint on disk.- Throws:
IOException- See Also:
load(ExecutionEnvironment, String, StateBackend)
-
load
public static ExistingSavepoint load(org.apache.flink.api.java.ExecutionEnvironment env, String path, org.apache.flink.runtime.state.StateBackend stateBackend) throws IOException
Deprecated.Loads an existing savepoint. Useful if you want to query, modify, or extend the state of an existing application.- Parameters:
env- The execution environment used to transform the savepoint.path- The path to an existing savepoint on disk.stateBackend- The state backend of the savepoint.- Throws:
IOException- See Also:
load(ExecutionEnvironment, String)
-
create
public static NewSavepoint create(int maxParallelism)
Deprecated.Creates a new savepoint. The savepoint will be read using the state backend defined via the clusters configuration.- Parameters:
maxParallelism- The max parallelism of the savepoint.- Returns:
- A new savepoint.
- See Also:
create(StateBackend, int)
-
create
public static NewSavepoint create(org.apache.flink.runtime.state.StateBackend stateBackend, int maxParallelism)
Deprecated.Creates a new savepoint.- Parameters:
stateBackend- The state backend of the savepoint used for keyed state.maxParallelism- The max parallelism of the savepoint.- Returns:
- A new savepoint.
- See Also:
create(int)
-
-