public class ProcTimeRangeBoundedPrecedingFunction<K>
extends org.apache.flink.streaming.api.functions.KeyedProcessFunction<K,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
E.g.: SELECT currtime, b, c, min(c) OVER (PARTITION BY b ORDER BY proctime RANGE BETWEEN INTERVAL '4' SECOND PRECEDING AND CURRENT ROW), max(c) OVER (PARTITION BY b ORDER BY proctime RANGE BETWEEN INTERVAL '4' SECOND PRECEDING AND CURRENT ROW) FROM T.
| 构造器和说明 |
|---|
ProcTimeRangeBoundedPrecedingFunction(GeneratedAggsHandleFunction genAggsHandler,
org.apache.flink.table.types.logical.LogicalType[] accTypes,
org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes,
long precedingTimeBoundary) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
public ProcTimeRangeBoundedPrecedingFunction(GeneratedAggsHandleFunction genAggsHandler, org.apache.flink.table.types.logical.LogicalType[] accTypes, org.apache.flink.table.types.logical.LogicalType[] inputFieldTypes, long precedingTimeBoundary)
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
public 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
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.