Package org.apache.wayang.java.operators
Interface JavaExecutionOperator
-
- All Superinterfaces:
ActualOperator
,ElementaryOperator
,ExecutionOperator
,Operator
- All Known Implementing Classes:
GenericSqlToStreamOperator
,JavaCartesianOperator
,JavaCoGroupOperator
,JavaCollectionSource
,JavaCollectOperator
,JavaCountOperator
,JavaCSVTableSource
,JavaDistinctOperator
,JavaDoWhileOperator
,JavaFilterOperator
,JavaFlatMapOperator
,JavaGlobalMaterializedGroupOperator
,JavaGlobalReduceOperator
,JavaIEJoinOperator
,JavaIESelfJoinOperator
,JavaIntersectOperator
,JavaJoinOperator
,JavaKafkaTopicSink
,JavaKafkaTopicSource
,JavaLocalCallbackSink
,JavaLoopOperator
,JavaMapOperator
,JavaMapPartitionsOperator
,JavaMaterializedGroupByOperator
,JavaObjectFileSink
,JavaObjectFileSource
,JavaPageRankOperator
,JavaRandomSampleOperator
,JavaReduceByOperator
,JavaRepeatOperator
,JavaReservoirSampleOperator
,JavaSortOperator
,JavaTextFileSink
,JavaTextFileSource
,JavaTsvFileSink
,JavaTsvFileSource
,JavaUnionAllOperator
,SqlToStreamOperator
public interface JavaExecutionOperator extends ExecutionOperator
Execution operator for the Java platform.
-
-
Field Summary
-
Fields inherited from interface org.apache.wayang.core.plan.wayangplan.Operator
FIRST_EPOCH
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tuple<java.util.Collection<ExecutionLineageNode>,java.util.Collection<ChannelInstance>>
evaluate(ChannelInstance[] inputs, ChannelInstance[] outputs, JavaExecutor javaExecutor, OptimizationContext.OperatorContext operatorContext)
Evaluates this operator.static void
forward(ChannelInstance input, ChannelInstance output)
Utility method to forward aJavaChannelInstance
to another.default JavaPlatform
getPlatform()
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.ActualOperator
accept
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.ElementaryOperator
createCardinalityEstimator, getCardinalityEstimator, isAuxiliary, setAuxiliary, setCardinalityEstimator
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.ExecutionOperator
copy, createLoadProfileEstimator, createOutputChannelInstances, getLimitBaseKey, getLoadProfileEstimatorConfigurationKey, getLoadProfileEstimatorConfigurationKeys, getOriginal, getOutputChannelDescriptor, getSupportedInputChannels, getSupportedOutputChannels, isFiltered
-
Methods inherited from interface org.apache.wayang.core.plan.wayangplan.Operator
addBroadcastInput, addTargetPlatform, broadcastTo, broadcastTo, collectMappedInputSlots, collectMappedOutputSlots, connectTo, connectTo, getAllInputs, getAllOutputs, getCardinalityPusher, getContainer, getEffectiveOccupant, getEffectiveOccupant, getEpoch, getEstimationContextProperties, getForwards, getInnermostLoop, getInput, getInput, getLoopStack, getName, getNumBroadcastInputs, getNumInputs, getNumOutputs, getNumRegularInputs, getOuterInputSlot, getOutermostInputSlot, getOutermostOutputSlots, getOutput, getOutput, getParent, getTargetPlatforms, isAlternative, isElementary, isExecutionOperator, isFeedbackInput, isFeedforwardOutput, isLoopHead, isLoopSubplan, isOwnerOf, isReading, isSink, isSource, isSubplan, isSupportingBroadcastInputs, isUnconnected, propagateInputCardinality, propagateOutputCardinality, propagateOutputCardinality, setContainer, setEpoch, setInput, setName, setOutput
-
-
-
-
Method Detail
-
getPlatform
default JavaPlatform getPlatform()
- Specified by:
getPlatform
in interfaceExecutionOperator
- Returns:
- the platform that can run this operator
-
evaluate
Tuple<java.util.Collection<ExecutionLineageNode>,java.util.Collection<ChannelInstance>> evaluate(ChannelInstance[] inputs, ChannelInstance[] outputs, JavaExecutor javaExecutor, OptimizationContext.OperatorContext operatorContext)
Evaluates this operator. Takes a set of JavaStream
s according to the operator inputs and produces a set ofStream
s according to the operator outputs -- unless the operator is a sink, then it triggers execution.In addition, this method should give feedback of what this instance was doing by wiring the
LazyExecutionLineageNode
s of input and ouputChannelInstance
s and providing aCollection
of executedOptimizationContext.OperatorContext
s.- Parameters:
inputs
-ChannelInstance
s that satisfy the inputs of this operatoroutputs
-ChannelInstance
s that collect the outputs of this operatorjavaExecutor
- that executes this instanceoperatorContext
- optimization information for this instance- Returns:
Collection
s of what has been executed and produced
-
forward
static void forward(ChannelInstance input, ChannelInstance output)
Utility method to forward aJavaChannelInstance
to another.- Parameters:
input
- that should be forwardedoutput
- to that should be forwarded
-
-