Package org.apache.wayang.spark.channels
Class BroadcastChannel.Instance
java.lang.Object
org.apache.wayang.core.util.AbstractReferenceCountable
org.apache.wayang.core.platform.ExecutionResourceTemplate
org.apache.wayang.core.platform.AbstractChannelInstance
org.apache.wayang.spark.channels.BroadcastChannel.Instance
- All Implemented Interfaces:
ChannelInstance
,ExecutionResource
,ReferenceCountable
- Enclosing class:
- BroadcastChannel
ChannelInstance
implementation for BroadcastChannel
s.-
Constructor Summary
ConstructorsConstructorDescriptionInstance
(SparkExecutor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(org.apache.spark.broadcast.Broadcast broadcast) protected void
Performs the actual disposing work of this instance.org.apache.spark.broadcast.Broadcast<?>
Methods inherited from class org.apache.wayang.core.platform.AbstractChannelInstance
getLineage, getMeasuredCardinality, getProducerOperatorContext, markProduced, setMeasuredCardinality, toString, wasProduced
Methods inherited from class org.apache.wayang.core.platform.ExecutionResourceTemplate
dispose, disposeUnreferenced
Methods inherited from class org.apache.wayang.core.util.AbstractReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
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.platform.ChannelInstance
isMarkedForInstrumentation
Methods inherited from interface org.apache.wayang.core.platform.ExecutionResource
dispose
Methods inherited from interface org.apache.wayang.core.util.ReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
-
Constructor Details
-
Instance
public Instance(SparkExecutor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex)
-
-
Method Details
-
accept
public void accept(org.apache.spark.broadcast.Broadcast broadcast) -
provideBroadcast
public org.apache.spark.broadcast.Broadcast<?> provideBroadcast() -
doDispose
protected void doDispose()Description copied from class:ExecutionResourceTemplate
Performs the actual disposing work of this instance.- Specified by:
doDispose
in classExecutionResourceTemplate
-
getChannel
- Returns:
- the
Channel
that is implemented by this instance
-