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.SetupableStreamOperator<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.SetupableStreamOperator<TaggedOperatorSubtaskState>, org.apache.flink.streaming.api.operators.BoundedOneInput
Wraps an existing operator so it can be bootstrapped.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StateBootstrapWrapperOperator(long timestamp, org.apache.flink.core.fs.Path savepointPath, OP operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidendInput()voidfinish()org.apache.flink.streaming.api.operators.ChainingStrategygetChainingStrategy()ObjectgetCurrentKey()org.apache.flink.metrics.groups.OperatorMetricGroupgetMetricGroup()org.apache.flink.runtime.jobgraph.OperatorIDgetOperatorID()voidinitializeState(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)voidsetChainingStrategy(org.apache.flink.streaming.api.operators.ChainingStrategy strategy)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, wait
-
Methods inherited from interface org.apache.flink.api.common.state.CheckpointListener
notifyCheckpointAborted
-
Methods inherited from interface org.apache.flink.streaming.api.operators.Input
processRecordAttributes
-
-
-
-
Constructor Detail
-
StateBootstrapWrapperOperator
public StateBootstrapWrapperOperator(long timestamp, org.apache.flink.core.fs.Path savepointPath, OP operator)
-
-
Method Detail
-
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)- Specified by:
setupin interfaceorg.apache.flink.streaming.api.operators.SetupableStreamOperator<IN>
-
processElement
public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) throws Exception
-
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
public void open() throws Exception
-
finish
public void finish() throws Exception
-
close
public void close() throws Exception
-
prepareSnapshotPreBarrier
public void prepareSnapshotPreBarrier(long checkpointId) throws Exception
-
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
-
getChainingStrategy
public org.apache.flink.streaming.api.operators.ChainingStrategy getChainingStrategy()
- Specified by:
getChainingStrategyin interfaceorg.apache.flink.streaming.api.operators.SetupableStreamOperator<IN>
-
setChainingStrategy
public void setChainingStrategy(org.apache.flink.streaming.api.operators.ChainingStrategy strategy)
- Specified by:
setChainingStrategyin interfaceorg.apache.flink.streaming.api.operators.SetupableStreamOperator<IN>
-
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
public void notifyCheckpointComplete(long checkpointId) throws Exception- Specified by:
notifyCheckpointCompletein interfaceorg.apache.flink.api.common.state.CheckpointListener- Throws:
Exception
-
setCurrentKey
public void setCurrentKey(Object key)
- Specified by:
setCurrentKeyin interfaceorg.apache.flink.streaming.api.operators.KeyContext
-
getCurrentKey
public Object getCurrentKey()
- Specified by:
getCurrentKeyin interfaceorg.apache.flink.streaming.api.operators.KeyContext
-
-