Class WindowOperatorBuilder<T,K,W extends Window>
java.lang.Object
org.apache.flink.streaming.runtime.operators.windowing.WindowOperatorBuilder<T,K,W>
- Type Parameters:
K- The type of key returned by theKeySelector.T- The type of the incoming elements.W- The type ofWindowthat theWindowAssignerassigns.
A builder for creating
WindowOperators.-
Constructor Summary
ConstructorsConstructorDescriptionWindowOperatorBuilder(WindowAssigner<? super T, W> windowAssigner, Trigger<? super T, ? super W> trigger, org.apache.flink.api.common.ExecutionConfig config, org.apache.flink.api.common.typeinfo.TypeInformation<T> inputType, org.apache.flink.api.java.functions.KeySelector<T, K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType) -
Method Summary
Modifier and TypeMethodDescription<ACC,V, R> OneInputStreamOperator<T, R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, ProcessWindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) <ACC,V, R> OneInputStreamOperator<T, R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, WindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) voidallowedLateness(Duration lateness) <R> OneInputStreamOperator<T,R> apply(WindowFunction<T, R, K, W> function) <ACC,V, R> OneInputStreamOperator<T, R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, ProcessWindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) <ACC,V, R> OneInputStreamOperator<T, R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, WindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) <R> OneInputStreamOperator<T,R> asyncApply(WindowFunction<T, R, K, W> function) <R> OneInputStreamOperator<T,R> asyncProcess(ProcessWindowFunction<T, R, K, W> function) <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T, R, K, W> function) <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) asyncTrigger(AsyncTrigger<? super T, ? super W> asyncTrigger) voidprotected static StringgenerateFunctionName(org.apache.flink.api.common.functions.Function function) generateOperatorDescription(org.apache.flink.api.common.functions.Function function1, org.apache.flink.api.common.functions.Function function2) long<R> OneInputStreamOperator<T,R> process(ProcessWindowFunction<T, R, K, W> function) <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T, R, K, W> function) <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) voidsideOutputLateData(org.apache.flink.util.OutputTag<T> outputTag) void
-
Constructor Details
-
WindowOperatorBuilder
public WindowOperatorBuilder(WindowAssigner<? super T, W> windowAssigner, Trigger<? super T, ? super W> trigger, org.apache.flink.api.common.ExecutionConfig config, org.apache.flink.api.common.typeinfo.TypeInformation<T> inputType, org.apache.flink.api.java.functions.KeySelector<T, K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType)
-
-
Method Details
-
trigger
-
asyncTrigger
-
allowedLateness
-
sideOutputLateData
-
evictor
-
reduce
public <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) -
asyncReduce
public <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) -
reduce
public <R> OneInputStreamOperator<T,R> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T, R, K, W> function) -
asyncReduce
public <R> OneInputStreamOperator<T,R> asyncReduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction, ProcessWindowFunction<T, R, K, W> function) -
aggregate
public <ACC,V, OneInputStreamOperator<T,R> R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, WindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) -
asyncAggregate
public <ACC,V, OneInputStreamOperator<T,R> R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, WindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) -
aggregate
public <ACC,V, OneInputStreamOperator<T,R> R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, ProcessWindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) -
asyncAggregate
public <ACC,V, OneInputStreamOperator<T,R> R> asyncAggregate(org.apache.flink.api.common.functions.AggregateFunction<T, ACC, V> aggregateFunction, ProcessWindowFunction<V, R, K, W> windowFunction, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accumulatorType) -
apply
-
process
-
asyncApply
-
asyncProcess
-
generateFunctionName
protected static String generateFunctionName(org.apache.flink.api.common.functions.Function function) -
generateOperatorName
-
generateOperatorDescription
public String generateOperatorDescription(org.apache.flink.api.common.functions.Function function1, @Nullable org.apache.flink.api.common.functions.Function function2) -
getAllowedLateness
@VisibleForTesting public long getAllowedLateness()
-