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 FileChannels.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstance(OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddGivenOrTempPath(String pathOrNull, Configuration configuration) voidvoidPerforms 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, wasProducedMethods inherited from class org.apache.wayang.core.platform.ExecutionResourceTemplate
dispose, disposeUnreferencedMethods inherited from class org.apache.wayang.core.util.AbstractReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wayang.core.platform.ChannelInstance
isMarkedForInstrumentationMethods inherited from interface org.apache.wayang.core.platform.ExecutionResource
disposeMethods 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
Channelthat 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:ExecutionResourceTemplatePerforms the actual disposing work of this instance.- Specified by:
doDisposein classExecutionResourceTemplate- Throws:
WayangException
-