Interface NonKeyedPartitionStream<T>
- All Superinterfaces:
DataStream
- All Known Subinterfaces:
NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<T>
This interface represents a kind of partitioned data stream. For this stream, each parallelism is
a partition, and the partition to which the data belongs is random.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis interface represents a configurableNonKeyedPartitionStream.static interfaceThis interface represents a combination of twoNonKeyedPartitionStream. -
Method Summary
Modifier and TypeMethodDescriptionTransform this stream to a newBroadcastStream.<T_OTHER,OUT>
NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT>connectAndProcess(BroadcastStream<T_OTHER> other, TwoInputBroadcastStreamProcessFunction<T, T_OTHER, OUT> processFunction) Apply a two input operation to this and otherBroadcastStream.<T_OTHER,OUT>
NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT>connectAndProcess(NonKeyedPartitionStream<T_OTHER> other, TwoInputNonBroadcastStreamProcessFunction<T, T_OTHER, OUT> processFunction) Apply to a two input operation on this and otherNonKeyedPartitionStream.global()Coalesce this stream to aGlobalStream.<K> KeyedPartitionStream<K,T> Transform this stream to aKeyedPartitionStream.process(OneInputStreamProcessFunction<T, OUT> processFunction) Apply an operation to thisNonKeyedPartitionStream.<OUT1,OUT2>
NonKeyedPartitionStream.ProcessConfigurableAndTwoNonKeyedPartitionStream<OUT1,OUT2> process(TwoOutputStreamProcessFunction<T, OUT1, OUT2> processFunction) Apply a two output operation to thisNonKeyedPartitionStream.shuffle()Transform this stream to a newNonKeyedPartitionStream, data will be shuffled between these two streams.
-
Method Details
-
process
<OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> process(OneInputStreamProcessFunction<T, OUT> processFunction) Apply an operation to thisNonKeyedPartitionStream.- Parameters:
processFunction- to perform operation.- Returns:
- new stream with this operation.
-
process
<OUT1,OUT2> NonKeyedPartitionStream.ProcessConfigurableAndTwoNonKeyedPartitionStream<OUT1,OUT2> process(TwoOutputStreamProcessFunction<T, OUT1, OUT2> processFunction) Apply a two output operation to thisNonKeyedPartitionStream.- Parameters:
processFunction- to perform two output operation.- Returns:
- new stream with this operation.
-
connectAndProcess
<T_OTHER,OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> connectAndProcess(NonKeyedPartitionStream<T_OTHER> other, TwoInputNonBroadcastStreamProcessFunction<T, T_OTHER, OUT> processFunction) Apply to a two input operation on this and otherNonKeyedPartitionStream.- Parameters:
other-NonKeyedPartitionStreamto perform operation with two input.processFunction- to perform operation.- Returns:
- new stream with this operation.
-
connectAndProcess
<T_OTHER,OUT> NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<OUT> connectAndProcess(BroadcastStream<T_OTHER> other, TwoInputBroadcastStreamProcessFunction<T, T_OTHER, OUT> processFunction) Apply a two input operation to this and otherBroadcastStream.- Parameters:
processFunction- to perform operation.- Returns:
- new stream with this operation.
-
global
GlobalStream<T> global()Coalesce this stream to aGlobalStream.- Returns:
- the coalesced global stream.
-
keyBy
<K> KeyedPartitionStream<K,T> keyBy(org.apache.flink.api.java.functions.KeySelector<T, K> keySelector) Transform this stream to aKeyedPartitionStream.- Parameters:
keySelector- to decide how to map data to partition.- Returns:
- the transformed stream partitioned by key.
-
shuffle
NonKeyedPartitionStream<T> shuffle()Transform this stream to a newNonKeyedPartitionStream, data will be shuffled between these two streams.- Returns:
- the transformed stream after shuffle.
-
broadcast
BroadcastStream<T> broadcast()Transform this stream to a newBroadcastStream.- Returns:
- the transformed
BroadcastStream.
-
toSink
-