You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2014/09/22 14:29:00 UTC

[18/60] git commit: Move the Iteration "Operators" to the operators package

Move the Iteration "Operators" to the operators package

I'm doing this in preparation for the Scala API rework, since then I can just copy over
the operators package and use them for Scala.


Project: http://git-wip-us.apache.org/repos/asf/incubator-flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-flink/commit/dee54cb5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-flink/tree/dee54cb5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-flink/diff/dee54cb5

Branch: refs/heads/master
Commit: dee54cb55b16fe7b4e3e2f89aa35df917a1f92d7
Parents: 6bbe2a0
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Tue Aug 26 16:15:05 2014 +0200
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Mon Sep 22 09:59:57 2014 +0200

----------------------------------------------------------------------
 .../spargel/java/VertexCentricIteration.java    |   2 +-
 .../spargel/java/SpargelTranslationTest.java    |   8 +-
 .../compiler/BranchingPlansCompilerTest.java    |   2 +-
 .../CachedMatchStrategyCompilerTest.java        |   2 +-
 .../compiler/CoGroupSolutionSetFirstTest.java   |   3 +-
 .../flink/compiler/IterationsCompilerTest.java  |   4 +-
 .../flink/compiler/PipelineBreakerTest.java     |   2 +-
 .../WorksetIterationsJavaApiCompilerTest.java   |   2 +-
 .../flink/example/java/clustering/KMeans.java   |   2 +-
 .../example/java/graph/ConnectedComponents.java |   2 +-
 .../flink/example/java/graph/PageRankBasic.java |   2 +-
 .../java/graph/TransitiveClosureNaive.java      |   2 +-
 .../flink/example/java/ml/LinearRegression.java |   2 +-
 .../flink/api/java/BulkIterationResultSet.java  |  59 -----
 .../java/org/apache/flink/api/java/DataSet.java |  18 +-
 .../apache/flink/api/java/DeltaIteration.java   | 245 -------------------
 .../flink/api/java/DeltaIterationResultSet.java |  79 ------
 .../apache/flink/api/java/IterativeDataSet.java | 148 -----------
 .../java/operators/BulkIterationResultSet.java  |  61 +++++
 .../api/java/operators/CoGroupOperator.java     |   2 +-
 .../api/java/operators/DeltaIteration.java      | 245 +++++++++++++++++++
 .../java/operators/DeltaIterationResultSet.java |  80 ++++++
 .../api/java/operators/IterativeDataSet.java    | 149 +++++++++++
 .../flink/api/java/operators/JoinOperator.java  |   2 +-
 .../api/java/operators/OperatorTranslation.java |   4 -
 .../java/typeutils/runtime/TupleComparator.java |   1 -
 .../DeltaIterationTranslationTest.java          |   2 +-
 ...ultipleJoinsWithSolutionSetCompilerTest.java |   2 +-
 .../iterations/PageRankCompilerTest.java        |   2 +-
 .../BulkIterationWithAllReducerITCase.java      |   2 +-
 .../CoGroupConnectedComponentsSecondITCase.java |   2 +-
 .../DependencyConnectedComponentsITCase.java    |   2 +-
 .../iterative/IterationWithUnionITCase.java     |   2 +-
 .../aggregators/AggregatorsITCase.java          |   4 +-
 ...nentsWithParametrizableAggregatorITCase.java |   2 +-
 ...entsWithParametrizableConvergenceITCase.java |   2 +-
 .../flink/test/util/testjar/KMeansForTest.java  |   2 +-
 37 files changed, 574 insertions(+), 578 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/VertexCentricIteration.java
----------------------------------------------------------------------
diff --git a/flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/VertexCentricIteration.java b/flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/VertexCentricIteration.java
index 8f9149c..777cf9d 100644
--- a/flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/VertexCentricIteration.java
+++ b/flink-addons/flink-spargel/src/main/java/org/apache/flink/spargel/java/VertexCentricIteration.java
@@ -28,7 +28,7 @@ import org.apache.commons.lang3.Validate;
 
 import org.apache.flink.api.common.aggregators.Aggregator;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.functions.RichCoGroupFunction;
 import org.apache.flink.api.java.operators.CoGroupOperator;
 import org.apache.flink.api.java.operators.CustomUnaryOperation;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-addons/flink-spargel/src/test/java/org/apache/flink/spargel/java/SpargelTranslationTest.java
----------------------------------------------------------------------
diff --git a/flink-addons/flink-spargel/src/test/java/org/apache/flink/spargel/java/SpargelTranslationTest.java b/flink-addons/flink-spargel/src/test/java/org/apache/flink/spargel/java/SpargelTranslationTest.java
index e862e7c..155aa3f 100644
--- a/flink-addons/flink-spargel/src/test/java/org/apache/flink/spargel/java/SpargelTranslationTest.java
+++ b/flink-addons/flink-spargel/src/test/java/org/apache/flink/spargel/java/SpargelTranslationTest.java
@@ -27,15 +27,11 @@ import static org.junit.Assert.fail;
 import org.junit.Test;
 import org.apache.flink.api.common.aggregators.LongSumAggregator;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
-import org.apache.flink.api.java.DeltaIterationResultSet;
+import org.apache.flink.api.java.operators.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIterationResultSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.api.java.operators.TwoInputUdfOperator;
 import org.apache.flink.api.java.tuple.Tuple2;
