T - The type of StreamSource data.public class DataStreamSource<T> extends DataStream<T> implements StreamSource<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> DataStreamSource<T> |
fromCollection(StreamingContext context,
Collection<T> values)
Build a DataStreamSource source from a collection.
|
static <T> DataStreamSource<T> |
fromSource(StreamingContext context,
SourceFunction<T> sourceFunction) |
asPythonStream, 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 static <T> DataStreamSource<T> fromSource(StreamingContext context, SourceFunction<T> sourceFunction)
public static <T> DataStreamSource<T> fromCollection(StreamingContext context, Collection<T> values)
T - The type of source data.context - Stream context.values - A collection of values.Copyright © 2021. All rights reserved.