Package org.apache.wayang.basic.channels
Class FileChannel.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.basic.channels.FileChannel.Instance
- All Implemented Interfaces:
ChannelInstance
,ExecutionResource
,ReferenceCountable
- Enclosing class:
- FileChannel
ChannelInstance
implementation for FileChannel
s.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Instance
(OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddGivenOrTempPath
(String pathOrNull, Configuration configuration) void
void
Performs the actual disposing work of this instance.getPaths()
If there is only a single element ongetPaths()
, retrieves it.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
protected Instance(OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) Creates a new instance.- Parameters:
producerOperatorContext
-producerOutputIndex
-
-
-
Method Details
-
getChannel
- Returns:
- the
Channel
that is implemented by this instance
-
addPath
-
addGivenOrTempPath
-
getPaths
-
getSinglePath
If there is only a single element ongetPaths()
, retrieves it. Otherwise, fails.- Returns:
- the single element from
getPaths()
-
doDispose
Description copied from class:ExecutionResourceTemplate
Performs the actual disposing work of this instance.- Specified by:
doDispose
in classExecutionResourceTemplate
- Throws:
WayangException
-