Class AsyncStateTableStreamOperator<OUT>
- java.lang.Object
-
- org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
-
- org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncKeyOrderedStreamOperator<OUT>
-
- org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncStateStreamOperator<OUT>
-
- org.apache.flink.table.runtime.operators.AsyncStateTableStreamOperator<OUT>
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.state.CheckpointListener,org.apache.flink.streaming.api.operators.KeyContext,org.apache.flink.streaming.api.operators.KeyContextHandler,org.apache.flink.streaming.api.operators.StreamOperator<OUT>,org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator,org.apache.flink.streaming.api.operators.YieldingOperator<OUT>,org.apache.flink.streaming.runtime.operators.asyncprocessing.AsyncKeyOrderedProcessing,org.apache.flink.streaming.runtime.operators.asyncprocessing.AsyncKeyOrderedProcessingOperator
- Direct Known Subclasses:
AsyncStateWindowAggOperator,AsyncStateWindowJoinOperator
public abstract class AsyncStateTableStreamOperator<OUT> extends org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncStateStreamOperator<OUT>Table operator to invoke close always. This is a base class for both batch and stream operators without key.This class is nearly identical with
TableStreamOperator, but extending fromAbstractAsyncStateStreamOperatorto integrate with asynchronous state access.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAsyncStateTableStreamOperator.ContextImplInformation available in an invocation of processElement.
-
Field Summary
Fields Modifier and Type Field Description protected AsyncStateTableStreamOperator.ContextImplctxprotected longcurrentWatermarkWe listen to this ourselves because we don't have anInternalTimerService.
-
Constructor Summary
Constructors Constructor Description AsyncStateTableStreamOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcomputeMemorySize()Compute memory size from memory faction.voidopen()org.apache.flink.streaming.api.watermark.WatermarkpreProcessWatermark(org.apache.flink.streaming.api.watermark.Watermark mark)booleanuseSplittableTimers()-
Methods inherited from class org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncStateStreamOperator
createAsyncExecutionController, getKeySelectorForAsyncKeyedContext
-
Methods inherited from class org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncKeyOrderedStreamOperator
asyncProcessWithKey, beforeInitializeStateHandler, close, drainStateRequests, finish, getAsyncKeyedStateBackend, getCurrentKey, getDeclarationManager, getElementOrder, getInternalTimerService, getOrCreateKeyedState, getRecordProcessor, handleAsyncException, isAsyncKeyOrderedProcessingEnabled, newKeySelected, postProcessElement, postProcessWatermark, prepareSnapshotPreBarrier, preserveRecordOrderAndProcess, processNonRecord, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark, processWatermark, processWatermark1, processWatermark1Internal, processWatermark2, processWatermark2Internal, processWatermarkInternal, processWatermarkStatus, processWatermarkStatus, reportOrForwardLatencyMarker, setAsyncKeyedContextElement, setKeyContextElement1, setKeyContextElement2
-
Methods inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperator
getContainingTask, getExecutionConfig, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark1, processWatermark2, processWatermarkStatus1, processWatermarkStatus2, setCurrentKey, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotState
-
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.streaming.runtime.operators.asyncprocessing.AsyncKeyOrderedProcessing
getRecordProcessor, isAsyncKeyOrderedProcessingEnabled
-
Methods inherited from interface org.apache.flink.streaming.runtime.operators.asyncprocessing.AsyncKeyOrderedProcessingOperator
asyncProcessWithKey, getDeclarationManager, getElementOrder, postProcessElement, preserveRecordOrderAndProcess, setAsyncKeyedContextElement
-
-
-
-
Field Detail
-
currentWatermark
protected long currentWatermark
We listen to this ourselves because we don't have anInternalTimerService.
-
ctx
protected transient AsyncStateTableStreamOperator.ContextImpl ctx
-
-
Method Detail
-
open
public void open() throws Exception
-
useSplittableTimers
public boolean useSplittableTimers()
- Overrides:
useSplittableTimersin classorg.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
-
computeMemorySize
public long computeMemorySize()
Compute memory size from memory faction.
-
preProcessWatermark
public org.apache.flink.streaming.api.watermark.Watermark preProcessWatermark(org.apache.flink.streaming.api.watermark.Watermark mark) throws Exception
-
-