Package org.apache.wayang.basic.channels
Class FileChannel
- java.lang.Object
-
- org.apache.wayang.core.plan.executionplan.Channel
-
- org.apache.wayang.basic.channels.FileChannel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileChannel.Descriptor
ChannelDescriptor
forFileChannel
s.class
FileChannel.Instance
ChannelInstance
implementation forFileChannel
s.
-
Field Summary
Fields Modifier and Type Field Description static FileChannel.Descriptor
HDFS_OBJECT_FILE_DESCRIPTOR
static FileChannel.Descriptor
HDFS_TSV_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description FileChannel(FileChannel.Descriptor descriptor)
FileChannel(ChannelDescriptor descriptor, OutputSlot<?> outputSlot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileChannel
copy()
Create a copy of this instance.ChannelInstance
createInstance(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex)
Create aChannelInstance
for this instance.FileChannel.Descriptor
getDescriptor()
java.lang.String
toString()
-
Methods inherited from class org.apache.wayang.core.plan.executionplan.Channel
addConsumer, addSibling, getCardinalityEstimate, getConsumers, getCorrespondingSlots, getDataSetType, getOriginal, getProducer, getProducerOperator, getProducerSlot, getSiblings, isBetweenStages, isCopy, isExecutionBreaker, isMarkedForInstrumentation, isReusable, isSuitableForBreakpoint, markForInstrumentation, mergeIntoOriginal, removeSiblings, removeSiblingsWhere, retain, withSiblings
-
-
-
-
Field Detail
-
HDFS_TSV_DESCRIPTOR
public static final FileChannel.Descriptor HDFS_TSV_DESCRIPTOR
-
HDFS_OBJECT_FILE_DESCRIPTOR
public static final FileChannel.Descriptor HDFS_OBJECT_FILE_DESCRIPTOR
-
-
Constructor Detail
-
FileChannel
public FileChannel(FileChannel.Descriptor descriptor)
-
FileChannel
public FileChannel(ChannelDescriptor descriptor, OutputSlot<?> outputSlot)
-
-
Method Detail
-
copy
public FileChannel copy()
Description copied from class:Channel
Create a copy of this instance. Mimics everything apart from the consumers. Also delimits already executedExecutionTask
s and those that are not executed yet. Be careful when revising this invariant.
-
getDescriptor
public FileChannel.Descriptor getDescriptor()
- Overrides:
getDescriptor
in classChannel
-
createInstance
public ChannelInstance createInstance(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex)
Description copied from class:Channel
Create aChannelInstance
for this instance.- Specified by:
createInstance
in classChannel
- Parameters:
executor
- that manages the resource ornull
if none
-
-