S - Type of stream classT - Type of the data in the stream.public abstract class Stream<S extends Stream<S,T>,T> extends Object implements Serializable
| 限定符 | 构造器和说明 |
|---|---|
protected |
Stream(Stream originalStream)
Create a proxy stream of original stream.
|
|
Stream(StreamingContext streamingContext,
StreamOperator streamOperator) |
|
Stream(StreamingContext streamingContext,
StreamOperator streamOperator,
Partition<T> partition) |
protected |
Stream(StreamingContext streamingContext,
Stream inputStream,
StreamOperator streamOperator,
Partition<T> partition) |
|
Stream(Stream inputStream,
StreamOperator streamOperator) |
|
Stream(Stream inputStream,
StreamOperator streamOperator,
Partition<T> partition) |
| 限定符和类型 | 方法和说明 |
|---|---|
S |
disableChain()
Disable chain for this stream
|
S |
forward()
Set the partition function of this
Stream so that output elements are forwarded to next
operator locally. |
Map<String,String> |
getConfig() |
int |
getId() |
Stream |
getInputStream() |
abstract Language |
getLanguage() |
StreamOperator |
getOperator() |
Stream |
getOriginalStream() |
int |
getParallelism() |
Partition<T> |
getPartition() |
StreamingContext |
getStreamingContext() |
boolean |
isProxyStream() |
S |
setParallelism(int parallelism) |
protected S |
setPartition(Partition<T> partition) |
S |
withChainStrategy(ChainStrategy chainStrategy)
Set chain strategy for this stream
|
S |
withConfig(Map<String,String> config) |
S |
withConfig(String key,
String value) |
public Stream(StreamingContext streamingContext, StreamOperator streamOperator)
public Stream(StreamingContext streamingContext, StreamOperator streamOperator, Partition<T> partition)
public Stream(Stream inputStream, StreamOperator streamOperator)
public Stream(Stream inputStream, StreamOperator streamOperator, Partition<T> partition)
protected Stream(StreamingContext streamingContext, Stream inputStream, StreamOperator streamOperator, Partition<T> partition)
protected Stream(Stream originalStream)
public int getId()
public StreamingContext getStreamingContext()
public Stream getInputStream()
public StreamOperator getOperator()
public int getParallelism()
public S setParallelism(int parallelism)
public boolean isProxyStream()
public Stream getOriginalStream()
public S withChainStrategy(ChainStrategy chainStrategy)
public S disableChain()
public S forward()
Stream so that output elements are forwarded to next
operator locally.public abstract Language getLanguage()
Copyright © 2022. All rights reserved.