public abstract class AbstractAllRoundWrapperOperator<T,S extends org.apache.flink.streaming.api.operators.StreamOperator<T>> extends AbstractWrapperOperator<T>
Modifier and Type | Field and Description |
---|---|
protected S |
wrappedOperator |
containingTask, epochWatermarkSupplier, epochWatermarkTracker, eventBroadcastOutput, iterationContext, metrics, operatorFactory, output, parameters, proxyOutput, streamConfig, uniqueSenderId
Constructor and Description |
---|
AbstractAllRoundWrapperOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<IterationRecord<T>> parameters,
org.apache.flink.streaming.api.operators.StreamOperatorFactory<T> operatorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish() |
Object |
getCurrentKey() |
org.apache.flink.metrics.groups.OperatorMetricGroup |
getMetricGroup() |
org.apache.flink.runtime.jobgraph.OperatorID |
getOperatorID() |
void |
initializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager) |
void |
notifyCheckpointAborted(long checkpointId) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
onEpochWatermarkIncrement(int epochWatermark)
Notifies a new round is aligned to a new epoch watermark.
|
void |
open() |
void |
prepareSnapshotPreBarrier(long checkpointId) |
void |
setCurrentKey(Object key) |
void |
setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) |
void |
setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) |
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) |
clearIterationContextRound, endInput, notifyEpochWatermarkIncrement, onEpochWatermarkEvent, setIterationContextRound
public AbstractAllRoundWrapperOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<IterationRecord<T>> parameters, org.apache.flink.streaming.api.operators.StreamOperatorFactory<T> operatorFactory)
public void onEpochWatermarkIncrement(int epochWatermark) throws IOException
OperatorEpochWatermarkTrackerListener
onEpochWatermarkIncrement
in interface OperatorEpochWatermarkTrackerListener
onEpochWatermarkIncrement
in class AbstractWrapperOperator<T>
epochWatermark
- The new epoch watermark.IOException
public void initializeState(org.apache.flink.streaming.api.operators.StreamTaskStateInitializer streamTaskStateManager) throws Exception
Exception
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
Exception
public void prepareSnapshotPreBarrier(long checkpointId) throws Exception
Exception
public void setKeyContextElement1(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) throws Exception
Exception
public void setKeyContextElement2(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<?> record) throws Exception
Exception
public org.apache.flink.metrics.groups.OperatorMetricGroup getMetricGroup()
public org.apache.flink.runtime.jobgraph.OperatorID getOperatorID()
public void notifyCheckpointComplete(long checkpointId) throws Exception
Exception
public void notifyCheckpointAborted(long checkpointId) throws Exception
Exception
public void setCurrentKey(Object key)
public Object getCurrentKey()
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.