T
- The type of the elements in the Streampublic class DataStreamSink<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
DataStreamSink(DataStream<T> inputStream,
StreamSink<T> operator) |
Modifier and Type | Method and Description |
---|---|
DataStreamSink<T> |
disableChaining()
Turns off chaining for this operator so thread co-location will not be
used as an optimization.
|
SinkTransformation<T> |
getTransformation()
Returns the transformation that contains the actual sink operator of this sink.
|
DataStreamSink<T> |
name(String name)
Sets the name of this sink.
|
DataStreamSink<T> |
setParallelism(int parallelism)
Sets the parallelism for this sink.
|
protected DataStreamSink(DataStream<T> inputStream, StreamSink<T> operator)
public SinkTransformation<T> getTransformation()
public DataStreamSink<T> name(String name)
public DataStreamSink<T> setParallelism(int parallelism)
parallelism
- The parallelism for this sink.public DataStreamSink<T> disableChaining()
Chaining can be turned off for the whole
job by StreamExecutionEnvironment.disableOperatorChaining()
however it is not advised for performance considerations.
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.