@Internal public class BulkIterationBase<T> extends SingleInputOperator<T,T,AbstractRichFunction> implements IterationOperator
Modifier and Type | Class and Description |
---|---|
static class |
BulkIterationBase.PartialSolutionPlaceHolder<OT>
Specialized operator to use as a recognizable place-holder for the input to the step function
when composing the nested data flow.
|
static class |
BulkIterationBase.TerminationCriterionAggregationConvergence
Convergence for the termination criterion is reached if no tuple is output at current
iteration for the termination criterion branch
|
static class |
BulkIterationBase.TerminationCriterionAggregator
Aggregator that basically only adds 1 for every output tuple of the termination criterion
branch
|
static class |
BulkIterationBase.TerminationCriterionMapper<X>
Special Mapper that is added before a termination criterion and is only a container for an
special aggregator
|
Modifier and Type | Field and Description |
---|---|
static String |
TERMINATION_CRITERION_AGGREGATOR_NAME |
protected Operator<?> |
terminationCriterion |
input
broadcastInputs, userFunction
compilerHints, name, operatorInfo, parameters
Constructor and Description |
---|
BulkIterationBase(UnaryOperatorInformation<T,T> operatorInfo) |
BulkIterationBase(UnaryOperatorInformation<T,T> operatorInfo,
String name) |
Modifier and Type | Method and Description |
---|---|
protected List<T> |
executeOnCollections(List<T> inputData,
RuntimeContext runtimeContext,
ExecutionConfig executionConfig) |
AggregatorRegistry |
getAggregators() |
Map<String,Operator<?>> |
getBroadcastInputs()
The BulkIteration meta operator cannot have broadcast inputs.
|
int |
getMaximumNumberOfIterations() |
Operator<T> |
getNextPartialSolution() |
Operator<T> |
getPartialSolution() |
Operator<?> |
getTerminationCriterion() |
void |
setBroadcastVariable(String name,
Operator<?> root)
The BulkIteration meta operator cannot have broadcast inputs.
|
<X> void |
setBroadcastVariables(Map<String,Operator<X>> inputs)
The BulkIteration meta operator cannot have broadcast inputs.
|
void |
setMaximumNumberOfIterations(int num) |
void |
setNextPartialSolution(Operator<T> result) |
<X> void |
setTerminationCriterion(Operator<X> criterion) |
void |
validate() |
accept, addInput, addInput, clearInputs, getInput, getKeyColumns, getNumberOfInputs, getOperatorInfo, getSemanticProperties, setInput, setInput, setInputs, setSemanticProperties
asArray, emptyClassArray, getUserCodeWrapper
createUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getMinResources, getName, getParallelism, getParameters, getPreferredResources, setName, setParallelism, setParameter, setParameter, setParameter, setResources, toString
public static final String TERMINATION_CRITERION_AGGREGATOR_NAME
protected Operator<?> terminationCriterion
public BulkIterationBase(UnaryOperatorInformation<T,T> operatorInfo)
public BulkIterationBase(UnaryOperatorInformation<T,T> operatorInfo, String name)
name
- public Operator<T> getPartialSolution()
public Operator<T> getNextPartialSolution()
public Operator<?> getTerminationCriterion()
public <X> void setTerminationCriterion(Operator<X> criterion)
criterion
- public void setMaximumNumberOfIterations(int num)
num
- public int getMaximumNumberOfIterations()
public AggregatorRegistry getAggregators()
getAggregators
in interface IterationOperator
public void validate() throws InvalidProgramException
InvalidProgramException
public Map<String,Operator<?>> getBroadcastInputs()
getBroadcastInputs
in class AbstractUdfOperator<T,AbstractRichFunction>
public void setBroadcastVariable(String name, Operator<?> root)
setBroadcastVariable
in class AbstractUdfOperator<T,AbstractRichFunction>
name
- Ignored.root
- Ignored.public <X> void setBroadcastVariables(Map<String,Operator<X>> inputs)
setBroadcastVariables
in class AbstractUdfOperator<T,AbstractRichFunction>
inputs
- Ignoredprotected List<T> executeOnCollections(List<T> inputData, RuntimeContext runtimeContext, ExecutionConfig executionConfig)
executeOnCollections
in class SingleInputOperator<T,T,AbstractRichFunction>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.