public class PythonDataStream extends Stream<PythonDataStream,Object> implements PythonStream
| Modifier | Constructor and Description |
|---|---|
|
PythonDataStream(DataStream referencedStream)
Create a python stream that reference passed java stream.
|
|
PythonDataStream(PythonDataStream input,
PythonOperator pythonOperator) |
|
PythonDataStream(PythonDataStream input,
PythonOperator pythonOperator,
Partition<Object> partition) |
protected |
PythonDataStream(StreamingContext streamingContext,
PythonOperator pythonOperator) |
protected |
PythonDataStream(StreamingContext streamingContext,
PythonOperator pythonOperator,
Partition<Object> partition) |
| Modifier and Type | Method and Description |
|---|---|
DataStream<Object> |
asJavaStream()
Convert this stream as a java stream.
|
PythonDataStream |
broadcast()
Apply broadcast to this stream.
|
PythonDataStream |
filter(PythonFunction func)
Apply a filter function to this stream.
|
PythonDataStream |
filter(String moduleName,
String funcName) |
PythonDataStream |
flatMap(PythonFunction func)
Apply a flat-map function to this stream.
|
PythonDataStream |
flatMap(String moduleName,
String funcName) |
Language |
getLanguage() |
PythonKeyDataStream |
keyBy(PythonFunction func)
Apply a key-by function to this stream.
|
PythonKeyDataStream |
keyBy(String moduleName,
String funcName) |
PythonDataStream |
map(PythonFunction func)
Apply a map function to this stream.
|
PythonDataStream |
map(String moduleName,
String funcName) |
PythonDataStream |
partitionBy(PythonPartition partition)
Apply a partition to this stream.
|
PythonStreamSink |
sink(PythonFunction func)
Apply a sink function and get a StreamSink.
|
PythonStreamSink |
sink(String moduleName,
String funcName) |
PythonDataStream |
union(List<PythonDataStream> streams)
Apply union transformations to this stream by merging
PythonDataStream outputs of the
same type with each other. |
PythonDataStream |
union(PythonDataStream stream,
PythonDataStream... others)
Apply union transformations to this stream by merging
PythonDataStream outputs of the
same type with each other. |
disableChain, forward, getConfig, getId, getInputStream, getOperator, getOriginalStream, getParallelism, getPartition, getStreamingContext, isProxyStream, setParallelism, setPartition, withChainStrategy, withConfig, withConfigprotected PythonDataStream(StreamingContext streamingContext, PythonOperator pythonOperator)
protected PythonDataStream(StreamingContext streamingContext, PythonOperator pythonOperator, Partition<Object> partition)
public PythonDataStream(PythonDataStream input, PythonOperator pythonOperator)
public PythonDataStream(PythonDataStream input, PythonOperator pythonOperator, Partition<Object> partition)
public PythonDataStream(DataStream referencedStream)
public PythonDataStream map(String moduleName, String funcName)
public PythonDataStream map(PythonFunction func)
func - The python MapFunction.public PythonDataStream flatMap(String moduleName, String funcName)
public PythonDataStream flatMap(PythonFunction func)
func - The python FlapMapFunction.public PythonDataStream filter(String moduleName, String funcName)
public PythonDataStream filter(PythonFunction func)
func - The python FilterFunction.public final PythonDataStream union(PythonDataStream stream, PythonDataStream... others)
PythonDataStream outputs of the
same type with each other.stream - The DataStream to union output with.others - The other DataStreams to union output with.public final PythonDataStream union(List<PythonDataStream> streams)
PythonDataStream outputs of the
same type with each other.streams - The DataStreams to union output with.public PythonStreamSink sink(String moduleName, String funcName)
public PythonStreamSink sink(PythonFunction func)
func - The python SinkFunction.public PythonKeyDataStream keyBy(String moduleName, String funcName)
public PythonKeyDataStream keyBy(PythonFunction func)
func - the python keyFunction.public PythonDataStream broadcast()
public PythonDataStream partitionBy(PythonPartition partition)
partition - The partitioning strategy.public DataStream<Object> asJavaStream()
public Language getLanguage()
getLanguage in class Stream<PythonDataStream,Object>Copyright © 2021. All rights reserved.