public abstract class WindowTableFunctionOperatorBase extends TableStreamOperator<org.apache.flink.table.data.RowData> implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
WindowTableFunctionOperatorBase acts as a table-valued function to assign windows for
input row. Output row includes the original columns as well additional 3 columns named window_start, window_end, window_time to indicate the assigned window.TableStreamOperator.ContextImpl| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.metrics.Counter |
numNullRowTimeRecordsDropped |
protected int |
rowtimeIndex |
protected ZoneId |
shiftTimeZone
The shift timezone of the window, if the proctime or rowtime type is TIMESTAMP_LTZ, the shift
timezone is the timezone user configured in TableConfig, other cases the timezone is UTC
which means never shift when assigning windows.
|
protected GroupWindowAssigner<TimeWindow> |
windowAssigner |
ctx, currentWatermark| Constructor and Description |
|---|
WindowTableFunctionOperatorBase(GroupWindowAssigner<TimeWindow> windowAssigner,
int rowtimeIndex,
ZoneId shiftTimeZone) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
collect(org.apache.flink.table.data.RowData inputRow,
Collection<TimeWindow> allWindows) |
org.apache.flink.metrics.Counter |
getNumNullRowTimeRecordsDropped() |
void |
open() |
computeMemorySize, processWatermarkfinish, getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, 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, setProcessingTimeService, setup, snapshotState, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementfinish, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprotected final ZoneId shiftTimeZone
protected final int rowtimeIndex
protected final GroupWindowAssigner<TimeWindow> windowAssigner
protected transient org.apache.flink.metrics.Counter numNullRowTimeRecordsDropped
public WindowTableFunctionOperatorBase(GroupWindowAssigner<TimeWindow> windowAssigner, int rowtimeIndex, ZoneId shiftTimeZone)
public void open()
throws Exception
open in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>open in class TableStreamOperator<org.apache.flink.table.data.RowData>Exceptionpublic void close()
throws Exception
close in interface org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>close in class org.apache.flink.streaming.api.operators.AbstractStreamOperator<org.apache.flink.table.data.RowData>Exceptionprotected void collect(org.apache.flink.table.data.RowData inputRow,
Collection<TimeWindow> allWindows)
@VisibleForTesting public org.apache.flink.metrics.Counter getNumNullRowTimeRecordsDropped()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.