Interface NonKeyedPartitionStream<T>
-
- All Superinterfaces:
DataStream
- All Known Subinterfaces:
NonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<T>
@Experimental public interface NonKeyedPartitionStream<T> extends DataStream
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 Classes Modifier and Type Interface Description static interfaceNonKeyedPartitionStream.ProcessConfigurableAndNonKeyedPartitionStream<T>This interface represents a configurableNonKeyedPartitionStream.static interfaceNonKeyedPartitionStream.ProcessConfigurableAndTwoNonKeyedPartitionStream<OUT1,OUT2>This interface represents a combination of twoNonKeyedPartitionStream.
-
Method Summary
-
-
-
Method Detail
-
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
ProcessConfigurable<?> toSink(org.apache.flink.api.connector.dsv2.Sink<T> sink)
-
-