public abstract class AbstractRowTimeUnboundedPrecedingOver<K> extends KeyedProcessFunctionWithCleanupState<K,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
| 限定符和类型 | 字段和说明 |
|---|---|
protected AggsHandleFunction |
function |
protected JoinedRowData |
output |
stateCleaningEnabled| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
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.configuration.Configuration parameters) |
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, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterProcessingCleanupTimerprotected transient 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)
public void open(org.apache.flink.configuration.Configuration parameters)
throws Exception
open 在接口中 org.apache.flink.api.common.functions.RichFunctionopen 在类中 org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic 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 在类中 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–2020 The Apache Software Foundation. All rights reserved.