Package org.apache.wayang.java.execution
Class JavaExecutor
java.lang.Object
org.apache.wayang.core.util.AbstractReferenceCountable
org.apache.wayang.core.platform.ExecutorTemplate
org.apache.wayang.core.platform.PushExecutorTemplate
org.apache.wayang.java.execution.JavaExecutor
- All Implemented Interfaces:
CompositeExecutionResource,ExecutionResource,Executor,ReferenceCountable
Executor implementation for the JavaPlatform.-
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
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 TypeMethodDescriptionprotected Tuple<List<ChannelInstance>,PartialExecution> execute(ExecutionTask task, List<ChannelInstance> inputChannelInstances, OptimizationContext.OperatorContext producerOperatorContext, boolean isRequestEagerExecution) Executes the giventaskand return the outputChannelInstances.static voidopenFunction(JavaExecutionOperator operator, Object function, ChannelInstance[] inputs, OptimizationContext.OperatorContext operatorContext) Utility function to open anExtendedFunction.Methods inherited from class org.apache.wayang.core.platform.PushExecutorTemplate
execute, getJobMethods inherited from class org.apache.wayang.core.platform.ExecutorTemplate
createPartialExecution, dispose, 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
-
JavaExecutor
-
-
Method Details
-
getPlatform
- Returns:
- the
Platformthis instance belongs to
-
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
-
openFunction
public static void openFunction(JavaExecutionOperator operator, Object function, ChannelInstance[] inputs, OptimizationContext.OperatorContext operatorContext) Utility function to open anExtendedFunction.- Parameters:
operator- theJavaExecutionOperatorcontaining the functionfunction- theExtendedFunction; if it is of a different type, nothing happensinputs- the inputChannelInstances for theoperatoroperatorContext- context information for theoperator
-
getCompiler
-