Package org.apache.wayang.spark.channels
Class RddChannel
- java.lang.Object
-
- org.apache.wayang.core.plan.executionplan.Channel
-
- org.apache.wayang.spark.channels.RddChannel
-
public class RddChannel extends Channel
Describes the situation where oneJavaRDDis operated on, producing a furtherJavaRDD.NB: We might be more specific: Distinguish between cached/uncached and pipelined/aggregated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRddChannel.InstanceChannelInstanceimplementation forRddChannels.
-
Field Summary
Fields Modifier and Type Field Description static ChannelDescriptorCACHED_DESCRIPTORstatic ChannelDescriptorUNCACHED_DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description RddChannel(ChannelDescriptor descriptor, OutputSlot<?> outputSlot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RddChannelcopy()Create a copy of this instance.RddChannel.InstancecreateInstance(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex)Create aChannelInstancefor this instance.-
Methods inherited from class org.apache.wayang.core.plan.executionplan.Channel
addConsumer, addSibling, getCardinalityEstimate, getConsumers, getCorrespondingSlots, getDataSetType, getDescriptor, getOriginal, getProducer, getProducerOperator, getProducerSlot, getSiblings, isBetweenStages, isCopy, isExecutionBreaker, isMarkedForInstrumentation, isReusable, isSuitableForBreakpoint, markForInstrumentation, mergeIntoOriginal, removeSiblings, removeSiblingsWhere, retain, toString, withSiblings
-
-
-
-
Field Detail
-
UNCACHED_DESCRIPTOR
public static final ChannelDescriptor UNCACHED_DESCRIPTOR
-
CACHED_DESCRIPTOR
public static final ChannelDescriptor CACHED_DESCRIPTOR
-
-
Constructor Detail
-
RddChannel
public RddChannel(ChannelDescriptor descriptor, OutputSlot<?> outputSlot)
-
-
Method Detail
-
copy
public RddChannel copy()
Description copied from class:ChannelCreate a copy of this instance. Mimics everything apart from the consumers. Also delimits already executedExecutionTasks and those that are not executed yet. Be careful when revising this invariant.
-
createInstance
public RddChannel.Instance createInstance(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex)
Description copied from class:ChannelCreate aChannelInstancefor this instance.- Specified by:
createInstancein classChannel- Parameters:
executor- that manages the resource ornullif none
-
-