public class NoopCommittableStateManager extends Object implements CommittableStateManager<ManifestCommittable>
CommittableStateManager
which does nothing. If a commit attempt fails, it will be lost
after the job restarts.
Useful for committing optional snapshots. For example COMPACT snapshots produced by a separate compact job.
Constructor and Description |
---|
NoopCommittableStateManager() |
Modifier and Type | Method and Description |
---|---|
void |
initializeState(org.apache.flink.runtime.state.StateInitializationContext context,
Committer<?,ManifestCommittable> committer) |
void |
snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context,
List<ManifestCommittable> committables) |
public void initializeState(org.apache.flink.runtime.state.StateInitializationContext context, Committer<?,ManifestCommittable> committer) throws Exception
initializeState
in interface CommittableStateManager<ManifestCommittable>
Exception
public void snapshotState(org.apache.flink.runtime.state.StateSnapshotContext context, List<ManifestCommittable> committables) throws Exception
snapshotState
in interface CommittableStateManager<ManifestCommittable>
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.