@Deprecated public class DeltaIteration extends org.apache.flink.api.common.operators.base.DeltaIterationBase<org.apache.flink.types.Record,org.apache.flink.types.Record>
BulkIteration,
but maintains state across the individual iteration steps. The state is called the solution set, can be obtained
via DeltaIterationBase.getSolutionSet(), and be accessed by joining (or CoGrouping) with it. The solution
set is updated by producing a delta for it, which is merged into the solution set at the end of each iteration step.
The delta iteration must be closed by setting a delta for the solution set (DeltaIterationBase.setSolutionSetDelta(org.apache.flink.api.common.operators.Operator))
and the new workset (the data set that will be fed back, DeltaIterationBase.setNextWorkset(org.apache.flink.api.common.operators.Operator)).
The DeltaIteration itself represents the result after the iteration has terminated.
Delta iterations terminate when the feed back data set (the workset) is empty.
In addition, a maximum number of steps is given as a fall back termination guard.
Elements in the solution set are uniquely identified by a key. When merging the solution set delta, contained elements with the same key are replaced.
This class is a subclass of DualInputOperator. The solution set is considered the first input, the
workset is considered the second input.
| Modifier and Type | Class and Description |
|---|---|
static class |
DeltaIteration.SolutionSetPlaceHolder
Deprecated.
Specialized operator to use as a recognizable place-holder for the solution set input to the
step function.
|
static class |
DeltaIteration.WorksetPlaceHolder
Deprecated.
Specialized operator to use as a recognizable place-holder for the working set input to the
step function.
|
| Constructor and Description |
|---|
DeltaIteration(int keyPosition)
Deprecated.
|
DeltaIteration(int[] keyPositions)
Deprecated.
|
DeltaIteration(int[] keyPositions,
String name)
Deprecated.
|
DeltaIteration(int keyPosition,
String name)
Deprecated.
|
executeOnCollections, getAggregators, getBroadcastInputs, getInitialSolutionSet, getInitialWorkset, getMaximumNumberOfIterations, getNextWorkset, getSolutionSet, getSolutionSetDelta, getSolutionSetKeyFields, getWorkset, isSolutionSetUnManaged, setBroadcastVariable, setBroadcastVariables, setInitialSolutionSet, setInitialWorkset, setMaximumNumberOfIterations, setNextWorkset, setSolutionSetDelta, setSolutionSetUnManagedaccept, addFirstInput, addFirstInputs, addSecondInput, addSecondInputs, clearFirstInput, clearSecondInput, getFirstInput, getKeyColumns, getNumberOfInputs, getOperatorInfo, getSecondInput, getSemanticProperties, setFirstInput, setFirstInput, setFirstInputs, setSecondInput, setSecondInput, setSecondInputs, setSemanticPropertiesasArray, emptyClassArray, getUserCodeWrappercreateUnionCascade, createUnionCascade, createUnionCascade, getCompilerHints, getDegreeOfParallelism, getName, getParallelism, getParameters, setDegreeOfParallelism, setName, setParallelism, setParameter, setParameter, setParameter, toStringpublic DeltaIteration(int keyPosition)
public DeltaIteration(int[] keyPositions)
public DeltaIteration(int keyPosition,
String name)
public DeltaIteration(int[] keyPositions,
String name)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.