public abstract class AbstractRowTimeUnboundedPrecedingOver<K> extends KeyedProcessFunctionWithCleanupState<K,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
| Modifier and Type | Field and Description |
|---|---|
protected AggsHandleFunction |
function |
protected org.apache.flink.table.data.utils.JoinedRowData |
output |
stateCleaningEnabled| Constructor and Description |
|---|
AbstractRowTimeUnboundedPrecedingOver(long minRetentionTime,
long maxRetentionTime,
GeneratedAggsHandleFunction genAggsHandler,
org.apache.flink.table.types.logical.LogicalType[] accTypes,
org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes,
int rowTimeIdx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.flink.metrics.Counter |
getCounter() |
void |
onTimer(long timestamp,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) |
void |
open(org.apache.flink.api.common.functions.OpenContext openContext) |
void |
processElement(org.apache.flink.table.data.RowData input,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
Puts an element from the input stream into state if it is not late.
|
protected abstract void |
processElementsWithSameTimestamp(List<org.apache.flink.table.data.RowData> curRowList,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
Process the same timestamp datas, the mechanism is different between rows and range window.
|
cleanupState, initCleanupTimeState, isProcessingTimeTimer, needToCleanupState, registerProcessingCleanupTimergetIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterProcessingCleanupTimerprotected transient org.apache.flink.table.data.utils.JoinedRowData output
protected transient AggsHandleFunction function
public AbstractRowTimeUnboundedPrecedingOver(long minRetentionTime,
long maxRetentionTime,
GeneratedAggsHandleFunction genAggsHandler,
org.apache.flink.table.types.logical.LogicalType[] accTypes,
org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes,
int rowTimeIdx)
@VisibleForTesting protected org.apache.flink.metrics.Counter getCounter()
public void open(org.apache.flink.api.common.functions.OpenContext openContext)
throws Exception
Exceptionpublic void processElement(org.apache.flink.table.data.RowData input,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
throws Exception
processElement in class org.apache.flink.streaming.api.functions.KeyedProcessFunction<K,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>input - The input value.ctx - A Context that allows querying the timestamp of the element and getting
TimerService for registering timers and querying the time. The context is only valid
during the invocation of this method, do not store it.out - The collector for returning result values.Exceptionpublic void onTimer(long timestamp,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
throws Exception
protected abstract void processElementsWithSameTimestamp(List<org.apache.flink.table.data.RowData> curRowList, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws Exception
ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.