K - Type of the key.T - Type of the data.public class KeyDataStream<K,T> extends DataStream<T>
| Constructor and Description |
|---|
KeyDataStream(DataStream<T> input,
StreamOperator streamOperator) |
KeyDataStream(PythonDataStream referencedStream)
Create a java stream that reference passed python stream.
|
| Modifier and Type | Method and Description |
|---|---|
<A,O> DataStream<O> |
aggregate(AggregateFunction<T,A,O> aggregateFunction)
Apply an aggregate Function to this stream.
|
PythonKeyDataStream |
asPythonStream()
Convert this stream as a python stream.
|
DataStream<T> |
reduce(ReduceFunction reduceFunction)
Apply a reduce function to this stream.
|
broadcast, filter, flatMap, getLanguage, join, keyBy, map, partitionBy, process, sink, union, uniondisableChain, forward, getConfig, getId, getInputStream, getOperator, getOriginalStream, getParallelism, getPartition, getStreamingContext, isProxyStream, setParallelism, setPartition, withChainStrategy, withConfig, withConfigpublic KeyDataStream(DataStream<T> input, StreamOperator streamOperator)
public KeyDataStream(PythonDataStream referencedStream)
public DataStream<T> reduce(ReduceFunction reduceFunction)
reduceFunction - The reduce function.public <A,O> DataStream<O> aggregate(AggregateFunction<T,A,O> aggregateFunction)
A - The type of aggregated intermediate data.O - The type of result data.aggregateFunction - The aggregate functionpublic PythonKeyDataStream asPythonStream()
asPythonStream in class DataStream<T>Copyright © 2020. All rights reserved.