Class GenericJdbcExecutor
java.lang.Object
org.apache.wayang.core.util.AbstractReferenceCountable
org.apache.wayang.core.platform.ExecutorTemplate
org.apache.wayang.genericjdbc.execution.GenericJdbcExecutor
- All Implemented Interfaces:
CompositeExecutionResource,ExecutionResource,Executor,ReferenceCountable
Executor implementation for the GenericJdbcPlatform.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.wayang.core.platform.Executor
Executor.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateSqlQuery(String tableName, Collection<String> conditions, String projection) Creates a SQL query.voiddispose()Releases any instances acquired by this instance to executeExecutionStages.voidexecute(ExecutionStage stage, OptimizationContext optimizationContext, ExecutionState executionState) Executes the givenstage.Methods inherited from class org.apache.wayang.core.platform.ExecutorTemplate
createPartialExecution, disposeUnreferenced, getConfiguration, getCrossPlatformExecutor, register, registerMeasuredCardinalities, registerMeasuredCardinality, toString, unregisterMethods 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.util.ReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
-
Constructor Details
-
GenericJdbcExecutor
-
-
Method Details
-
execute
public void execute(ExecutionStage stage, OptimizationContext optimizationContext, ExecutionState executionState) Description copied from interface:ExecutorExecutes the givenstage.- Parameters:
stage- should be executed; must be executable by this instance, thoughexecutionState- provides and accepts execution-related objects @return collected metadata from instrumentation
-
createSqlQuery
Creates a SQL query.- Parameters:
tableName- the table to be queriedconditions- conditions for theWHEREclauseprojection- projection for theSELECTclause- Returns:
- the SQL query
-
dispose
public void dispose()Description copied from interface:ExecutorReleases any instances acquired by this instance to executeExecutionStages.- Specified by:
disposein interfaceExecutionResource- Specified by:
disposein interfaceExecutor- Overrides:
disposein classExecutorTemplate
-
getPlatform
- Returns:
- the
Platformthis instance belongs to
-