@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
| Constructor and Description |
|---|
StateBootstrapWrapperOperator(long timestamp,
org.apache.flink.core.fs.Path savepointPath,
OP operator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dispose() |
void |
endInput() |
org.apache.flink.streaming.api.operators.ChainingStrategy |
getChainingStrategy() |
Object |
getCurrentKey() |
org.apache.flink.metrics.MetricGroup |
getMetricGroup() |
org.apache.flink.runtime.jobgraph.OperatorID |
getOperatorID() |
void |
initializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
open() |
void |
prepareSnapshotPreBarrier(long checkpointId) |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) |
void |
processLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker latencyMarker) |
void |
processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) |
void |
setChainingStrategy(org.apache.flink.streaming.api.operators.ChainingStrategy strategy) |
void |
setCurrentKey(Object key) |
void |
setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) |
void |
setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) |
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) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic StateBootstrapWrapperOperator(long timestamp,
org.apache.flink.core.fs.Path savepointPath,
OP operator)
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)
setup in interface org.apache.flink.streaming.api.operators.SetupableStreamOperator<TaggedOperatorSubtaskState>public void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<IN> element) throws Exception
public void processWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)
throws Exception
public void processLatencyMarker(org.apache.flink.streaming.runtime.streamrecord.LatencyMarker latencyMarker)
throws Exception
public void open()
throws Exception
open in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic void close()
throws Exception
close in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic void dispose()
throws Exception
dispose in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>dispose in interface org.apache.flink.util.DisposableExceptionpublic void prepareSnapshotPreBarrier(long checkpointId)
throws Exception
prepareSnapshotPreBarrier in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic 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
snapshotState in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic void initializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager)
throws Exception
initializeState in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic void setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record)
throws Exception
setKeyContextElement1 in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic void setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record)
throws Exception
setKeyContextElement2 in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>Exceptionpublic org.apache.flink.streaming.api.operators.ChainingStrategy getChainingStrategy()
getChainingStrategy in interface org.apache.flink.streaming.api.operators.SetupableStreamOperator<TaggedOperatorSubtaskState>public void setChainingStrategy(org.apache.flink.streaming.api.operators.ChainingStrategy strategy)
setChainingStrategy in interface org.apache.flink.streaming.api.operators.SetupableStreamOperator<TaggedOperatorSubtaskState>public org.apache.flink.metrics.MetricGroup getMetricGroup()
getMetricGroup in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>public org.apache.flink.runtime.jobgraph.OperatorID getOperatorID()
getOperatorID in interface org.apache.flink.streaming.api.operators.StreamOperator<TaggedOperatorSubtaskState>public void notifyCheckpointComplete(long checkpointId)
throws Exception
notifyCheckpointComplete in interface org.apache.flink.api.common.state.CheckpointListenerExceptionpublic void setCurrentKey(Object key)
setCurrentKey in interface org.apache.flink.streaming.api.operators.KeyContextpublic Object getCurrentKey()
getCurrentKey in interface org.apache.flink.streaming.api.operators.KeyContextCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.