Package org.apache.wayang.jdbc.channels
Class SqlQueryChannel.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.jdbc.channels.SqlQueryChannel.Instance
- All Implemented Interfaces:
ChannelInstance,ExecutionResource,ReferenceCountable
- Enclosing class:
- SqlQueryChannel
ChannelInstance implementation for SqlQueryChannels.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstance(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) Creates a new instance and registers it with itsExecutor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerforms the actual disposing work of this instance.voidsetJdbcName(String jdbcName) voidsetSqlQuery(String sqlQuery) 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(Executor executor, OptimizationContext.OperatorContext producerOperatorContext, int producerOutputIndex) Creates a new instance and registers it with itsExecutor.- Parameters:
executor- that maintains this instanceproducerOperatorContext- theOptimizationContext.OperatorContextfor the producingExecutionOperatorproducerOutputIndex- the output index of the producerExecutionTask
-
-
Method Details
-
getChannel
- Returns:
- the
Channelthat is implemented by this instance
-
doDispose
Description copied from class:ExecutionResourceTemplatePerforms the actual disposing work of this instance.- Specified by:
doDisposein classExecutionResourceTemplate- Throws:
Throwable- in case anything goes wrong
-
setSqlQuery
-
getSqlQuery
-
setJdbcName
-
getJdbcName
-