public class UnalignedWindowTableFunctionOperator extends WindowTableFunctionOperatorBase implements org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,TimeWindow>
See more details about aligned window and unaligned window in WindowAggOperator.
Note: The operator only applies for Window TVF with set semantics (e.g SESSION) instead of row semantics (e.g TUMBLE/HOP/CUMULATE).
This operator emits result at the end of window instead of per record.
This operator will not compact changelog records.
This operator will keep the original order of input records when outputting.
TableStreamOperator.ContextImplnumNullRowTimeRecordsDropped, rowtimeIndex, shiftTimeZone, windowAssignerctx, currentWatermark| 构造器和说明 |
|---|
UnalignedWindowTableFunctionOperator(GroupWindowAssigner<TimeWindow> windowAssigner,
org.apache.flink.api.common.typeutils.TypeSerializer<TimeWindow> windowSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> inputSerializer,
int rowtimeIndex,
ZoneId shiftTimeZone) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
org.apache.flink.metrics.Counter |
getNumLateRecordsDropped() |
org.apache.flink.metrics.Gauge<Long> |
getWatermarkLatency() |
void |
onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,TimeWindow> timer) |
void |
onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,TimeWindow> timer) |
void |
open() |
void |
processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element) |
collect, getNumNullRowTimeRecordsDroppedcomputeMemorySize, processWatermark, useSplittableTimersfinish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getStateKeySelector1, getStateKeySelector2, getTimeServiceManager, getUserCodeClassloader, hasKeyContext1, hasKeyContext2, initializeState, initializeState, isUsingCustomRawKeyedState, notifyCheckpointAborted, notifyCheckpointComplete, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processRecordAttributes, processRecordAttributes1, processRecordAttributes2, processWatermark1, processWatermark2, processWatermarkStatus, processWatermarkStatus1, processWatermarkStatus2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setMailboxExecutor, setProcessingTimeService, setup, snapshotState, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletepublic UnalignedWindowTableFunctionOperator(GroupWindowAssigner<TimeWindow> windowAssigner, org.apache.flink.api.common.typeutils.TypeSerializer<TimeWindow> windowSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.RowData> inputSerializer, int rowtimeIndex, ZoneId shiftTimeZone)
public void open()
throws Exception
open 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open 在类中 WindowTableFunctionOperatorBaseExceptionpublic void close()
throws Exception
close 在接口中 org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>close 在类中 WindowTableFunctionOperatorBaseExceptionpublic void processElement(org.apache.flink.streaming.runtime.streamrecord.StreamRecord<org.apache.flink.table.data.RowData> element)
throws Exception
processElement 在接口中 org.apache.flink.streaming.api.operators.Input<org.apache.flink.table.data.RowData>Exceptionpublic void onEventTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,TimeWindow> timer) throws Exception
onEventTime 在接口中 org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,TimeWindow>Exceptionpublic void onProcessingTime(org.apache.flink.streaming.api.operators.InternalTimer<org.apache.flink.table.data.RowData,TimeWindow> timer) throws Exception
onProcessingTime 在接口中 org.apache.flink.streaming.api.operators.Triggerable<org.apache.flink.table.data.RowData,TimeWindow>Exception@VisibleForTesting public org.apache.flink.metrics.Counter getNumLateRecordsDropped()
@VisibleForTesting public org.apache.flink.metrics.Gauge<Long> getWatermarkLatency()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.