Class TextFileSink<T>
- java.lang.Object
-
- org.apache.wayang.core.plan.wayangplan.OperatorBase
-
- org.apache.wayang.core.plan.wayangplan.UnarySink<T>
-
- org.apache.wayang.basic.operators.TextFileSink<T>
-
- All Implemented Interfaces:
java.io.Serializable
,ActualOperator
,ElementaryOperator
,Operator
- Direct Known Subclasses:
FlinkTextFileSink
,JavaTextFileSink
,SparkTextFileSink
public class TextFileSink<T> extends UnarySink<T>
ThisUnarySink
writes all incoming data quanta to a text file.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wayang.core.plan.wayangplan.OperatorBase
OperatorBase.GsonSerializer
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformationDescriptor<T,java.lang.String>
formattingDescriptor
protected java.lang.String
textFileUrl
-
Fields inherited from class org.apache.wayang.core.plan.wayangplan.OperatorBase
inputSlots, outputSlots, STANDARD_OPERATOR_ARGS
-
Fields inherited from interface org.apache.wayang.core.plan.wayangplan.Operator
FIRST_EPOCH
-
-
Constructor Summary
Constructors Constructor Description TextFileSink(java.lang.String textFileUrl, java.lang.Class<T> typeClass)
Creates a new instance with default formatting.TextFileSink(java.lang.String textFileUrl, FunctionDescriptor.SerializableFunction<T,java.lang.String> formattingFunction, java.lang.Class<T> typeClass)
Creates a new instance.TextFileSink(java.lang.String textFileUrl, TransformationDescriptor<T,java.lang.String> formattingDescriptor)
Creates a new instance.TextFileSink(TextFileSink<T> that)
Creates a copied instance.
-
Method Summary
-
Methods inherited from class org.apache.wayang.core.plan.wayangplan.OperatorBase
accept, addBroadcastInput, addTargetPlatform, at, collectMappedInputSlots, collectMappedOutputSlots, copy, createCopy, getAllInputs, getAllOutputs, getCardinalityEstimator, getContainer, getEpoch, getName, getOriginal, getSimpleClassName, getTargetPlatforms, isAuxiliary, isSupportingBroadcastInputs, propagateInputCardinality, propagateOutputCardinality, setAuxiliary, setCardinalityEstimator, setContainer, setEpoch, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.ActualOperator
accept
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.ElementaryOperator
createCardinalityEstimator, getCardinalityEstimator, isAuxiliary, setAuxiliary, setCardinalityEstimator
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.Operator
addBroadcastInput, addTargetPlatform, broadcastTo, broadcastTo, collectMappedInputSlots, collectMappedOutputSlots, connectTo, connectTo, getAllInputs, getAllOutputs, getCardinalityPusher, getContainer, getEffectiveOccupant, getEffectiveOccupant, getEpoch, getEstimationContextProperties, getForwards, getInnermostLoop, getInput, getInput, getLoopStack, getName, getNumBroadcastInputs, getNumInputs, getNumOutputs, getNumRegularInputs, getOuterInputSlot, getOutermostInputSlot, getOutermostOutputSlots, getOutput, getOutput, getParent, getTargetPlatforms, isAlternative, isElementary, isExecutionOperator, isFeedbackInput, isFeedforwardOutput, isLoopHead, isLoopSubplan, isOwnerOf, isReading, isSink, isSource, isSubplan, isSupportingBroadcastInputs, isUnconnected, propagateInputCardinality, propagateOutputCardinality, propagateOutputCardinality, setContainer, setEpoch, setInput, setName, setOutput
-
-
-
-
Field Detail
-
textFileUrl
protected final java.lang.String textFileUrl
-
formattingDescriptor
protected final TransformationDescriptor<T,java.lang.String> formattingDescriptor
-
-
Constructor Detail
-
TextFileSink
public TextFileSink(java.lang.String textFileUrl, java.lang.Class<T> typeClass)
Creates a new instance with default formatting.- Parameters:
textFileUrl
- URL to file that should be writtentypeClass
-Class
of incoming data quanta
-
TextFileSink
public TextFileSink(java.lang.String textFileUrl, FunctionDescriptor.SerializableFunction<T,java.lang.String> formattingFunction, java.lang.Class<T> typeClass)
Creates a new instance.- Parameters:
textFileUrl
- URL to file that should be writtenformattingFunction
- formats incoming data quanta to aString
representationtypeClass
-Class
of incoming data quanta
-
TextFileSink
public TextFileSink(java.lang.String textFileUrl, TransformationDescriptor<T,java.lang.String> formattingDescriptor)
Creates a new instance.- Parameters:
textFileUrl
- URL to file that should be writtenformattingDescriptor
- formats incoming data quanta to aString
representation
-
TextFileSink
public TextFileSink(TextFileSink<T> that)
Creates a copied instance.- Parameters:
that
- should be copied
-
-