@Internal public class NonKeyedPartitionWindowedStream<T> extends Object implements PartitionWindowedStream<T>
NonKeyedPartitionWindowedStream represents a data stream that collects all records of
each subtask separately into a full window.| Constructor and Description |
|---|
NonKeyedPartitionWindowedStream(StreamExecutionEnvironment environment,
DataStream<T> input) |
| Modifier and Type | Method and Description |
|---|---|
<ACC,R> SingleOutputStreamOperator<R> |
aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,R> aggregateFunction)
Applies an aggregate transformation on the records of the window.
|
<R> SingleOutputStreamOperator<R> |
mapPartition(org.apache.flink.api.common.functions.MapPartitionFunction<T,R> mapPartitionFunction)
Process the records of the window by
MapPartitionFunction. |
SingleOutputStreamOperator<T> |
reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction)
Applies a reduce transformation on the records of the window.
|
SingleOutputStreamOperator<T> |
sortPartition(int field,
org.apache.flink.api.common.operators.Order order)
Sorts the records of the window on the specified field in the specified order.
|
<K> SingleOutputStreamOperator<T> |
sortPartition(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector,
org.apache.flink.api.common.operators.Order order)
Sorts the records according to a
KeySelector in the specified order. |
SingleOutputStreamOperator<T> |
sortPartition(String field,
org.apache.flink.api.common.operators.Order order)
Sorts the records of the window on the specified field in the specified order.
|
public NonKeyedPartitionWindowedStream(StreamExecutionEnvironment environment, DataStream<T> input)
public <R> SingleOutputStreamOperator<R> mapPartition(org.apache.flink.api.common.functions.MapPartitionFunction<T,R> mapPartitionFunction)
PartitionWindowedStreamMapPartitionFunction.mapPartition in interface PartitionWindowedStream<T>R - The type of map partition result.mapPartitionFunction - The map partition function.public SingleOutputStreamOperator<T> reduce(org.apache.flink.api.common.functions.ReduceFunction<T> reduceFunction)
PartitionWindowedStreamreduce in interface PartitionWindowedStream<T>reduceFunction - The reduce function.public <ACC,R> SingleOutputStreamOperator<R> aggregate(org.apache.flink.api.common.functions.AggregateFunction<T,ACC,R> aggregateFunction)
PartitionWindowedStreamaggregate in interface PartitionWindowedStream<T>ACC - The type of accumulator in aggregate function.R - The type of aggregate function result.aggregateFunction - The aggregate function.public SingleOutputStreamOperator<T> sortPartition(int field, org.apache.flink.api.common.operators.Order order)
PartitionWindowedStreamTuple.
This operator will use managed memory for the sort.For NonKeyedPartitionWindowedStream, the managed memory size can be set by ExecutionOptions.SORT_PARTITION_MEMORY. For KeyedPartitionWindowedStream, the
managed memory size can be set by ExecutionOptions.SORT_KEYED_PARTITION_MEMORY.
sortPartition in interface PartitionWindowedStream<T>field - The field 1-based index on which records is sorted.order - The order in which records is sorted.public SingleOutputStreamOperator<T> sortPartition(String field, org.apache.flink.api.common.operators.Order order)
PartitionWindowedStreamPojoTypeInfo. A type is considered a Flink POJO type, if
it fulfills the conditions below.
This operator will use managed memory for the sort.For NonKeyedPartitionWindowedStream, the managed memory size can be set by ExecutionOptions.SORT_PARTITION_MEMORY. For KeyedPartitionWindowedStream, the
managed memory size can be set by ExecutionOptions.SORT_KEYED_PARTITION_MEMORY.
sortPartition in interface PartitionWindowedStream<T>field - The field expression referring to the field on which records is sorted.order - The order in which records is sorted.public <K> SingleOutputStreamOperator<T> sortPartition(org.apache.flink.api.java.functions.KeySelector<T,K> keySelector, org.apache.flink.api.common.operators.Order order)
PartitionWindowedStreamKeySelector in the specified order.
This operator will use managed memory for the sort.For NonKeyedPartitionWindowedStream, the managed memory size can be set by ExecutionOptions.SORT_PARTITION_MEMORY. For KeyedPartitionWindowedStream, the
managed memory size can be set by ExecutionOptions.SORT_KEYED_PARTITION_MEMORY.
sortPartition in interface PartitionWindowedStream<T>keySelector - The key selector to extract key from the records for sorting.order - The order in which records is sorted.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.