Modifier and Type | Field and Description |
---|---|
protected UserCodeWrapper<? extends OutputFormat<IN>> |
formatWrapper |
protected Operator<IN> |
input |
compilerHints, name, operatorInfo, parameters
Constructor and Description |
---|
GenericDataSinkBase(OutputFormat<IN> f,
UnaryOperatorInformation<IN,Nothing> operatorInfo,
String name)
Creates a GenericDataSink with the provided
OutputFormat implementation and the given name. |
GenericDataSinkBase(UserCodeWrapper<? extends OutputFormat<IN>> f,
UnaryOperatorInformation<IN,Nothing> operatorInfo,
String name)
Creates a GenericDataSink with the provided
OutputFormat implementation and the given name. |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor<Operator<?>> visitor)
Accepts the visitor and applies it this instance.
|
void |
addInput(Operator<IN>... inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
addInputs(List<? extends Operator<IN>> inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
protected void |
executeOnCollections(List<IN> inputData,
RuntimeContext ctx,
ExecutionConfig executionConfig) |
UserCodeWrapper<? extends OutputFormat<IN>> |
getFormatWrapper()
Gets the class describing this sinks output format.
|
Operator<IN> |
getInput()
Returns this operator's input operator.
|
Ordering |
getLocalOrder()
Gets the order, in which the data sink writes its data locally.
|
UserCodeWrapper<? extends OutputFormat<IN>> |
getUserCodeWrapper()
Gets the class describing the output format.
|
void |
setInput(Operator<IN> input)
Sets the given operator as the input to this operator.
|
void |
setInputs(List<Operator<IN>> inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
setInputs(Operator<IN>... inputs)
Deprecated.
This method will be removed in future versions. Use the
Union operator instead. |
void |
setLocalOrder(Ordering localOrder)
Sets the order in which the sink must write its data within each fragment in the distributed
file system.
|
String |
toString() |
createUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getMinResources, getName, getOperatorInfo, getParallelism, getParameters, getPreferredResources, setName, setParallelism, setParameter, setParameter, setParameter, setResources
protected final UserCodeWrapper<? extends OutputFormat<IN>> formatWrapper
public GenericDataSinkBase(OutputFormat<IN> f, UnaryOperatorInformation<IN,Nothing> operatorInfo, String name)
OutputFormat
implementation and the given name.f
- The OutputFormat
implementation used to sink
the data.name
- The given name for the sink, used in plans, logs and progress messages.public GenericDataSinkBase(UserCodeWrapper<? extends OutputFormat<IN>> f, UnaryOperatorInformation<IN,Nothing> operatorInfo, String name)
OutputFormat
implementation and the given name.f
- The OutputFormat
implementation used to sink
the data.name
- The given name for the sink, used in plans, logs and progress messages.public Operator<IN> getInput()
public void setInput(Operator<IN> input)
input
- The operator to use as the input.@Deprecated public void setInputs(Operator<IN>... inputs)
Union
operator instead.inputs
- The operator(s) that form the input.@Deprecated public void setInputs(List<Operator<IN>> inputs)
Union
operator instead.inputs
- The operator(s) that form the input.@Deprecated public void addInput(Operator<IN>... inputs)
Union
operator instead.inputs
- The operator(s) to be unioned with the input.@Deprecated public void addInputs(List<? extends Operator<IN>> inputs)
Union
operator instead.inputs
- The operator(s) to be unioned with the input.public Ordering getLocalOrder()
public void setLocalOrder(Ordering localOrder)
localOrder
- The local order to write the data in.public UserCodeWrapper<? extends OutputFormat<IN>> getFormatWrapper()
public UserCodeWrapper<? extends OutputFormat<IN>> getUserCodeWrapper()
This method is basically identical to getFormatWrapper()
.
getUserCodeWrapper
in class Operator<Nothing>
Operator.getUserCodeWrapper()
public void accept(Visitor<Operator<?>> visitor)
visitor
- The visitor.Visitable.accept(org.apache.flink.util.Visitor)
protected void executeOnCollections(List<IN> inputData, RuntimeContext ctx, ExecutionConfig executionConfig) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.