SavepointWriter and the data stream api
under batch execution. For reading a savepoint, use SavepointReader and the data
stream api under batch execution.@PublicEvolving @Deprecated public final class Savepoint extends Object
ExistingSavepoint,
NewSavepoint,
SavepointReader,
SavepointWriter| Modifier and Type | Method and Description |
|---|---|
static NewSavepoint |
create(int maxParallelism)
Deprecated.
Creates a new savepoint.
|
static NewSavepoint |
create(org.apache.flink.runtime.state.StateBackend stateBackend,
int maxParallelism)
Deprecated.
Creates a new savepoint.
|
static ExistingSavepoint |
load(org.apache.flink.api.java.ExecutionEnvironment env,
String path)
Deprecated.
Loads an existing savepoint.
|
static ExistingSavepoint |
load(org.apache.flink.api.java.ExecutionEnvironment env,
String path,
org.apache.flink.runtime.state.StateBackend stateBackend)
Deprecated.
Loads an existing savepoint.
|
public static ExistingSavepoint load(org.apache.flink.api.java.ExecutionEnvironment env, String path) throws IOException
env - The execution environment used to transform the savepoint.path - The path to an existing savepoint on disk.IOExceptionload(ExecutionEnvironment, String, StateBackend)public static ExistingSavepoint load(org.apache.flink.api.java.ExecutionEnvironment env, String path, org.apache.flink.runtime.state.StateBackend stateBackend) throws IOException
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.IOExceptionload(ExecutionEnvironment, String)public static NewSavepoint create(int maxParallelism)
maxParallelism - The max parallelism of the savepoint.create(StateBackend, int)public static NewSavepoint create(org.apache.flink.runtime.state.StateBackend stateBackend, int maxParallelism)
stateBackend - The state backend of the savepoint used for keyed state.maxParallelism - The max parallelism of the savepoint.create(int)Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.