Class StateBootstrapWrapperOperator<IN,OUT,OP extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT> & org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,OUT>>
java.lang.Object
org.apache.flink.state.api.output.operators.StateBootstrapWrapperOperator<IN,OUT,OP>
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.streaming.api.operators.BoundedOneInput,org.apache.flink.streaming.api.operators.Input<IN>,org.apache.flink.streaming.api.operators.KeyContext,org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,,TaggedOperatorSubtaskState> org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>
@Internal
public final class StateBootstrapWrapperOperator<IN,OUT,OP extends org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT> & org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,OUT>>
extends Object
implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,TaggedOperatorSubtaskState>, org.apache.flink.streaming.api.operators.BoundedOneInput
Wraps an existing operator so it can be bootstrapped.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStateBootstrapWrapperOperator(long timestamp, org.apache.flink.core.fs.Path savepointPath, org.apache.flink.streaming.runtime.operators.windowing.WindowOperator<?, IN, ?, ?, ?> operator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidendInput()voidfinish()org.apache.flink.metrics.groups.OperatorMetricGrouporg.apache.flink.runtime.jobgraph.OperatorIDvoidinitializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager) voidnotifyCheckpointComplete(long checkpointId) voidopen()voidprepareSnapshotPreBarrier(long checkpointId) voidprocessElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) voidprocessLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker latencyMarker) voidprocessWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) voidprocessWatermarkStatus(org.apache.flink.streaming.runtime.watermarkstatus.WatermarkStatus watermarkStatus) voidsetCurrentKey(Object key) voidsetKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) voidsetKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) voidsetup(org.apache.flink.streaming.runtime.tasks.StreamTask<?, ?> containingTask, org.apache.flink.streaming.api.graph.StreamConfig config, org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<TaggedOperatorSubtaskState>> output) org.apache.flink.streaming.api.operators.OperatorSnapshotFuturessnapshotState(long checkpointId, long timestamp, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, org.apache.flink.runtime.state.CheckpointStreamFactory storageLocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.api.common.state.CheckpointListener
notifyCheckpointAbortedMethods inherited from interface org.apache.flink.streaming.api.operators.Input
processRecordAttributes, processWatermarkMethods inherited from interface org.apache.flink.streaming.api.operators.OneInputStreamOperator
setKeyContextElementMethods inherited from interface org.apache.flink.streaming.api.operators.StreamOperator
getOperatorAttributes
-
Constructor Details
-
StateBootstrapWrapperOperator
public StateBootstrapWrapperOperator(long timestamp, org.apache.flink.core.fs.Path savepointPath, org.apache.flink.streaming.runtime.operators.windowing.WindowOperator<?, IN, ?, ?, ?> operator)
-
-
Method Details
-
setup
public void setup(org.apache.flink.streaming.runtime.tasks.StreamTask<?, ?> containingTask, org.apache.flink.streaming.api.graph.StreamConfig config, org.apache.flink.streaming.api.operators.Output<org.apache.flink.streaming.runtime.streamrecord.StreamRecord<TaggedOperatorSubtaskState>> output) -
processElement
-
processWatermark
public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) throws Exception -
processLatencyMarker
public void processLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker latencyMarker) throws Exception -
processWatermarkStatus
public void processWatermarkStatus(org.apache.flink.streaming.runtime.watermarkstatus.WatermarkStatus watermarkStatus) throws Exception -
open
-
finish
-
close
-
prepareSnapshotPreBarrier
-
snapshotState
public org.apache.flink.streaming.api.operators.OperatorSnapshotFutures snapshotState(long checkpointId, long timestamp, org.apache.flink.runtime.checkpoint.CheckpointOptions checkpointOptions, org.apache.flink.runtime.state.CheckpointStreamFactory storageLocation) throws Exception -
initializeState
public void initializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager) throws Exception -
setKeyContextElement1
public void setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) throws Exception -
setKeyContextElement2
public void setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) throws Exception -
getMetricGroup
public org.apache.flink.metrics.groups.OperatorMetricGroup getMetricGroup()- Specified by:
getMetricGroupin interfaceorg.apache.flink.streaming.api.operators.StreamOperator<IN>
-
getOperatorID
public org.apache.flink.runtime.jobgraph.OperatorID getOperatorID()- Specified by:
getOperatorIDin interfaceorg.apache.flink.streaming.api.operators.StreamOperator<IN>
-
notifyCheckpointComplete
- Specified by:
notifyCheckpointCompletein interfaceorg.apache.flink.api.common.state.CheckpointListener- Throws:
Exception
-
setCurrentKey
- Specified by:
setCurrentKeyin interfaceorg.apache.flink.streaming.api.operators.KeyContext
-
getCurrentKey
- Specified by:
getCurrentKeyin interfaceorg.apache.flink.streaming.api.operators.KeyContext
-
endInput
- Specified by:
endInputin interfaceorg.apache.flink.streaming.api.operators.BoundedOneInput- Throws:
Exception
-