-import org.apache.flink.spargel.java.MessageIterator;
-import org.apache.flink.spargel.java.MessagingFunction;
-import org.apache.flink.spargel.java.VertexCentricIteration;
-import org.apache.flink.spargel.java.VertexUpdateFunction;
 
 @SuppressWarnings("serial")
 public class SpargelTranslationTest {

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
index 10fa34f..fd2f422 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/BranchingPlansCompilerTest.java
@@ -29,7 +29,7 @@ import org.junit.Test;
 import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.api.java.functions.RichJoinFunction;
 import org.apache.flink.api.java.record.operators.BulkIteration;
 import org.apache.flink.api.java.record.operators.CoGroupOperator;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/CachedMatchStrategyCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/CachedMatchStrategyCompilerTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/CachedMatchStrategyCompilerTest.java
index 8226dbf..1deead3 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/CachedMatchStrategyCompilerTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/CachedMatchStrategyCompilerTest.java
@@ -27,7 +27,7 @@ import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.common.operators.base.GenericDataSourceBase;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.api.java.functions.RichJoinFunction;
 import org.apache.flink.api.java.tuple.Tuple3;
 import org.apache.flink.compiler.dag.TempMode;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/CoGroupSolutionSetFirstTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/CoGroupSolutionSetFirstTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/CoGroupSolutionSetFirstTest.java
index 2a4d6d8..54af344 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/CoGroupSolutionSetFirstTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/CoGroupSolutionSetFirstTest.java
@@ -24,10 +24,9 @@ import org.junit.Assert;
 import org.junit.Test;
 import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.api.java.tuple.Tuple1;
-import org.apache.flink.compiler.CompilerException;
 import org.apache.flink.compiler.plan.Channel;
 import org.apache.flink.compiler.plan.DualInputPlanNode;
 import org.apache.flink.compiler.plan.OptimizedPlan;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/IterationsCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/IterationsCompilerTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/IterationsCompilerTest.java
index 828a635..562336f 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/IterationsCompilerTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/IterationsCompilerTest.java
@@ -25,9 +25,9 @@ import org.junit.Test;
 
 import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.api.java.aggregation.Aggregations;
 import org.apache.flink.api.java.functions.RichGroupReduceFunction;
 import org.apache.flink.api.java.functions.RichJoinFunction;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/PipelineBreakerTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/PipelineBreakerTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/PipelineBreakerTest.java
index 598f989..71d9b6a 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/PipelineBreakerTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/PipelineBreakerTest.java
@@ -24,7 +24,7 @@ import org.junit.Test;
 import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.compiler.plan.BulkIterationPlanNode;
 import org.apache.flink.compiler.plan.DualInputPlanNode;
 import org.apache.flink.compiler.plan.OptimizedPlan;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsJavaApiCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsJavaApiCompilerTest.java b/flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsJavaApiCompilerTest.java
index 62d5d9b..a7c6152 100644
--- a/flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsJavaApiCompilerTest.java
+++ b/flink-compiler/src/test/java/org/apache/flink/compiler/WorksetIterationsJavaApiCompilerTest.java
@@ -27,7 +27,7 @@ import org.apache.flink.api.common.Plan;
 import org.apache.flink.api.common.functions.JoinFunction;
 import org.apache.flink.api.common.operators.util.FieldList;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.api.java.functions.RichGroupReduceFunction;
 import org.apache.flink.api.java.functions.RichJoinFunction;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/clustering/KMeans.java
----------------------------------------------------------------------
diff --git a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/clustering/KMeans.java b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/clustering/KMeans.java
index 8767aca..3c31af6 100644
--- a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/clustering/KMeans.java
+++ b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/clustering/KMeans.java
@@ -30,7 +30,7 @@ import org.apache.flink.configuration.Configuration;
 import org.apache.flink.example.java.clustering.util.KMeansData;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 /**
  * This example implements a basic K-Means clustering algorithm.

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/ConnectedComponents.java
----------------------------------------------------------------------
diff --git a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/ConnectedComponents.java b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/ConnectedComponents.java
index f0ea7dc..93e8baa 100644
--- a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/ConnectedComponents.java
+++ b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/ConnectedComponents.java
@@ -32,7 +32,7 @@ import org.apache.flink.api.java.tuple.Tuple1;
 import org.apache.flink.api.java.tuple.Tuple2;
 import org.apache.flink.util.Collector;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.example.java.graph.util.ConnectedComponentsData;
 

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/PageRankBasic.java
----------------------------------------------------------------------
diff --git a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/PageRankBasic.java b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/PageRankBasic.java
index e6a9272..656c424 100644
--- a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/PageRankBasic.java
+++ b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/PageRankBasic.java
@@ -32,7 +32,7 @@ import org.apache.flink.api.java.tuple.Tuple2;
 import org.apache.flink.util.Collector;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.example.java.graph.util.PageRankData;
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/TransitiveClosureNaive.java
----------------------------------------------------------------------
diff --git a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/TransitiveClosureNaive.java b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/TransitiveClosureNaive.java
index e9ba406..281439e 100644
--- a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/TransitiveClosureNaive.java
+++ b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/graph/TransitiveClosureNaive.java
@@ -23,7 +23,7 @@ import org.apache.flink.api.common.functions.GroupReduceFunction;
 import org.apache.flink.api.common.functions.JoinFunction;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 import org.apache.flink.api.common.ProgramDescription;
 import org.apache.flink.api.java.tuple.Tuple2;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/ml/LinearRegression.java
----------------------------------------------------------------------
diff --git a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/ml/LinearRegression.java b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/ml/LinearRegression.java
index 0868732..d65a809 100644
--- a/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/ml/LinearRegression.java
+++ b/flink-examples/flink-java-examples/src/main/java/org/apache/flink/example/java/ml/LinearRegression.java
@@ -30,7 +30,7 @@ import org.apache.flink.configuration.Configuration;
 import org.apache.flink.example.java.ml.util.LinearRegressionData;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 /**
  * This example implements a basic Linear Regression  to solve the y = theta0 + theta1*x problem using batch gradient descent algorithm.

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/BulkIterationResultSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/BulkIterationResultSet.java b/flink-java/src/main/java/org/apache/flink/api/java/BulkIterationResultSet.java
deleted file mode 100644
index 1fd0b6a..0000000
--- a/flink-java/src/main/java/org/apache/flink/api/java/BulkIterationResultSet.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.api.java;
-
-import org.apache.flink.types.TypeInformation;
-
-public class BulkIterationResultSet<T> extends DataSet<T> {
-
-	private final IterativeDataSet<T> iterationHead;
-
-	private final DataSet<T> nextPartialSolution;
-
-	private final DataSet<?> terminationCriterion;
-
-	BulkIterationResultSet(ExecutionEnvironment context,
-						TypeInformation<T> type,
-						IterativeDataSet<T> iterationHead,
-						DataSet<T> nextPartialSolution) {
-		this(context, type, iterationHead, nextPartialSolution, null);
-	}
-
-	BulkIterationResultSet(ExecutionEnvironment context,
-		TypeInformation<T> type, IterativeDataSet<T> iterationHead,
-		DataSet<T> nextPartialSolution, DataSet<?> terminationCriterion)
-	{
-		super(context, type);
-		this.iterationHead = iterationHead;
-		this.nextPartialSolution = nextPartialSolution;
-		this.terminationCriterion = terminationCriterion;
-	}
-
-	public IterativeDataSet<T> getIterationHead() {
-		return iterationHead;
-	}
-
-	public DataSet<T> getNextPartialSolution() {
-		return nextPartialSolution;
-	}
-
-	public DataSet<?> getTerminationCriterion() {
-		return terminationCriterion;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java b/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
index f960abd..3dcd780 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
@@ -45,9 +45,11 @@ import org.apache.flink.api.java.operators.CoGroupOperator.CoGroupOperatorSets;
 import org.apache.flink.api.java.operators.CrossOperator;
 import org.apache.flink.api.java.operators.CustomUnaryOperation;
 import org.apache.flink.api.java.operators.DataSink;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.operators.DistinctOperator;
 import org.apache.flink.api.java.operators.FilterOperator;
 import org.apache.flink.api.java.operators.FlatMapOperator;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.api.java.operators.JoinOperator.JoinHint;
 import org.apache.flink.api.java.operators.JoinOperator.JoinOperatorSets;
 import org.apache.flink.api.java.operators.Keys;
@@ -728,7 +730,7 @@ public abstract class DataSet<T> {
 
 	/**
 	 * Initiates an iterative part of the program that executes multiple times and feeds back data sets.
-	 * The iterative part needs to be closed by calling {@link IterativeDataSet#closeWith(DataSet)}. The data set
+	 * The iterative part needs to be closed by calling {@link org.apache.flink.api.java.operators.IterativeDataSet#closeWith(DataSet)}. The data set
 	 * given to the {@code closeWith(DataSet)} method is the data set that will be fed back and used as the input
 	 * to the next iteration. The return value of the {@code closeWith(DataSet)} method is the resulting
 	 * data set after the iteration has terminated.
@@ -748,13 +750,13 @@ public abstract class DataSet<T> {
 	 * </pre>
 	 * <p>
 	 * The iteration has a maximum number of times that it executes. A dynamic termination can be realized by using a
-	 * termination criterion (see {@link IterativeDataSet#closeWith(DataSet, DataSet)}).
+	 * termination criterion (see {@link org.apache.flink.api.java.operators.IterativeDataSet#closeWith(DataSet, DataSet)}).
 	 * 
 	 * @param maxIterations The maximum number of times that the iteration is executed.
 	 * @return An IterativeDataSet that marks the start of the iterative part and needs to be closed by
-	 *         {@link IterativeDataSet#closeWith(DataSet)}.
+	 *         {@link org.apache.flink.api.java.operators.IterativeDataSet#closeWith(DataSet)}.
 	 * 
-	 * @see IterativeDataSet
+	 * @see org.apache.flink.api.java.operators.IterativeDataSet
 	 */
 	public IterativeDataSet<T> iterate(int maxIterations) {
 		return new IterativeDataSet<T>(getExecutionEnvironment(), getType(), this, maxIterations);
@@ -763,13 +765,13 @@ public abstract class DataSet<T> {
 	/**
 	 * Initiates a delta iteration. A delta iteration is similar to a regular iteration (as started by {@link #iterate(int)},
 	 * but maintains state across the individual iteration steps. The Solution set, which represents the current state
-	 * at the beginning of each iteration can be obtained via {@link DeltaIteration#getSolutionSet()} ()}.
+	 * at the beginning of each iteration can be obtained via {@link org.apache.flink.api.java.operators.DeltaIteration#getSolutionSet()} ()}.
 	 * It can be be accessed by joining (or CoGrouping) with it. The DataSet that represents the workset of an iteration
-	 * can be obtained via {@link DeltaIteration#getWorkset()}.
+	 * can be obtained via {@link org.apache.flink.api.java.operators.DeltaIteration#getWorkset()}.
 	 * 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.
 	 * <p>
-	 * The delta iteration must be closed by calling {@link DeltaIteration#closeWith(DataSet, DataSet)}. The two
+	 * The delta iteration must be closed by calling {@link org.apache.flink.api.java.operators.DeltaIteration#closeWith(DataSet, DataSet)}. The two
 	 * parameters are the delta for the solution set and the new workset (the data set that will be fed back).
 	 * The return value of the {@code closeWith(DataSet, DataSet)} method is the resulting
 	 * data set after the iteration has terminated. Delta iterations terminate when the feed back data set
@@ -804,7 +806,7 @@ public abstract class DataSet<T> {
 	 * 
 	 * @return The DeltaIteration that marks the start of a delta iteration.
 	 * 
-	 * @see DeltaIteration
+	 * @see org.apache.flink.api.java.operators.DeltaIteration
 	 */
 	public <R> DeltaIteration<T, R> iterateDelta(DataSet<R> workset, int maxIterations, int... keyPositions) {
 		Keys.FieldPositionKeys<T> keys = new Keys.FieldPositionKeys<T>(keyPositions, getType(), false);

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/DeltaIteration.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/DeltaIteration.java b/flink-java/src/main/java/org/apache/flink/api/java/DeltaIteration.java
deleted file mode 100644
index 2f2eae0..0000000
--- a/flink-java/src/main/java/org/apache/flink/api/java/DeltaIteration.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.api.java;
-
-import java.util.Arrays;
-
-import org.apache.commons.lang3.Validate;
-import org.apache.flink.api.common.InvalidProgramException;
-import org.apache.flink.api.common.aggregators.Aggregator;
-import org.apache.flink.api.common.aggregators.AggregatorRegistry;
-import org.apache.flink.api.java.operators.Keys;
-import org.apache.flink.types.TypeInformation;
-
-/**
- * The DeltaIteration represents the start of a delta iteration. It is created from the DataSet that
- * represents the initial solution set via the {@link DataSet#iterateDelta(DataSet, int, int...)} method.
- * 
- * @param <ST> The data type of the solution set.
- * @param <WT> The data type of the workset (the feedback data set).
- *
- * @see DataSet#iterateDelta(DataSet, int, int...)
- * @see DataSet#iterateDelta(DataSet, int, int[])
- */
-public class DeltaIteration<ST, WT> {
-	
-	private final AggregatorRegistry aggregators = new AggregatorRegistry();
-	
-	private final DataSet<ST> initialSolutionSet;
-	private final DataSet<WT> initialWorkset;
-	
-	private final SolutionSetPlaceHolder<ST> solutionSetPlaceholder;
-	private final WorksetPlaceHolder<WT> worksetPlaceholder;
-
-	private final Keys<ST> keys;
-	
-	private final int maxIterations;
-	
-	private String name;
-	
-	private int parallelism = -1;
-	
-
-	DeltaIteration(ExecutionEnvironment context, TypeInformation<ST> type, DataSet<ST> solutionSet, DataSet<WT> workset, Keys<ST> keys, int maxIterations) {
-		initialSolutionSet = solutionSet;
-		initialWorkset = workset;
-		solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(context, solutionSet.getType(), this);
-		worksetPlaceholder = new WorksetPlaceHolder<WT>(context, workset.getType());
-		this.keys = keys;
-		this.maxIterations = maxIterations;
-	}
-
-	// --------------------------------------------------------------------------------------------
-	
-	/**
-	 * Closes the delta iteration. This method defines the end of the delta iteration's function.
-	 * 
-	 * @param solutionSetDelta The delta for the solution set. The delta will be merged into the solution set at the end of
-	 *                         each iteration.
-	 * @param newWorkset The new workset (feedback data set) that will be fed back to the next iteration.
-	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
-	 * 
-	 * @see DataSet#iterateDelta(DataSet, int, int...)
-	 */
-	public DataSet<ST> closeWith(DataSet<ST> solutionSetDelta, DataSet<WT> newWorkset) {
-		return new DeltaIterationResultSet<ST, WT>(initialSolutionSet.getExecutionEnvironment(),
-				initialSolutionSet.getType(), initialWorkset.getType(), this, solutionSetDelta, newWorkset, keys, maxIterations);
-	}
-
-	/**
-	 * Gets the initial solution set. This is the data set on which the delta iteration was started.
-	 * <p>
-	 * Consider the following example:
-	 * <pre>
-	 * {@code
-	 * DataSet<MyType> solutionSetData = ...;
-	 * DataSet<AnotherType> worksetData = ...;
-	 * 
-	 * DeltaIteration<MyType, AnotherType> iteration = solutionSetData.iteratorDelta(worksetData, 10, ...);
-	 * }
-	 * </pre>
-	 * The <tt>solutionSetData</tt> would be the data set returned by {@code iteration.getInitialSolutionSet();}.
-	 * 
-	 * @return The data set that forms the initial solution set.
-	 */
-	public DataSet<ST> getInitialSolutionSet() {
-		return initialSolutionSet;
-	}
-
-	/**
-	 * Gets the initial workset. This is the data set passed to the method that starts the delta
-	 * iteration.
-	 * <p>
-	 * Consider the following example:
-	 * <pre>
-	 * {@code
-	 * DataSet<MyType> solutionSetData = ...;
-	 * DataSet<AnotherType> worksetData = ...;
-	 * 
-	 * DeltaIteration<MyType, AnotherType> iteration = solutionSetData.iteratorDelta(worksetData, 10, ...);
-	 * }
-	 * </pre>
-	 * The <tt>worksetData</tt> would be the data set returned by {@code iteration.getInitialWorkset();}.
-	 * 
-	 * @return The data set that forms the initial workset.
-	 */
-	public DataSet<WT> getInitialWorkset() {
-		return initialWorkset;
-	}
-
-	/**
-	 * Gets the solution set of the delta iteration. The solution set represents the state that is kept across iterations.
-	 * 
-	 * @return The solution set of the delta iteration.
-	 */
-	public SolutionSetPlaceHolder<ST> getSolutionSet() {
-		return solutionSetPlaceholder;
-	}
-
-	/**
-	 * Gets the working set of the delta iteration. The working set is constructed by the previous iteration.
-	 *
-	 * @return The working set of the delta iteration.
-	 */
-	public WorksetPlaceHolder<WT> getWorkset() {
-		return worksetPlaceholder;
-	}
-
-	/**
-	 * Sets the name for the iteration. The name is displayed in logs and messages.
-	 * 
-	 * @param name The name for the iteration.
-	 * @return The iteration object, for function call chaining.
-	 */
-	public DeltaIteration<ST, WT> name(String name) {
-		this.name = name;
-		return this;
-	}
-	
-	/**
-	 * Gets the name from this iteration.
-	 * 
-	 * @return The name of the iteration.
-	 */
-	public String getName() {
-		return name;
-	}
-	
-	/**
-	 * Sets the degree of parallelism for the iteration.
-	 *
-	 * @param parallelism The degree of parallelism.
-	 * @return The iteration object, for function call chaining.
-	 */
-	public DeltaIteration<ST, WT> parallelism(int parallelism) {
-		Validate.isTrue(parallelism > 0 || parallelism == -1, "The degree of parallelism must be positive, or -1 (use default).");
-		this.parallelism = parallelism;
-		return this;
-	}
-	
-	/**
-	 * Gets the iteration's degree of parallelism.
-	 * 
-	 * @return The iterations parallelism, or -1, if not set.
-	 */
-	public int getParallelism() {
-		return parallelism;
-	}
-	
-	/**
-	 * Registers an {@link Aggregator} for the iteration. Aggregators can be used to maintain simple statistics during the
-	 * iteration, such as number of elements processed. The aggregators compute global aggregates: After each iteration step,
-	 * the values are globally aggregated to produce one aggregate that represents statistics across all parallel instances.
-	 * The value of an aggregator can be accessed in the next iteration.
-	 * <p>
-	 * Aggregators can be accessed inside a function via the
-	 * {@link org.apache.flink.api.common.functions.AbstractRichFunction#getIterationRuntimeContext()} method.
-	 * 
-	 * @param name The name under which the aggregator is registered.
-	 * @param aggregator The aggregator class.
-	 * 
-	 * @return The DeltaIteration itself, to allow chaining function calls.
-	 */
-	public DeltaIteration<ST, WT> registerAggregator(String name, Aggregator<?> aggregator) {
-		this.aggregators.registerAggregator(name, aggregator);
-		return this;
-	}
-	
-	/**
-	 * Gets the registry for aggregators for the iteration.
-	 * 
-	 * @return The registry with all aggregators.
-	 */
-	public AggregatorRegistry getAggregators() {
-		return this.aggregators;
-	}
-	
-	/**
-	 * A {@link DataSet} that acts as a placeholder for the solution set during the iteration.
-	 * 
-	 * @param <ST> The type of the elements in the solution set.
-	 */
-	public static class SolutionSetPlaceHolder<ST> extends DataSet<ST>{
-		
-		private final DeltaIteration<ST, ?> deltaIteration;
-		
-		private SolutionSetPlaceHolder(ExecutionEnvironment context, TypeInformation<ST> type, DeltaIteration<ST, ?> deltaIteration) {
-			super(context, type);
-			this.deltaIteration = deltaIteration;
-		}
-		
-		public void checkJoinKeyFields(int[] keyFields) {
-			int[] ssKeys = deltaIteration.keys.computeLogicalKeyPositions();
-			if (!Arrays.equals(ssKeys, keyFields)) {
-				throw new InvalidProgramException("The solution can only be joined/co-grouped with the same keys as the elements are identified with (here: " + Arrays.toString(ssKeys) + ").");
-			}
-		}
-	}
-
-	/**
-	 * A {@link DataSet} that acts as a placeholder for the workset during the iteration.
-	 *
-	 * @param <WT> The data type of the elements in the workset.
-	 */
-	public static class WorksetPlaceHolder<WT> extends DataSet<WT>{
-		private WorksetPlaceHolder(ExecutionEnvironment context, TypeInformation<WT> type) {
-			super(context, type);
-		}
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/DeltaIterationResultSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/DeltaIterationResultSet.java b/flink-java/src/main/java/org/apache/flink/api/java/DeltaIterationResultSet.java
deleted file mode 100644
index c41158c..0000000
--- a/flink-java/src/main/java/org/apache/flink/api/java/DeltaIterationResultSet.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.api.java;
-
-import org.apache.flink.api.java.operators.Keys;
-import org.apache.flink.types.TypeInformation;
-
-public class DeltaIterationResultSet<ST, WT> extends DataSet<ST> {
-
-	private DeltaIteration<ST, WT> iterationHead;
-
-	private DataSet<ST> nextSolutionSet;
-	
-	private DataSet<WT> nextWorkset;
-	
-	private Keys<ST> keys;
-	
-	private int maxIterations;
-	
-	private TypeInformation<WT> typeWS;
-
-	DeltaIterationResultSet(ExecutionEnvironment context,
-							TypeInformation<ST> typeSS,
-							TypeInformation<WT> typeWS,
-							DeltaIteration<ST, WT> iterationHead,
-							DataSet<ST> nextSolutionSet,
-							DataSet<WT> nextWorkset,
-							Keys<ST> keys,
-							int maxIterations)
-	{
-		super(context, typeSS);
-		this.iterationHead = iterationHead;
-		this.nextWorkset = nextWorkset;
-		this.nextSolutionSet = nextSolutionSet;
-		this.keys = keys;
-		this.maxIterations = maxIterations;
-		this.typeWS = typeWS;
-	}
-
-	public DeltaIteration<ST, WT> getIterationHead() {
-		return iterationHead;
-	}
-	
-	public DataSet<ST> getNextSolutionSet() {
-		return nextSolutionSet;
-	}
-
-	public DataSet<WT> getNextWorkset() {
-		return nextWorkset;
-	}
-	
-	public int [] getKeyPositions() {
-		return keys.computeLogicalKeyPositions();
-	}
-	
-	public int getMaxIterations() {
-		return maxIterations;
-	}
-	
-	public TypeInformation<WT> getWorksetType() {
-		return typeWS;
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/IterativeDataSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/IterativeDataSet.java b/flink-java/src/main/java/org/apache/flink/api/java/IterativeDataSet.java
deleted file mode 100644
index 5dc0d2e..0000000
--- a/flink-java/src/main/java/org/apache/flink/api/java/IterativeDataSet.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.api.java;
-
-import org.apache.flink.api.common.aggregators.Aggregator;
-import org.apache.flink.api.common.aggregators.AggregatorRegistry;
-import org.apache.flink.api.common.aggregators.ConvergenceCriterion;
-import org.apache.flink.api.common.operators.Operator;
-import org.apache.flink.api.java.operators.SingleInputOperator;
-import org.apache.flink.types.TypeInformation;
-import org.apache.flink.types.Value;
-
-/**
- * The IterativeDataSet represents the start of an iteration. It is created from the DataSet that 
- * represents the initial solution set via the {@link DataSet#iterate(int)} method.
- * 
- * @param <T> The data type of set that is the input and feedback of the iteration.
- *
- * @see DataSet#iterate(int)
- */
-public class IterativeDataSet<T> extends SingleInputOperator<T, T, IterativeDataSet<T>> {
-
-	private final AggregatorRegistry aggregators = new AggregatorRegistry();
-	
-	private int maxIterations;
-
-	IterativeDataSet(ExecutionEnvironment context, TypeInformation<T> type, DataSet<T> input, int maxIterations) {
-		super(input, type);
-		this.maxIterations = maxIterations;
-	}
-	
-	// --------------------------------------------------------------------------------------------
-	
-	/**
-	 * Closes the iteration. This method defines the end of the iterative program part.
-	 * 
-	 * @param iterationResult The data set that will be fed back to the next iteration.
-	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
-	 * 
-	 * @see DataSet#iterate(int)
-	 */
-	public DataSet<T> closeWith(DataSet<T> iterationResult) {
-		return new BulkIterationResultSet<T>(getExecutionEnvironment(), getType(), this, iterationResult);
-	}
-	
-	/**
-	 * Closes the iteration and specifies a termination criterion. This method defines the end of
-	 * the iterative program part.
-	 * <p>
-	 * The termination criterion is a means of dynamically signaling the iteration to halt. It is expressed via a data
-	 * set that will trigger to halt the loop as soon as the data set is empty. A typical way of using the termination
-	 * criterion is to have a filter that filters out all elements that are considered non-converged. As soon as no more
-	 * such elements exist, the iteration finishes.
-	 * 
-	 * @param iterationResult The data set that will be fed back to the next iteration.
-	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
-	 * 
-	 * @see DataSet#iterate(int)
-	 */
-	public DataSet<T> closeWith(DataSet<T> iterationResult, DataSet<?> terminationCriterion) {
-		return new BulkIterationResultSet<T>(getExecutionEnvironment(), getType(), this, iterationResult, terminationCriterion);
-	}
-
-	/**
-	 * Gets the maximum number of iterations.
-	 * 
-	 * @return The maximum number of iterations.
-	 */
-	public int getMaxIterations() {
-		return maxIterations;
-	}
-	
-	/**
-	 * Registers an {@link Aggregator} for the iteration. Aggregators can be used to maintain simple statistics during the
-	 * iteration, such as number of elements processed. The aggregators compute global aggregates: After each iteration step,
-	 * the values are globally aggregated to produce one aggregate that represents statistics across all parallel instances.
-	 * The value of an aggregator can be accessed in the next iteration.
-	 * <p>
-	 * Aggregators can be accessed inside a function via the
-	 * {@link org.apache.flink.api.common.functions.AbstractRichFunction#getIterationRuntimeContext()} method.
-	 * 
-	 * @param name The name under which the aggregator is registered.
-	 * @param aggregator The aggregator class.
-	 * 
-	 * @return The IterativeDataSet itself, to allow chaining function calls.
-	 */
-	public IterativeDataSet<T> registerAggregator(String name, Aggregator<?> aggregator) {
-		this.aggregators.registerAggregator(name, aggregator);
-		return this;
-	}
-	
-	/**
-	 * Registers an {@link Aggregator} for the iteration together with a {@link ConvergenceCriterion}. For a general description
-	 * of aggregators, see {@link #registerAggregator(String, Aggregator)} and {@link Aggregator}.
-	 * At the end of each iteration, the convergence criterion takes the aggregator's global aggregate value and decided whether
-	 * the iteration should terminate. A typical use case is to have an aggregator that sums up the total error of change
-	 * in an iteration step and have to have a convergence criterion that signals termination as soon as the aggregate value
-	 * is below a certain threshold.
-	 * 
-	 * @param name The name under which the aggregator is registered.
-	 * @param aggregator The aggregator class.
-	 * @param convergenceCheck The convergence criterion.
-	 * 
-	 * @return The IterativeDataSet itself, to allow chaining function calls.
-	 */
-	public <X extends Value> IterativeDataSet<T> registerAggregationConvergenceCriterion(
-			String name, Aggregator<X> aggregator, ConvergenceCriterion<X> convergenceCheck)
-	{
-		this.aggregators.registerAggregationConvergenceCriterion(name, aggregator, convergenceCheck);
-		return this;
-	}
-	
-	/**
-	 * Gets the registry for aggregators. On the registry, one can add {@link Aggregator}s and an aggregator-based 
-	 * {@link ConvergenceCriterion}. This method offers an alternative way to registering the aggregators via
-	 * {@link #registerAggregator(String, Aggregator)} and {@link #registerAggregationConvergenceCriterion(String, Aggregator, ConvergenceCriterion)
-)}.
-	 * 
-	 * @return The registry for aggregators.
-	 */
-	public AggregatorRegistry getAggregators() {
-		return aggregators;
-	}
-	
-	// --------------------------------------------------------------------------------------------
-
-	@Override
-	protected org.apache.flink.api.common.operators.SingleInputOperator<T, T, ?> translateToDataFlow(Operator<T> input) {
-		// All the translation magic happens when the iteration end is encountered.
-		throw new RuntimeException("Error while creating the data flow plan for an iteration: The iteration end was not specified correctly.");
-	}
-}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/BulkIterationResultSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/BulkIterationResultSet.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/BulkIterationResultSet.java
new file mode 100644
index 0000000..8214174
--- /dev/null
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/BulkIterationResultSet.java
@@ -0,0 +1,61 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.api.java.operators;
+
+import org.apache.flink.api.java.DataSet;
+import org.apache.flink.api.java.ExecutionEnvironment;
+import org.apache.flink.types.TypeInformation;
+
+public class BulkIterationResultSet<T> extends DataSet<T> {
+
+	private final IterativeDataSet<T> iterationHead;
+
+	private final DataSet<T> nextPartialSolution;
+
+	private final DataSet<?> terminationCriterion;
+
+	BulkIterationResultSet(ExecutionEnvironment context,
+						TypeInformation<T> type,
+						IterativeDataSet<T> iterationHead,
+						DataSet<T> nextPartialSolution) {
+		this(context, type, iterationHead, nextPartialSolution, null);
+	}
+
+	BulkIterationResultSet(ExecutionEnvironment context,
+		TypeInformation<T> type, IterativeDataSet<T> iterationHead,
+		DataSet<T> nextPartialSolution, DataSet<?> terminationCriterion)
+	{
+		super(context, type);
+		this.iterationHead = iterationHead;
+		this.nextPartialSolution = nextPartialSolution;
+		this.terminationCriterion = terminationCriterion;
+	}
+
+	public IterativeDataSet<T> getIterationHead() {
+		return iterationHead;
+	}
+
+	public DataSet<T> getNextPartialSolution() {
+		return nextPartialSolution;
+	}
+
+	public DataSet<?> getTerminationCriterion() {
+		return terminationCriterion;
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/CoGroupOperator.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/CoGroupOperator.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/CoGroupOperator.java
index 91ed28d..dd0eba1 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/operators/CoGroupOperator.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/CoGroupOperator.java
@@ -30,7 +30,7 @@ import org.apache.flink.api.common.operators.UnaryOperatorInformation;
 import org.apache.flink.api.common.operators.base.CoGroupOperatorBase;
 import org.apache.flink.api.common.operators.base.MapOperatorBase;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration.SolutionSetPlaceHolder;
+import org.apache.flink.api.java.operators.DeltaIteration.SolutionSetPlaceHolder;
 import org.apache.flink.api.java.functions.KeySelector;
 import org.apache.flink.api.java.functions.UnsupportedLambdaExpressionException;
 import org.apache.flink.api.java.operators.Keys.FieldPositionKeys;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIteration.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIteration.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIteration.java
new file mode 100644
index 0000000..803759f
--- /dev/null
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIteration.java
@@ -0,0 +1,245 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.api.java.operators;
+
+import java.util.Arrays;
+
+import org.apache.commons.lang3.Validate;
+import org.apache.flink.api.common.InvalidProgramException;
+import org.apache.flink.api.common.aggregators.Aggregator;
+import org.apache.flink.api.common.aggregators.AggregatorRegistry;
+import org.apache.flink.api.java.DataSet;
+import org.apache.flink.api.java.ExecutionEnvironment;
+import org.apache.flink.types.TypeInformation;
+
+/**
+ * The DeltaIteration represents the start of a delta iteration. It is created from the DataSet that
+ * represents the initial solution set via the {@link DataSet#iterateDelta(DataSet, int, int...)} method.
+ * 
+ * @param <ST> The data type of the solution set.
+ * @param <WT> The data type of the workset (the feedback data set).
+ *
+ * @see DataSet#iterateDelta(DataSet, int, int...)
+ * @see DataSet#iterateDelta(DataSet, int, int[])
+ */
+public class DeltaIteration<ST, WT> {
+	
+	private final AggregatorRegistry aggregators = new AggregatorRegistry();
+	
+	private final DataSet<ST> initialSolutionSet;
+	private final DataSet<WT> initialWorkset;
+	
+	private final SolutionSetPlaceHolder<ST> solutionSetPlaceholder;
+	private final WorksetPlaceHolder<WT> worksetPlaceholder;
+
+	private final Keys<ST> keys;
+	
+	private final int maxIterations;
+	
+	private String name;
+	
+	private int parallelism = -1;
+	
+	public DeltaIteration(ExecutionEnvironment context, TypeInformation<ST> type, DataSet<ST> solutionSet, DataSet<WT> workset, Keys<ST> keys, int maxIterations) {
+		initialSolutionSet = solutionSet;
+		initialWorkset = workset;
+		solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(context, solutionSet.getType(), this);
+		worksetPlaceholder = new WorksetPlaceHolder<WT>(context, workset.getType());
+		this.keys = keys;
+		this.maxIterations = maxIterations;
+	}
+
+	// --------------------------------------------------------------------------------------------
+	
+	/**
+	 * Closes the delta iteration. This method defines the end of the delta iteration's function.
+	 * 
+	 * @param solutionSetDelta The delta for the solution set. The delta will be merged into the solution set at the end of
+	 *                         each iteration.
+	 * @param newWorkset The new workset (feedback data set) that will be fed back to the next iteration.
+	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
+	 * 
+	 * @see DataSet#iterateDelta(DataSet, int, int...)
+	 */
+	public DataSet<ST> closeWith(DataSet<ST> solutionSetDelta, DataSet<WT> newWorkset) {
+		return new DeltaIterationResultSet<ST, WT>(initialSolutionSet.getExecutionEnvironment(),
+				initialSolutionSet.getType(), initialWorkset.getType(), this, solutionSetDelta, newWorkset, keys, maxIterations);
+	}
+
+	/**
+	 * Gets the initial solution set. This is the data set on which the delta iteration was started.
+	 * <p>
+	 * Consider the following example:
+	 * <pre>
+	 * {@code
+	 * DataSet<MyType> solutionSetData = ...;
+	 * DataSet<AnotherType> worksetData = ...;
+	 * 
+	 * DeltaIteration<MyType, AnotherType> iteration = solutionSetData.iteratorDelta(worksetData, 10, ...);
+	 * }
+	 * </pre>
+	 * The <tt>solutionSetData</tt> would be the data set returned by {@code iteration.getInitialSolutionSet();}.
+	 * 
+	 * @return The data set that forms the initial solution set.
+	 */
+	public DataSet<ST> getInitialSolutionSet() {
+		return initialSolutionSet;
+	}
+
+	/**
+	 * Gets the initial workset. This is the data set passed to the method that starts the delta
+	 * iteration.
+	 * <p>
+	 * Consider the following example:
+	 * <pre>
+	 * {@code
+	 * DataSet<MyType> solutionSetData = ...;
+	 * DataSet<AnotherType> worksetData = ...;
+	 * 
+	 * DeltaIteration<MyType, AnotherType> iteration = solutionSetData.iteratorDelta(worksetData, 10, ...);
+	 * }
+	 * </pre>
+	 * The <tt>worksetData</tt> would be the data set returned by {@code iteration.getInitialWorkset();}.
+	 * 
+	 * @return The data set that forms the initial workset.
+	 */
+	public DataSet<WT> getInitialWorkset() {
+		return initialWorkset;
+	}
+
+	/**
+	 * Gets the solution set of the delta iteration. The solution set represents the state that is kept across iterations.
+	 * 
+	 * @return The solution set of the delta iteration.
+	 */
+	public SolutionSetPlaceHolder<ST> getSolutionSet() {
+		return solutionSetPlaceholder;
+	}
+
+	/**
+	 * Gets the working set of the delta iteration. The working set is constructed by the previous iteration.
+	 *
+	 * @return The working set of the delta iteration.
+	 */
+	public WorksetPlaceHolder<WT> getWorkset() {
+		return worksetPlaceholder;
+	}
+
+	/**
+	 * Sets the name for the iteration. The name is displayed in logs and messages.
+	 * 
+	 * @param name The name for the iteration.
+	 * @return The iteration object, for function call chaining.
+	 */
+	public DeltaIteration<ST, WT> name(String name) {
+		this.name = name;
+		return this;
+	}
+	
+	/**
+	 * Gets the name from this iteration.
+	 * 
+	 * @return The name of the iteration.
+	 */
+	public String getName() {
+		return name;
+	}
+	
+	/**
+	 * Sets the degree of parallelism for the iteration.
+	 *
+	 * @param parallelism The degree of parallelism.
+	 * @return The iteration object, for function call chaining.
+	 */
+	public DeltaIteration<ST, WT> parallelism(int parallelism) {
+		Validate.isTrue(parallelism > 0 || parallelism == -1, "The degree of parallelism must be positive, or -1 (use default).");
+		this.parallelism = parallelism;
+		return this;
+	}
+	
+	/**
+	 * Gets the iteration's degree of parallelism.
+	 * 
+	 * @return The iterations parallelism, or -1, if not set.
+	 */
+	public int getParallelism() {
+		return parallelism;
+	}
+	
+	/**
+	 * Registers an {@link Aggregator} for the iteration. Aggregators can be used to maintain simple statistics during the
+	 * iteration, such as number of elements processed. The aggregators compute global aggregates: After each iteration step,
+	 * the values are globally aggregated to produce one aggregate that represents statistics across all parallel instances.
+	 * The value of an aggregator can be accessed in the next iteration.
+	 * <p>
+	 * Aggregators can be accessed inside a function via the
+	 * {@link org.apache.flink.api.common.functions.AbstractRichFunction#getIterationRuntimeContext()} method.
+	 * 
+	 * @param name The name under which the aggregator is registered.
+	 * @param aggregator The aggregator class.
+	 * 
+	 * @return The DeltaIteration itself, to allow chaining function calls.
+	 */
+	public DeltaIteration<ST, WT> registerAggregator(String name, Aggregator<?> aggregator) {
+		this.aggregators.registerAggregator(name, aggregator);
+		return this;
+	}
+	
+	/**
+	 * Gets the registry for aggregators for the iteration.
+	 * 
+	 * @return The registry with all aggregators.
+	 */
+	public AggregatorRegistry getAggregators() {
+		return this.aggregators;
+	}
+	
+	/**
+	 * A {@link DataSet} that acts as a placeholder for the solution set during the iteration.
+	 * 
+	 * @param <ST> The type of the elements in the solution set.
+	 */
+	public static class SolutionSetPlaceHolder<ST> extends DataSet<ST>{
+		
+		private final DeltaIteration<ST, ?> deltaIteration;
+		
+		private SolutionSetPlaceHolder(ExecutionEnvironment context, TypeInformation<ST> type, DeltaIteration<ST, ?> deltaIteration) {
+			super(context, type);
+			this.deltaIteration = deltaIteration;
+		}
+		
+		public void checkJoinKeyFields(int[] keyFields) {
+			int[] ssKeys = deltaIteration.keys.computeLogicalKeyPositions();
+			if (!Arrays.equals(ssKeys, keyFields)) {
+				throw new InvalidProgramException("The solution can only be joined/co-grouped with the same keys as the elements are identified with (here: " + Arrays.toString(ssKeys) + ").");
+			}
+		}
+	}
+
+	/**
+	 * A {@link DataSet} that acts as a placeholder for the workset during the iteration.
+	 *
+	 * @param <WT> The data type of the elements in the workset.
+	 */
+	public static class WorksetPlaceHolder<WT> extends DataSet<WT>{
+		private WorksetPlaceHolder(ExecutionEnvironment context, TypeInformation<WT> type) {
+			super(context, type);
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIterationResultSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIterationResultSet.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIterationResultSet.java
new file mode 100644
index 0000000..6afa6a9
--- /dev/null
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/DeltaIterationResultSet.java
@@ -0,0 +1,80 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.api.java.operators;
+
+import org.apache.flink.api.java.DataSet;
+import org.apache.flink.api.java.ExecutionEnvironment;
+import org.apache.flink.types.TypeInformation;
+
+public class DeltaIterationResultSet<ST, WT> extends DataSet<ST> {
+
+	private DeltaIteration<ST, WT> iterationHead;
+
+	private DataSet<ST> nextSolutionSet;
+	
+	private DataSet<WT> nextWorkset;
+	
+	private Keys<ST> keys;
+	
+	private int maxIterations;
+	
+	private TypeInformation<WT> typeWS;
+
+	DeltaIterationResultSet(ExecutionEnvironment context,
+							TypeInformation<ST> typeSS,
+							TypeInformation<WT> typeWS,
+							DeltaIteration<ST, WT> iterationHead,
+							DataSet<ST> nextSolutionSet,
+							DataSet<WT> nextWorkset,
+							Keys<ST> keys,
+							int maxIterations)
+	{
+		super(context, typeSS);
+		this.iterationHead = iterationHead;
+		this.nextWorkset = nextWorkset;
+		this.nextSolutionSet = nextSolutionSet;
+		this.keys = keys;
+		this.maxIterations = maxIterations;
+		this.typeWS = typeWS;
+	}
+
+	public DeltaIteration<ST, WT> getIterationHead() {
+		return iterationHead;
+	}
+	
+	public DataSet<ST> getNextSolutionSet() {
+		return nextSolutionSet;
+	}
+
+	public DataSet<WT> getNextWorkset() {
+		return nextWorkset;
+	}
+	
+	public int [] getKeyPositions() {
+		return keys.computeLogicalKeyPositions();
+	}
+	
+	public int getMaxIterations() {
+		return maxIterations;
+	}
+	
+	public TypeInformation<WT> getWorksetType() {
+		return typeWS;
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/IterativeDataSet.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/IterativeDataSet.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/IterativeDataSet.java
new file mode 100644
index 0000000..7fc99f6
--- /dev/null
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/IterativeDataSet.java
@@ -0,0 +1,149 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.api.java.operators;
+
+import org.apache.flink.api.common.aggregators.Aggregator;
+import org.apache.flink.api.common.aggregators.AggregatorRegistry;
+import org.apache.flink.api.common.aggregators.ConvergenceCriterion;
+import org.apache.flink.api.common.operators.Operator;
+import org.apache.flink.api.java.DataSet;
+import org.apache.flink.api.java.ExecutionEnvironment;
+import org.apache.flink.types.TypeInformation;
+import org.apache.flink.types.Value;
+
+/**
+ * The IterativeDataSet represents the start of an iteration. It is created from the DataSet that 
+ * represents the initial solution set via the {@link DataSet#iterate(int)} method.
+ * 
+ * @param <T> The data type of set that is the input and feedback of the iteration.
+ *
+ * @see DataSet#iterate(int)
+ */
+public class IterativeDataSet<T> extends SingleInputOperator<T, T, IterativeDataSet<T>> {
+
+	private final AggregatorRegistry aggregators = new AggregatorRegistry();
+	
+	private int maxIterations;
+
+	public IterativeDataSet(ExecutionEnvironment context, TypeInformation<T> type, DataSet<T> input, int maxIterations) {
+		super(input, type);
+		this.maxIterations = maxIterations;
+	}
+	
+	// --------------------------------------------------------------------------------------------
+	
+	/**
+	 * Closes the iteration. This method defines the end of the iterative program part.
+	 * 
+	 * @param iterationResult The data set that will be fed back to the next iteration.
+	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
+	 * 
+	 * @see DataSet#iterate(int)
+	 */
+	public DataSet<T> closeWith(DataSet<T> iterationResult) {
+		return new BulkIterationResultSet<T>(getExecutionEnvironment(), getType(), this, iterationResult);
+	}
+	
+	/**
+	 * Closes the iteration and specifies a termination criterion. This method defines the end of
+	 * the iterative program part.
+	 * <p>
+	 * The termination criterion is a means of dynamically signaling the iteration to halt. It is expressed via a data
+	 * set that will trigger to halt the loop as soon as the data set is empty. A typical way of using the termination
+	 * criterion is to have a filter that filters out all elements that are considered non-converged. As soon as no more
+	 * such elements exist, the iteration finishes.
+	 * 
+	 * @param iterationResult The data set that will be fed back to the next iteration.
+	 * @return The DataSet that represents the result of the iteration, after the computation has terminated.
+	 * 
+	 * @see DataSet#iterate(int)
+	 */
+	public DataSet<T> closeWith(DataSet<T> iterationResult, DataSet<?> terminationCriterion) {
+		return new BulkIterationResultSet<T>(getExecutionEnvironment(), getType(), this, iterationResult, terminationCriterion);
+	}
+
+	/**
+	 * Gets the maximum number of iterations.
+	 * 
+	 * @return The maximum number of iterations.
+	 */
+	public int getMaxIterations() {
+		return maxIterations;
+	}
+	
+	/**
+	 * Registers an {@link Aggregator} for the iteration. Aggregators can be used to maintain simple statistics during the
+	 * iteration, such as number of elements processed. The aggregators compute global aggregates: After each iteration step,
+	 * the values are globally aggregated to produce one aggregate that represents statistics across all parallel instances.
+	 * The value of an aggregator can be accessed in the next iteration.
+	 * <p>
+	 * Aggregators can be accessed inside a function via the
+	 * {@link org.apache.flink.api.common.functions.AbstractRichFunction#getIterationRuntimeContext()} method.
+	 * 
+	 * @param name The name under which the aggregator is registered.
+	 * @param aggregator The aggregator class.
+	 * 
+	 * @return The IterativeDataSet itself, to allow chaining function calls.
+	 */
+	public IterativeDataSet<T> registerAggregator(String name, Aggregator<?> aggregator) {
+		this.aggregators.registerAggregator(name, aggregator);
+		return this;
+	}
+	
+	/**
+	 * Registers an {@link Aggregator} for the iteration together with a {@link ConvergenceCriterion}. For a general description
+	 * of aggregators, see {@link #registerAggregator(String, Aggregator)} and {@link Aggregator}.
+	 * At the end of each iteration, the convergence criterion takes the aggregator's global aggregate value and decided whether
+	 * the iteration should terminate. A typical use case is to have an aggregator that sums up the total error of change
+	 * in an iteration step and have to have a convergence criterion that signals termination as soon as the aggregate value
+	 * is below a certain threshold.
+	 * 
+	 * @param name The name under which the aggregator is registered.
+	 * @param aggregator The aggregator class.
+	 * @param convergenceCheck The convergence criterion.
+	 * 
+	 * @return The IterativeDataSet itself, to allow chaining function calls.
+	 */
+	public <X extends Value> IterativeDataSet<T> registerAggregationConvergenceCriterion(
+			String name, Aggregator<X> aggregator, ConvergenceCriterion<X> convergenceCheck)
+	{
+		this.aggregators.registerAggregationConvergenceCriterion(name, aggregator, convergenceCheck);
+		return this;
+	}
+	
+	/**
+	 * Gets the registry for aggregators. On the registry, one can add {@link Aggregator}s and an aggregator-based 
+	 * {@link ConvergenceCriterion}. This method offers an alternative way to registering the aggregators via
+	 * {@link #registerAggregator(String, Aggregator)} and {@link #registerAggregationConvergenceCriterion(String, Aggregator, ConvergenceCriterion)
+)}.
+	 * 
+	 * @return The registry for aggregators.
+	 */
+	public AggregatorRegistry getAggregators() {
+		return aggregators;
+	}
+	
+	// --------------------------------------------------------------------------------------------
+
+	@Override
+	protected org.apache.flink.api.common.operators.SingleInputOperator<T, T, ?> translateToDataFlow(Operator<T> input) {
+		// All the translation magic happens when the iteration end is encountered.
+		throw new RuntimeException("Error while creating the data flow plan for an iteration: The iteration end was not specified correctly.");
+	}
+}

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java
index 15447d8..6d74474 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/JoinOperator.java
@@ -33,7 +33,7 @@ import org.apache.flink.api.common.operators.UnaryOperatorInformation;
 import org.apache.flink.api.common.operators.base.JoinOperatorBase;
 import org.apache.flink.api.common.operators.base.MapOperatorBase;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration.SolutionSetPlaceHolder;
+import org.apache.flink.api.java.operators.DeltaIteration.SolutionSetPlaceHolder;
 import org.apache.flink.api.java.functions.RichFlatJoinFunction;
 import org.apache.flink.api.java.functions.KeySelector;
 import org.apache.flink.api.java.functions.SemanticPropUtil;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/operators/OperatorTranslation.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/operators/OperatorTranslation.java b/flink-java/src/main/java/org/apache/flink/api/java/operators/OperatorTranslation.java
index bf7975f..e44302a 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/operators/OperatorTranslation.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/operators/OperatorTranslation.java
@@ -18,11 +18,7 @@
 
 package org.apache.flink.api.java.operators;
 
-import org.apache.flink.api.java.BulkIterationResultSet;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
-import org.apache.flink.api.java.DeltaIterationResultSet;
-import org.apache.flink.api.java.IterativeDataSet;
 
 import java.util.ArrayList;
 import java.util.HashMap;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparator.java
----------------------------------------------------------------------
diff --git a/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparator.java b/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparator.java
index 7b3976f..8783ede 100644
--- a/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparator.java
+++ b/flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparator.java
@@ -18,7 +18,6 @@
 
 package org.apache.flink.api.java.typeutils.runtime;
 
-
 import org.apache.flink.api.common.typeutils.TypeComparator;
 import org.apache.flink.api.common.typeutils.TypeSerializer;
 import org.apache.flink.api.java.tuple.Tuple;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-java/src/test/java/org/apache/flink/api/java/operators/translation/DeltaIterationTranslationTest.java
----------------------------------------------------------------------
diff --git a/flink-java/src/test/java/org/apache/flink/api/java/operators/translation/DeltaIterationTranslationTest.java b/flink-java/src/test/java/org/apache/flink/api/java/operators/translation/DeltaIterationTranslationTest.java
index 9fcf963..71eb682 100644
--- a/flink-java/src/test/java/org/apache/flink/api/java/operators/translation/DeltaIterationTranslationTest.java
+++ b/flink-java/src/test/java/org/apache/flink/api/java/operators/translation/DeltaIterationTranslationTest.java
@@ -33,7 +33,7 @@ import org.apache.flink.api.common.operators.base.GenericDataSinkBase;
 import org.apache.flink.api.common.operators.base.JoinOperatorBase;
 import org.apache.flink.api.common.operators.base.MapOperatorBase;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.api.java.functions.RichCoGroupFunction;
 import org.apache.flink.api.java.functions.RichJoinFunction;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/MultipleJoinsWithSolutionSetCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/MultipleJoinsWithSolutionSetCompilerTest.java b/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/MultipleJoinsWithSolutionSetCompilerTest.java
index e0a96b3..1d7cfa6 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/MultipleJoinsWithSolutionSetCompilerTest.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/MultipleJoinsWithSolutionSetCompilerTest.java
@@ -34,7 +34,7 @@ import org.apache.flink.test.compiler.util.CompilerTestBase;
 import org.apache.flink.util.Collector;
 import org.junit.Test;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.compiler.plan.DualInputPlanNode;
 import org.apache.flink.compiler.plan.OptimizedPlan;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/PageRankCompilerTest.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/PageRankCompilerTest.java b/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/PageRankCompilerTest.java
index 65cbe24..241a376 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/PageRankCompilerTest.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/compiler/iterations/PageRankCompilerTest.java
@@ -43,7 +43,7 @@ import org.junit.Assert;
 import org.junit.Test;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 public class PageRankCompilerTest extends CompilerTestBase{
 	

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/BulkIterationWithAllReducerITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/BulkIterationWithAllReducerITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/BulkIterationWithAllReducerITCase.java
index b442b33..1d0b765 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/BulkIterationWithAllReducerITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/BulkIterationWithAllReducerITCase.java
@@ -31,7 +31,7 @@ import org.junit.Assert;
 
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.api.java.io.LocalCollectionOutputFormat;
 
 

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsSecondITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsSecondITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsSecondITCase.java
index c6175b2..e4faa77 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsSecondITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/CoGroupConnectedComponentsSecondITCase.java
@@ -31,7 +31,7 @@ import org.apache.flink.test.testdata.ConnectedComponentsData;
 import org.apache.flink.test.util.JavaProgramTestBase;
 import org.apache.flink.util.Collector;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 import org.apache.flink.api.java.io.LocalCollectionOutputFormat;
 import org.apache.flink.example.java.graph.ConnectedComponents.DuplicateValue;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/DependencyConnectedComponentsITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/DependencyConnectedComponentsITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/DependencyConnectedComponentsITCase.java
index a62763a..a0d26db 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/DependencyConnectedComponentsITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/DependencyConnectedComponentsITCase.java
@@ -29,7 +29,7 @@ import org.apache.flink.api.java.tuple.Tuple2;
 import org.apache.flink.test.util.JavaProgramTestBase;
 import org.apache.flink.util.Collector;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithUnionITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithUnionITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithUnionITCase.java
index 2a130ed..74331a7 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithUnionITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/IterationWithUnionITCase.java
@@ -24,7 +24,7 @@ import org.apache.flink.api.common.functions.GroupReduceFunction;
 import org.apache.flink.api.common.functions.MapFunction;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 import org.apache.flink.test.recordJobs.kmeans.udfs.PointInFormat;
 import org.apache.flink.test.recordJobs.kmeans.udfs.PointOutFormat;
 import org.apache.flink.test.util.JavaProgramTestBase;

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/AggregatorsITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/AggregatorsITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/AggregatorsITCase.java
index 9ea33d7..12eb87b 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/AggregatorsITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/AggregatorsITCase.java
@@ -40,9 +40,9 @@ import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 import org.apache.flink.api.java.DataSet;
-import org.apache.flink.api.java.DeltaIteration;
+import org.apache.flink.api.java.operators.DeltaIteration;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 /**
  * Test the functionality of aggregators in bulk and delta iterative cases.

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableAggregatorITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableAggregatorITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableAggregatorITCase.java
index 8097f28..a9f01fb 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableAggregatorITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableAggregatorITCase.java
@@ -33,7 +33,7 @@ import org.apache.flink.util.Collector;
 import org.junit.Assert;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 /**
  * Connected Components test case that uses a parameterizable aggregator

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableConvergenceITCase.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableConvergenceITCase.java b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableConvergenceITCase.java
index 6678940..5e6be50 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableConvergenceITCase.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/iterative/aggregators/ConnectedComponentsWithParametrizableConvergenceITCase.java
@@ -33,7 +33,7 @@ import org.apache.flink.types.LongValue;
 import org.apache.flink.util.Collector;
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/dee54cb5/flink-tests/src/test/java/org/apache/flink/test/util/testjar/KMeansForTest.java
----------------------------------------------------------------------
diff --git a/flink-tests/src/test/java/org/apache/flink/test/util/testjar/KMeansForTest.java b/flink-tests/src/test/java/org/apache/flink/test/util/testjar/KMeansForTest.java
index 917615d..5390574 100644
--- a/flink-tests/src/test/java/org/apache/flink/test/util/testjar/KMeansForTest.java
+++ b/flink-tests/src/test/java/org/apache/flink/test/util/testjar/KMeansForTest.java
@@ -33,7 +33,7 @@ import org.apache.flink.configuration.Configuration;
 
 import org.apache.flink.api.java.DataSet;
 import org.apache.flink.api.java.ExecutionEnvironment;
-import org.apache.flink.api.java.IterativeDataSet;
+import org.apache.flink.api.java.operators.IterativeDataSet;
 
 @SuppressWarnings("serial")
 public class KMeansForTest implements Program {