Class FlinkExecutor
java.lang.Object
org.apache.wayang.core.util.AbstractReferenceCountable
org.apache.wayang.core.platform.ExecutorTemplate
org.apache.wayang.core.platform.PushExecutorTemplate
org.apache.wayang.flink.execution.FlinkExecutor
- All Implemented Interfaces:
CompositeExecutionResource,ExecutionResource,Executor,ReferenceCountable
Executor implementation for the FlinkPlatform.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wayang.core.platform.PushExecutorTemplate
PushExecutorTemplate.StageExecutionNested classes/interfaces inherited from interface org.apache.wayang.core.platform.Executor
Executor.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionCompiler to create flink UDFs.org.apache.flink.api.java.ExecutionEnvironmentTheExecutionEnvironmentto be used by this instance.Fields inherited from class org.apache.wayang.core.platform.PushExecutorTemplate
jobFields inherited from class org.apache.wayang.core.platform.ExecutorTemplate
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases any instances acquired by this instance to executeExecutionStages.protected Tuple<List<ChannelInstance>,PartialExecution> execute(ExecutionTask task, List<ChannelInstance> inputChannelInstances, OptimizationContext.OperatorContext producerOperatorContext, boolean isRequestEagerExecution) Executes the giventaskand return the outputChannelInstances.Provide aFunctionCompiler.intMethods inherited from class org.apache.wayang.core.platform.PushExecutorTemplate
execute, getJobMethods 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
-
Field Details
-
fee
public org.apache.flink.api.java.ExecutionEnvironment feeTheExecutionEnvironmentto be used by this instance. -
compiler
Compiler to create flink UDFs.
-
-
Constructor Details
-
FlinkExecutor
-
-
Method Details
-
execute
protected Tuple<List<ChannelInstance>,PartialExecution> execute(ExecutionTask task, List<ChannelInstance> inputChannelInstances, OptimizationContext.OperatorContext producerOperatorContext, boolean isRequestEagerExecution) Description copied from class:PushExecutorTemplateExecutes the giventaskand return the outputChannelInstances.- Specified by:
executein classPushExecutorTemplate- Parameters:
task- that should be executedinputChannelInstances- inputs into thetaskisRequestEagerExecution- whether theExecutionTaskshould be executed eagerly if possible- Returns:
- the
ChannelInstances created as output oftask
-
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
-
getCompiler
Provide aFunctionCompiler.- Returns:
- the
FunctionCompiler
-
getNumDefaultPartitions
public int getNumDefaultPartitions()
-