org.apache.flink.state.api.output.SnapshotUtils Java Examples
The following examples show how to use
org.apache.flink.state.api.output.SnapshotUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BroadcastStateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }
Example #2
Source File: StateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }
Example #3
Source File: KeyedStateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }
Example #4
Source File: FunctionsStateBootstrapOperator.java From stateful-functions with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { // bootstrap dataset is now completely processed; // take a snapshot of the function states final TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), snapshotTimestamp, getContainingTask().getCheckpointStorage(), snapshotPath); output.collect(new StreamRecord<>(state)); }
Example #5
Source File: FunctionsStateBootstrapOperator.java From flink-statefun with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { // bootstrap dataset is now completely processed; // take a snapshot of the function states final TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), snapshotTimestamp, getContainingTask().getCheckpointStorage(), snapshotPath); output.collect(new StreamRecord<>(state)); }
Example #6
Source File: BroadcastStateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getConfiguration().isExactlyOnceCheckpointMode(), getContainingTask().getConfiguration().isUnalignedCheckpointsEnabled(), getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }
Example #7
Source File: StateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getConfiguration().isExactlyOnceCheckpointMode(), getContainingTask().getConfiguration().isUnalignedCheckpointsEnabled(), getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }
Example #8
Source File: KeyedStateBootstrapOperator.java From flink with Apache License 2.0 | 5 votes |
@Override public void endInput() throws Exception { TaggedOperatorSubtaskState state = SnapshotUtils.snapshot( this, getRuntimeContext().getIndexOfThisSubtask(), timestamp, getContainingTask().getConfiguration().isExactlyOnceCheckpointMode(), getContainingTask().getConfiguration().isUnalignedCheckpointsEnabled(), getContainingTask().getCheckpointStorage(), savepointPath); output.collect(new StreamRecord<>(state)); }