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 2016/02/29 21:38:06 UTC

[1/2] flink git commit: [FLINK-3548] [api-breaking] Remove unnecessary generic parameter from SingleOutputStreamOperator

Repository: flink
Updated Branches:
  refs/heads/release-1.0 74c62b0b8 -> 30486905b


http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
index 4c1c265..fb7ec9f 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
@@ -735,7 +735,7 @@ public abstract class StreamExecutionEnvironment {
 
 		SourceFunction<OUT> function;
 		try {
-			function = new FromElementsFunction<OUT>(typeInfo.createSerializer(getConfig()), data);
+			function = new FromElementsFunction<>(typeInfo.createSerializer(getConfig()), data);
 		}
 		catch (IOException e) {
 			throw new RuntimeException(e.getMessage(), e);
@@ -789,7 +789,7 @@ public abstract class StreamExecutionEnvironment {
 	public <OUT> DataStreamSource<OUT> fromCollection(Iterator<OUT> data, TypeInformation<OUT> typeInfo) {
 		Preconditions.checkNotNull(data, "The iterator must not be null");
 
-		SourceFunction<OUT> function = new FromIteratorFunction<OUT>(data);
+		SourceFunction<OUT> function = new FromIteratorFunction<>(data);
 		return addSource(function, "Collection Source", typeInfo);
 	}
 
@@ -838,7 +838,7 @@ public abstract class StreamExecutionEnvironment {
 	// private helper for passing different names
 	private <OUT> DataStreamSource<OUT> fromParallelCollection(SplittableIterator<OUT> iterator, TypeInformation<OUT>
 			typeInfo, String operatorName) {
-		return addSource(new FromSplittableIteratorFunction<OUT>(iterator), operatorName).returns(typeInfo);
+		return addSource(new FromSplittableIteratorFunction<>(iterator), operatorName, typeInfo);
 	}
 
 	/**
@@ -1033,8 +1033,8 @@ public abstract class StreamExecutionEnvironment {
 	// private helper for passing different names
 	private <OUT> DataStreamSource<OUT> createInput(InputFormat<OUT, ?> inputFormat,
 			TypeInformation<OUT> typeInfo, String sourceName) {
-		FileSourceFunction<OUT> function = new FileSourceFunction<OUT>(inputFormat, typeInfo);
-		return addSource(function, sourceName).returns(typeInfo);
+		FileSourceFunction<OUT> function = new FileSourceFunction<>(inputFormat, typeInfo);
+		return addSource(function, sourceName, typeInfo);
 	}
 
 	/**
@@ -1136,7 +1136,7 @@ public abstract class StreamExecutionEnvironment {
 			sourceOperator = new StreamSource<>(function);
 		}
 
-		return new DataStreamSource<OUT>(this, typeInfo, sourceOperator, isParallel, sourceName);
+		return new DataStreamSource<>(this, typeInfo, sourceOperator, isParallel, sourceName);
 	}
 
 	/**

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java
index 7a4d6f8..cf48160 100644
--- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java
+++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java
@@ -435,7 +435,7 @@ public class DataStreamTest extends StreamingMultipleProgramsTestBase {
 		DataStreamSource<Tuple2<Long, Long>> src = env.fromElements(new Tuple2<>(0L, 0L));
 		env.setParallelism(10);
 
-		SingleOutputStreamOperator<Long, ?> map = src.map(new MapFunction<Tuple2<Long, Long>, Long>() {
+		SingleOutputStreamOperator<Long> map = src.map(new MapFunction<Tuple2<Long, Long>, Long>() {
 			@Override
 			public Long map(Tuple2<Long, Long> value) throws Exception {
 				return null;
@@ -759,7 +759,7 @@ public class DataStreamTest extends StreamingMultipleProgramsTestBase {
 
 	@SuppressWarnings("rawtypes,unchecked")
 	private static Integer createDownStreamId(ConnectedStreams dataStream) {
-		SingleOutputStreamOperator<?, ?> coMap = dataStream.map(new CoMapFunction<Tuple2<Long, Long>, Tuple2<Long, Long>, Object>() {
+		SingleOutputStreamOperator<?> coMap = dataStream.map(new CoMapFunction<Tuple2<Long, Long>, Tuple2<Long, Long>, Object>() {
 			private static final long serialVersionUID = 1L;
 
 			@Override

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/IterateTest.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/IterateTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/IterateTest.java
index bd97e84..cd73b41 100644
--- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/IterateTest.java
+++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/IterateTest.java
@@ -68,7 +68,7 @@ public class IterateTest extends StreamingMultipleProgramsTestBase {
 		DataStream<Integer> source = env.fromElements(1, 10);
 
 		IterativeStream<Integer> iter1 = source.iterate();
-		SingleOutputStreamOperator<Integer, ?> map1 = iter1.map(NoOpIntMap);
+		SingleOutputStreamOperator<Integer> map1 = iter1.map(NoOpIntMap);
 		iter1.closeWith(map1).print();
 	}
 
@@ -289,8 +289,9 @@ public class IterateTest extends StreamingMultipleProgramsTestBase {
 		IterativeStream<Integer> iter1 = source1.union(source2).iterate();
 
 		DataStream<Integer> head1 = iter1.map(NoOpIntMap).name("map1");
-		DataStream<Integer> head2 = iter1.map(NoOpIntMap).setParallelism(DEFAULT_PARALLELISM / 2).rebalance().name(
-				"shuffle");
+		DataStream<Integer> head2 = iter1.map(NoOpIntMap)
+				.setParallelism(DEFAULT_PARALLELISM / 2)
+				.name("shuffle").rebalance();
 		DataStreamSink<Integer> head3 = iter1.map(NoOpIntMap).setParallelism(DEFAULT_PARALLELISM / 2)
 				.addSink(new ReceiveCheckNoOpSink<Integer>());
 		DataStreamSink<Integer> head4 = iter1.map(NoOpIntMap).addSink(new ReceiveCheckNoOpSink<Integer>());
@@ -302,7 +303,7 @@ public class IterateTest extends StreamingMultipleProgramsTestBase {
 
 		iter1.closeWith(
 				source3.select("even").union(
-						head1.map(NoOpIntMap).broadcast().name("bc"),
+						head1.map(NoOpIntMap).name("bc").broadcast(),
 						head2.map(NoOpIntMap).shuffle()));
 
 		StreamGraph graph = env.getStreamGraph();

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/TypeFillTest.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/TypeFillTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/TypeFillTest.java
index 4c0f59f..ddda82d 100644
--- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/TypeFillTest.java
+++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/TypeFillTest.java
@@ -80,7 +80,7 @@ public class TypeFillTest extends StreamingMultipleProgramsTestBase {
 		assertEquals(BasicTypeInfo.LONG_TYPE_INFO,
 				source.map(new TestMap<Long, Long>()).returns(Long.class).getType());
 
-		SingleOutputStreamOperator<String, ?> map = source.map(new MapFunction<Long, String>() {
+		SingleOutputStreamOperator<String> map = source.map(new MapFunction<Long, String>() {
 
 			@Override
 			public String map(Long value) throws Exception {

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java
index d1f92c6..46a985c 100644
--- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java
+++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java
@@ -110,7 +110,7 @@ public class StreamGraphGeneratorTest {
 				.shuffle();
 
 
-		SingleOutputStreamOperator<Integer, ?> unionedMap = map1.union(map2).union(map3)
+		SingleOutputStreamOperator<Integer> unionedMap = map1.union(map2).union(map3)
 				.map(new NoOpIntMap());
 
 		unionedMap.addSink(new NoOpSink<Integer>());
@@ -163,7 +163,7 @@ public class StreamGraphGeneratorTest {
 
 		EvenOddOutputSelector selector = new EvenOddOutputSelector();
 
-		SingleOutputStreamOperator<Integer, ?> unionedMap = map1.union(map2).union(map3)
+		SingleOutputStreamOperator<Integer> unionedMap = map1.union(map2).union(map3)
 				.broadcast()
 				.split(selector)
 				.select("foo")
@@ -240,6 +240,7 @@ public class StreamGraphGeneratorTest {
 	private static class OutputTypeConfigurableOperationWithTwoInputs
 			extends AbstractStreamOperator<Integer>
 			implements TwoInputStreamOperator<Integer, Integer, Integer>, OutputTypeConfigurable<Integer> {
+		private static final long serialVersionUID = 1L;
 
 		TypeInformation<Integer> tpeInformation;
 
@@ -253,12 +254,12 @@ public class StreamGraphGeneratorTest {
 		}
 
 		@Override
-		public void processElement1(StreamRecord element) throws Exception {
+		public void processElement1(StreamRecord<Integer> element) throws Exception {
 			output.collect(element);
 		}
 
 		@Override
-		public void processElement2(StreamRecord element) throws Exception {
+		public void processElement2(StreamRecord<Integer> element) throws Exception {
 			output.collect(element);
 		}
 
@@ -275,6 +276,7 @@ public class StreamGraphGeneratorTest {
 	private static class OutputTypeConfigurableOperationWithOneInput
 			extends AbstractStreamOperator<Integer>
 			implements OneInputStreamOperator<Integer, Integer>, OutputTypeConfigurable<Integer> {
+		private static final long serialVersionUID = 1L;
 
 		TypeInformation<Integer> tpeInformation;
 

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
----------------------------------------------------------------------
diff --git a/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala b/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
index 5f99ad8..fda1ebc 100644
--- a/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
+++ b/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
@@ -33,7 +33,6 @@ import org.apache.flink.streaming.api.datastream.{AllWindowedStream => JavaAllWi
 import org.apache.flink.streaming.api.functions.sink.SinkFunction
 import org.apache.flink.streaming.api.functions.{AssignerWithPunctuatedWatermarks, AssignerWithPeriodicWatermarks, AscendingTimestampExtractor, TimestampExtractor}
 import org.apache.flink.streaming.api.operators.OneInputStreamOperator
-import org.apache.flink.streaming.api.transformations.OneInputTransformation
 import org.apache.flink.streaming.api.windowing.assigners._
 import org.apache.flink.streaming.api.windowing.time.Time
 import org.apache.flink.streaming.api.windowing.windows.{GlobalWindow, TimeWindow, Window}
@@ -125,7 +124,7 @@ class DataStream[T](stream: JavaStream[T]) {
    */
   def setParallelism(parallelism: Int): DataStream[T] = {
     stream match {
-      case ds: SingleOutputStreamOperator[_, _] => ds.setParallelism(parallelism)
+      case ds: SingleOutputStreamOperator[T] => ds.setParallelism(parallelism)
       case _ =>
         throw new UnsupportedOperationException(
           "Operator " + stream + " cannot set the parallelism.")
@@ -140,7 +139,7 @@ class DataStream[T](stream: JavaStream[T]) {
    * @return Name of the stream.
    */
   def name: String = stream match {
-    case stream : SingleOutputStreamOperator[T,_] => stream.getName
+    case stream : SingleOutputStreamOperator[T] => stream.getName
     case _ => throw new
         UnsupportedOperationException("Only supported for operators.")
   }
@@ -165,7 +164,7 @@ class DataStream[T](stream: JavaStream[T]) {
    * @return The named operator
    */
   def name(name: String) : DataStream[T] = stream match {
-    case stream : SingleOutputStreamOperator[T,_] => asScalaStream(stream.name(name))
+    case stream : SingleOutputStreamOperator[T] => asScalaStream(stream.name(name))
     case _ => throw new UnsupportedOperationException("Only supported for operators.")
     this
   }
@@ -184,7 +183,7 @@ class DataStream[T](stream: JavaStream[T]) {
     */
   @PublicEvolving
   def uid(uid: String) : DataStream[T] = javaStream match {
-    case stream : SingleOutputStreamOperator[T,_] => asScalaStream(stream.uid(uid))
+    case stream : SingleOutputStreamOperator[T] => asScalaStream(stream.uid(uid))
     case _ => throw new UnsupportedOperationException("Only supported for operators.")
     this
   }
@@ -199,7 +198,7 @@ class DataStream[T](stream: JavaStream[T]) {
   @PublicEvolving
   def disableChaining(): DataStream[T] = {
     stream match {
-      case ds: SingleOutputStreamOperator[_, _] => ds.disableChaining()
+      case ds: SingleOutputStreamOperator[T] => ds.disableChaining()
       case _ =>
         throw new UnsupportedOperationException("Only supported for operators.")
     }
@@ -215,7 +214,7 @@ class DataStream[T](stream: JavaStream[T]) {
   @PublicEvolving
   def startNewChain(): DataStream[T] = {
     stream match {
-      case ds: SingleOutputStreamOperator[_, _] => ds.startNewChain()
+      case ds: SingleOutputStreamOperator[T] => ds.startNewChain()
       case _ =>
         throw new UnsupportedOperationException("Only supported for operators.")
     }
@@ -238,8 +237,7 @@ class DataStream[T](stream: JavaStream[T]) {
   @PublicEvolving
   def slotSharingGroup(slotSharingGroup: String): DataStream[T] = {
     stream match {
-      case ds: SingleOutputStreamOperator[_, _] => ds.slotSharingGroup(slotSharingGroup)
-      case sink: DataStreamSink[_] => sink.slotSharingGroup(slotSharingGroup)
+      case ds: SingleOutputStreamOperator[T] => ds.slotSharingGroup(slotSharingGroup)
       case _ =>
         throw new UnsupportedOperationException("Only supported for operators.")
     }
@@ -256,7 +254,7 @@ class DataStream[T](stream: JavaStream[T]) {
    */
   def setBufferTimeout(timeoutMillis: Long): DataStream[T] = {
     stream match {
-      case ds: SingleOutputStreamOperator[_, _] => ds.setBufferTimeout(timeoutMillis)
+      case ds: SingleOutputStreamOperator[T] => ds.setBufferTimeout(timeoutMillis)
       case _ =>
         throw new UnsupportedOperationException("Only supported for operators.")
     }

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala
----------------------------------------------------------------------
diff --git a/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala b/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala
index e93b27b..cfa71ea 100644
--- a/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala
+++ b/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/StreamingScalaAPICompletenessTest.scala
@@ -110,7 +110,7 @@ class StreamingScalaAPICompletenessTest extends ScalaAPICompletenessTestBase {
 
     checkMethods(
       "SingleOutputStreamOperator", "DataStream",
-      classOf[org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator[_,_]],
+      classOf[org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator[_]],
       classOf[DataStream[_]])
 
     checkMethods(


[2/2] flink git commit: [FLINK-3548] [api-breaking] Remove unnecessary generic parameter from SingleOutputStreamOperator

Posted by al...@apache.org.
[FLINK-3548] [api-breaking] Remove unnecessary generic parameter from SingleOutputStreamOperator


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

Branch: refs/heads/release-1.0
Commit: 30486905b81e9150b5efdc81defa98513c7032dc
Parents: 74c62b0
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Mon Feb 29 20:20:07 2016 +0100
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Mon Feb 29 21:37:46 2016 +0100

----------------------------------------------------------------------
 .../apache/flink/storm/api/FlinkTopology.java   |  14 +--
 .../api/datastream/AllWindowedStream.java       |  54 +++++-----
 .../api/datastream/ConnectedStreams.java        |  20 ++--
 .../streaming/api/datastream/DataStream.java    |  24 ++---
 .../api/datastream/DataStreamSource.java        |   4 +-
 .../api/datastream/IterativeStream.java         |  17 +--
 .../streaming/api/datastream/KeyedStream.java   |  38 +++----
 .../datastream/SingleOutputStreamOperator.java  |  77 +++-----------
 .../api/datastream/StreamProjection.java        | 104 +++++++++----------
 .../api/datastream/WindowedStream.java          |  54 +++++-----
 .../environment/StreamExecutionEnvironment.java |  12 +--
 .../flink/streaming/api/DataStreamTest.java     |   4 +-
 .../apache/flink/streaming/api/IterateTest.java |   9 +-
 .../flink/streaming/api/TypeFillTest.java       |   2 +-
 .../api/graph/StreamGraphGeneratorTest.java     |  10 +-
 .../flink/streaming/api/scala/DataStream.scala  |  18 ++--
 .../StreamingScalaAPICompletenessTest.scala     |   2 +-
 17 files changed, 211 insertions(+), 252 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkTopology.java
----------------------------------------------------------------------
diff --git a/flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkTopology.java b/flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkTopology.java
index 811cfb4..6706a91 100644
--- a/flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkTopology.java
+++ b/flink-contrib/flink-storm/src/main/java/org/apache/flink/storm/api/FlinkTopology.java
@@ -200,7 +200,7 @@ public class FlinkTopology {
 				SplitStream<SplitStreamType<Tuple>> splitSource = multiSource
 						.split(new StormStreamSelector<Tuple>());
 				for (String streamId : sourceStreams.keySet()) {
-					SingleOutputStreamOperator<Tuple, ?> outStream = splitSource.select(streamId)
+					SingleOutputStreamOperator<Tuple> outStream = splitSource.select(streamId)
 							.map(new SplitStreamMapper<Tuple>());
 					outStream.getTransformation().setOutputType(declarer.getOutputType(streamId));
 					outputStreams.put(streamId, outStream);
@@ -299,7 +299,7 @@ public class FlinkTopology {
 					inputStreams.put(streamId, processInput(boltId, userBolt, streamId, grouping, producer));
 				}
 
-				final SingleOutputStreamOperator<?, ?> outputStream = createOutput(boltId,
+				final SingleOutputStreamOperator<?> outputStream = createOutput(boltId,
 						userBolt, inputStreams);
 
 				if (common.is_set_parallelism_hint()) {
@@ -359,7 +359,7 @@ public class FlinkTopology {
 	}
 
 	@SuppressWarnings({ "unchecked", "rawtypes" })
-	private SingleOutputStreamOperator<?, ?> createOutput(String boltId, IRichBolt bolt,
+	private SingleOutputStreamOperator<?> createOutput(String boltId, IRichBolt bolt,
 			Map<GlobalStreamId, DataStream<Tuple>> inputStreams) {
 		assert (boltId != null);
 		assert (bolt != null);
@@ -403,7 +403,7 @@ public class FlinkTopology {
 		final HashMap<String, Fields> boltOutputs = this.outputStreams.get(boltId);
 		final FlinkOutputFieldsDeclarer declarer = this.declarers.get(boltId);
 
-		final SingleOutputStreamOperator<?, ?> outputStream;
+		final SingleOutputStreamOperator<?> outputStream;
 
 		if (boltOutputs.size() < 2) { // single output stream or sink
 			String outputStreamId;
@@ -415,7 +415,7 @@ public class FlinkTopology {
 
 			final TypeInformation<Tuple> outType = declarer.getOutputType(outputStreamId);
 
-			final SingleOutputStreamOperator<Tuple, ?> outStream;
+			final SingleOutputStreamOperator<Tuple> outStream;
 
 			// only one input
 			if(inputStreams.entrySet().size() == 1) {
@@ -441,7 +441,7 @@ public class FlinkTopology {
 			final TypeInformation<SplitStreamType<Tuple>> outType = (TypeInformation) TypeExtractor
 					.getForClass(SplitStreamType.class);
 
-			final SingleOutputStreamOperator<SplitStreamType<Tuple>, ?> multiStream;
+			final SingleOutputStreamOperator<SplitStreamType<Tuple>> multiStream;
 
 			// only one input
 			if(inputStreams.entrySet().size() == 1) {
@@ -464,7 +464,7 @@ public class FlinkTopology {
 				op.put(outputStreamId,
 						splitStream.select(outputStreamId).map(
 								new SplitStreamMapper<Tuple>()));
-				SingleOutputStreamOperator<Tuple, ?> outStream = splitStream
+				SingleOutputStreamOperator<Tuple> outStream = splitStream
 						.select(outputStreamId).map(new SplitStreamMapper<Tuple>());
 				outStream.getTransformation().setOutputType(declarer.getOutputType(outputStreamId));
 				op.put(outputStreamId, outStream);

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java
index 268dd8c..54c0b86 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java
@@ -134,7 +134,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The reduce function.
 	 * @return The data stream that is the result of applying the reduce function to the window. 
 	 */
-	public SingleOutputStreamOperator<T, ?> reduce(ReduceFunction<T> function) {
+	public SingleOutputStreamOperator<T> reduce(ReduceFunction<T> function) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("ReduceFunction of reduce can not be a RichFunction. " +
 				"Please use apply(ReduceFunction, WindowFunction) instead.");
@@ -146,7 +146,7 @@ public class AllWindowedStream<T, W extends Window> {
 		String callLocation = Utils.getCallLocationName();
 		String udfName = "AllWindowedStream." + callLocation;
 
-		SingleOutputStreamOperator<T, ?> result = createFastTimeOperatorIfValid(function, input.getType(), udfName);
+		SingleOutputStreamOperator<T> result = createFastTimeOperatorIfValid(function, input.getType(), udfName);
 		if (result != null) {
 			return result;
 		}
@@ -182,7 +182,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The fold function.
 	 * @return The data stream that is the result of applying the fold function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> fold(R initialValue, FoldFunction<T, R> function) {
+	public <R> SingleOutputStreamOperator<R> fold(R initialValue, FoldFunction<T, R> function) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("FoldFunction can not be a RichFunction. " +
 				"Please use apply(FoldFunction, WindowFunction) instead.");
@@ -202,7 +202,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The fold function.
 	 * @return The data stream that is the result of applying the fold function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> fold(R initialValue, FoldFunction<T, R> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> fold(R initialValue, FoldFunction<T, R> function, TypeInformation<R> resultType) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("FoldFunction can not be a RichFunction. " +
 				"Please use apply(FoldFunction, WindowFunction) instead.");
@@ -222,7 +222,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The window function.
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(AllWindowFunction<T, R, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(AllWindowFunction<T, R, W> function) {
 		@SuppressWarnings("unchecked, rawtypes")
 		TypeInformation<R> resultType = TypeExtractor.getUnaryOperatorReturnType(
 				function, AllWindowFunction.class, true, true, getInputType(), null, false);
@@ -241,14 +241,14 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The window function.
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(AllWindowFunction<T, R, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(AllWindowFunction<T, R, W> function, TypeInformation<R> resultType) {
 		//clean the closure
 		function = input.getExecutionEnvironment().clean(function);
 
 		String callLocation = Utils.getCallLocationName();
 		String udfName = "AllWindowedStream." + callLocation;
 
-		SingleOutputStreamOperator<R, ?> result = createFastTimeOperatorIfValid(function, resultType, udfName);
+		SingleOutputStreamOperator<R> result = createFastTimeOperatorIfValid(function, resultType, udfName);
 		if (result != null) {
 			return result;
 		}
@@ -290,7 +290,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
 
-	public <R> SingleOutputStreamOperator<R, ?> apply(ReduceFunction<T> preAggregator, AllWindowFunction<T, R, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(ReduceFunction<T> preAggregator, AllWindowFunction<T, R, W> function) {
 		TypeInformation<T> inType = input.getType();
 		TypeInformation<R> resultType = TypeExtractor.getUnaryOperatorReturnType(
 				function, AllWindowFunction.class, true, true, inType, null, false);
@@ -311,7 +311,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param resultType Type information for the result type of the window function
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(ReduceFunction<T> preAggregator, AllWindowFunction<T, R, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(ReduceFunction<T> preAggregator, AllWindowFunction<T, R, W> function, TypeInformation<R> resultType) {
 		if (preAggregator instanceof RichFunction) {
 			throw new UnsupportedOperationException("Pre-aggregator of apply can not be a RichFunction.");
 		}
@@ -359,7 +359,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param function The window function.
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(R initialValue, FoldFunction<T, R> foldFunction, AllWindowFunction<R, R, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(R initialValue, FoldFunction<T, R> foldFunction, AllWindowFunction<R, R, W> function) {
 		TypeInformation<R> resultType = TypeExtractor.getFoldReturnTypes(foldFunction, input.getType(),
 			Utils.getCallLocationName(), true);
 
@@ -380,7 +380,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param resultType Type information for the result type of the window function
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(R initialValue, FoldFunction<T, R> foldFunction, AllWindowFunction<R, R, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(R initialValue, FoldFunction<T, R> foldFunction, AllWindowFunction<R, R, W> function, TypeInformation<R> resultType) {
 		if (foldFunction instanceof RichFunction) {
 			throw new UnsupportedOperationException("ReduceFunction of apply can not be a RichFunction.");
 		}
@@ -430,7 +430,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param positionToSum The position in the tuple/array to sum
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(int positionToSum) {
+	public SingleOutputStreamOperator<T> sum(int positionToSum) {
 		return aggregate(new SumAggregator<>(positionToSum, input.getType(), input.getExecutionConfig()));
 	}
 
@@ -447,7 +447,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param field The field to sum
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(String field) {
+	public SingleOutputStreamOperator<T> sum(String field) {
 		return aggregate(new SumAggregator<>(field, input.getType(), input.getExecutionConfig()));
 	}
 
@@ -458,7 +458,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param positionToMin The position to minimize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(int positionToMin) {
+	public SingleOutputStreamOperator<T> min(int positionToMin) {
 		return aggregate(new ComparableAggregator<>(positionToMin, input.getType(), AggregationFunction.AggregationType.MIN, input.getExecutionConfig()));
 	}
 
@@ -475,7 +475,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param field The field expression based on which the aggregation will be applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(String field) {
+	public SingleOutputStreamOperator<T> min(String field) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MIN, false, input.getExecutionConfig()));
 	}
 
@@ -488,7 +488,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 *            The position to minimize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -500,7 +500,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param positionToMinBy The position to minimize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(String positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(String positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -514,7 +514,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param first If true, then the operator return the first element with the minimum value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy, boolean first) {
 		return aggregate(new ComparableAggregator<>(positionToMinBy, input.getType(), AggregationFunction.AggregationType.MINBY, first, input.getExecutionConfig()));
 	}
 
@@ -529,7 +529,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param first If True then in case of field equality the first object will be returned
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MINBY, first, input.getExecutionConfig()));
 	}
 
@@ -540,7 +540,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param positionToMax The position to maximize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(int positionToMax) {
+	public SingleOutputStreamOperator<T> max(int positionToMax) {
 		return aggregate(new ComparableAggregator<>(positionToMax, input.getType(), AggregationFunction.AggregationType.MAX, input.getExecutionConfig()));
 	}
 
@@ -554,7 +554,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param field The field expression based on which the aggregation will be applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(String field) {
+	public SingleOutputStreamOperator<T> max(String field) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MAX, false, input.getExecutionConfig()));
 	}
 
@@ -567,7 +567,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 *            The position to maximize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -580,7 +580,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 *            The position to maximize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -594,7 +594,7 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param first If true, then the operator return the first element with the maximum value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy, boolean first) {
 		return aggregate(new ComparableAggregator<>(positionToMaxBy, input.getType(), AggregationFunction.AggregationType.MAXBY, first, input.getExecutionConfig()));
 	}
 
@@ -609,11 +609,11 @@ public class AllWindowedStream<T, W extends Window> {
 	 * @param first If True then in case of field equality the first object will be returned
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MAXBY, first, input.getExecutionConfig()));
 	}
 
-	private SingleOutputStreamOperator<T, ?> aggregate(AggregationFunction<T> aggregator) {
+	private SingleOutputStreamOperator<T> aggregate(AggregationFunction<T> aggregator) {
 		return reduce(aggregator);
 	}
 
@@ -622,7 +622,7 @@ public class AllWindowedStream<T, W extends Window> {
 	// ------------------------------------------------------------------------
 
 
-	private <R> SingleOutputStreamOperator<R, ?> createFastTimeOperatorIfValid(
+	private <R> SingleOutputStreamOperator<R> createFastTimeOperatorIfValid(
 			Function function,
 			TypeInformation<R> resultType,
 			String functionName) {

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java
index 8a29995..50ef95b 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java
@@ -197,9 +197,9 @@ public class ConnectedStreams<IN1, IN2> {
 	 * @param coMapper The CoMapFunction used to jointly transform the two input DataStreams
 	 * @return The transformed {@link DataStream}
 	 */
-	public <OUT> SingleOutputStreamOperator<OUT, ?> map(CoMapFunction<IN1, IN2, OUT> coMapper) {
+	public <R> SingleOutputStreamOperator<R> map(CoMapFunction<IN1, IN2, R> coMapper) {
 
-		TypeInformation<OUT> outTypeInfo = TypeExtractor.getBinaryOperatorReturnType(coMapper,
+		TypeInformation<R> outTypeInfo = TypeExtractor.getBinaryOperatorReturnType(coMapper,
 				CoMapFunction.class, false, true, getType1(), getType2(),
 				Utils.getCallLocationName(), true);
 
@@ -220,10 +220,10 @@ public class ConnectedStreams<IN1, IN2> {
 	 *            DataStreams
 	 * @return The transformed {@link DataStream}
 	 */
-	public <OUT> SingleOutputStreamOperator<OUT, ?> flatMap(
-			CoFlatMapFunction<IN1, IN2, OUT> coFlatMapper) {
+	public <R> SingleOutputStreamOperator<R> flatMap(
+			CoFlatMapFunction<IN1, IN2, R> coFlatMapper) {
 
-		TypeInformation<OUT> outTypeInfo = TypeExtractor.getBinaryOperatorReturnType(coFlatMapper,
+		TypeInformation<R> outTypeInfo = TypeExtractor.getBinaryOperatorReturnType(coFlatMapper,
 				CoFlatMapFunction.class, false, true, getType1(), getType2(),
 				Utils.getCallLocationName(), true);
 
@@ -231,15 +231,15 @@ public class ConnectedStreams<IN1, IN2> {
 	}
 
 	@PublicEvolving
-	public <OUT> SingleOutputStreamOperator<OUT, ?> transform(String functionName,
-			TypeInformation<OUT> outTypeInfo,
-			TwoInputStreamOperator<IN1, IN2, OUT> operator) {
+	public <R> SingleOutputStreamOperator<R> transform(String functionName,
+			TypeInformation<R> outTypeInfo,
+			TwoInputStreamOperator<IN1, IN2, R> operator) {
 
 		// read the output type of the input Transforms to coax out errors about MissingTypeInfo
 		inputStream1.getType();
 		inputStream2.getType();
 
-		TwoInputTransformation<IN1, IN2, OUT> transform = new TwoInputTransformation<>(
+		TwoInputTransformation<IN1, IN2, R> transform = new TwoInputTransformation<>(
 				inputStream1.getTransformation(),
 				inputStream2.getTransformation(),
 				functionName,
@@ -263,7 +263,7 @@ public class ConnectedStreams<IN1, IN2> {
 		}
 
 		@SuppressWarnings({ "unchecked", "rawtypes" })
-		SingleOutputStreamOperator<OUT, ?> returnStream = new SingleOutputStreamOperator(environment, transform);
+		SingleOutputStreamOperator<R> returnStream = new SingleOutputStreamOperator(environment, transform);
 
 		getExecutionEnvironment().addOperator(transform);
 

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java
index d1a2115..aa41d51 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java
@@ -98,11 +98,11 @@ import com.google.common.base.Preconditions;
  * can be transformed into another DataStream by applying a transformation as
  * for example:
  * <ul>
- * <li>{@link DataStream#map},
- * <li>{@link DataStream#filter}, or
+ * <li>{@link DataStream#map}
+ * <li>{@link DataStream#filter}
  * </ul>
  *
- * @param <T> The type of the elements in this Stream
+ * @param <T> The type of the elements in this stream.
  */
 @Public
 public class DataStream<T> {
@@ -500,7 +500,7 @@ public class DataStream<T> {
 	 *            output type
 	 * @return The transformed {@link DataStream}.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> map(MapFunction<T, R> mapper) {
+	public <R> SingleOutputStreamOperator<R> map(MapFunction<T, R> mapper) {
 
 		TypeInformation<R> outType = TypeExtractor.getMapReturnTypes(clean(mapper), getType(),
 				Utils.getCallLocationName(), true);
@@ -524,7 +524,7 @@ public class DataStream<T> {
 	 *            output type
 	 * @return The transformed {@link DataStream}.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> flatMap(FlatMapFunction<T, R> flatMapper) {
+	public <R> SingleOutputStreamOperator<R> flatMap(FlatMapFunction<T, R> flatMapper) {
 
 		TypeInformation<R> outType = TypeExtractor.getFlatMapReturnTypes(clean(flatMapper),
 				getType(), Utils.getCallLocationName(), true);
@@ -547,7 +547,7 @@ public class DataStream<T> {
 	 *            DataStream.
 	 * @return The filtered DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> filter(FilterFunction<T> filter) {
+	public SingleOutputStreamOperator<T> filter(FilterFunction<T> filter) {
 		return transform("Filter", getType(), new StreamFilter<>(clean(filter)));
 
 	}
@@ -570,7 +570,7 @@ public class DataStream<T> {
 	 * @see DataStream
 	 */
 	@PublicEvolving
-	public <R extends Tuple> SingleOutputStreamOperator<R, ?> project(int... fieldIndexes) {
+	public <R extends Tuple> SingleOutputStreamOperator<R> project(int... fieldIndexes) {
 		return new StreamProjection<>(this, fieldIndexes).projectTupleX();
 	}
 
@@ -717,7 +717,7 @@ public class DataStream<T> {
 	 * @see #assignTimestampsAndWatermarks(AssignerWithPunctuatedWatermarks)
 	 */
 	@Deprecated
-	public SingleOutputStreamOperator<T, ?> assignTimestamps(TimestampExtractor<T> extractor) {
+	public SingleOutputStreamOperator<T> assignTimestamps(TimestampExtractor<T> extractor) {
 		// match parallelism to input, otherwise dop=1 sources could lead to some strange
 		// behaviour: the watermark will creep along very slowly because the elements
 		// from the source go to each extraction operator round robin.
@@ -753,7 +753,7 @@ public class DataStream<T> {
 	 * @see AssignerWithPunctuatedWatermarks
 	 * @see #assignTimestampsAndWatermarks(AssignerWithPunctuatedWatermarks) 
 	 */
-	public SingleOutputStreamOperator<T, ?> assignTimestampsAndWatermarks(
+	public SingleOutputStreamOperator<T> assignTimestampsAndWatermarks(
 			AssignerWithPeriodicWatermarks<T> timestampAndWatermarkAssigner) {
 		
 		// match parallelism to input, otherwise dop=1 sources could lead to some strange
@@ -796,7 +796,7 @@ public class DataStream<T> {
 	 * @see AssignerWithPeriodicWatermarks
 	 * @see #assignTimestampsAndWatermarks(AssignerWithPeriodicWatermarks)
 	 */
-	public SingleOutputStreamOperator<T, ?> assignTimestampsAndWatermarks(
+	public SingleOutputStreamOperator<T> assignTimestampsAndWatermarks(
 			AssignerWithPunctuatedWatermarks<T> timestampAndWatermarkAssigner) {
 		
 		// match parallelism to input, otherwise dop=1 sources could lead to some strange
@@ -1017,7 +1017,7 @@ public class DataStream<T> {
 	 * @return the data stream constructed
 	 */
 	@PublicEvolving
-	public <R> SingleOutputStreamOperator<R, ?> transform(String operatorName, TypeInformation<R> outTypeInfo, OneInputStreamOperator<T, R> operator) {
+	public <R> SingleOutputStreamOperator<R> transform(String operatorName, TypeInformation<R> outTypeInfo, OneInputStreamOperator<T, R> operator) {
 
 		// read the output type of the input Transform to coax out errors about MissingTypeInfo
 		transformation.getOutputType();
@@ -1030,7 +1030,7 @@ public class DataStream<T> {
 				environment.getParallelism());
 
 		@SuppressWarnings({ "unchecked", "rawtypes" })
-		SingleOutputStreamOperator<R, ?> returnStream = new SingleOutputStreamOperator(environment, resultTransform);
+		SingleOutputStreamOperator<R> returnStream = new SingleOutputStreamOperator(environment, resultTransform);
 
 		getExecutionEnvironment().addOperator(resultTransform);
 

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSource.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSource.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSource.java
index 9f8c6a1..21ad762 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSource.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/DataStreamSource.java
@@ -29,14 +29,14 @@ import org.apache.flink.streaming.api.transformations.SourceTransformation;
  * @param <T> Type of the elements in the DataStream created from the this source.
  */
 @Public
-public class DataStreamSource<T> extends SingleOutputStreamOperator<T, DataStreamSource<T>> {
+public class DataStreamSource<T> extends SingleOutputStreamOperator<T> {
 
 	boolean isParallel;
 
 	public DataStreamSource(StreamExecutionEnvironment environment,
 			TypeInformation<T> outTypeInfo, StreamSource<T, ?> operator,
 			boolean isParallel, String sourceName) {
-		super(environment, new SourceTransformation<T>(sourceName, operator, outTypeInfo, environment.getParallelism()));
+		super(environment, new SourceTransformation<>(sourceName, operator, outTypeInfo, environment.getParallelism()));
 
 		this.isParallel = isParallel;
 		if (!isParallel) {

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/IterativeStream.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/IterativeStream.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/IterativeStream.java
index ab608e0..0698725 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/IterativeStream.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/IterativeStream.java
@@ -35,7 +35,7 @@ import java.util.Collection;
  * @param <T> Type of the elements in this Stream
  */
 @PublicEvolving
-public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeStream<T>> {
+public class IterativeStream<T> extends SingleOutputStreamOperator<T> {
 
 	// We store these so that we can create a co-iteration if we need to
 	private DataStream<T> originalInput;
@@ -43,7 +43,7 @@ public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeS
 	
 	protected IterativeStream(DataStream<T> dataStream, long maxWaitTime) {
 		super(dataStream.getExecutionEnvironment(),
-				new FeedbackTransformation<T>(dataStream.getTransformation(), maxWaitTime));
+				new FeedbackTransformation<>(dataStream.getTransformation(), maxWaitTime));
 		this.originalInput = dataStream;
 		this.maxWaitTime = maxWaitTime;
 		setBufferTimeout(dataStream.environment.getBufferTimeout());
@@ -126,7 +126,7 @@ public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeS
 	 * @return A {@link ConnectedIterativeStreams}.
 	 */
 	public <F> ConnectedIterativeStreams<T, F> withFeedbackType(TypeInformation<F> feedbackType) {
-		return new ConnectedIterativeStreams<T, F>(originalInput, feedbackType, maxWaitTime);
+		return new ConnectedIterativeStreams<>(originalInput, feedbackType, maxWaitTime);
 	}
 	
 	/**
@@ -155,8 +155,8 @@ public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeS
 				long waitTime) {
 			super(input.getExecutionEnvironment(),
 					input,
-					new DataStream<F>(input.getExecutionEnvironment(),
-							new CoFeedbackTransformation<F>(input.getParallelism(),
+					new DataStream<>(input.getExecutionEnvironment(),
+							new CoFeedbackTransformation<>(input.getParallelism(),
 									feedbackType,
 									waitTime)));
 			this.coFeedbackTransformation = (CoFeedbackTransformation<F>) getSecondInput().getTransformation();
@@ -173,7 +173,6 @@ public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeS
 		 * @return The feedback stream.
 		 * 
 		 */
-		@SuppressWarnings({ "rawtypes", "unchecked" })
 		public DataStream<F> closeWith(DataStream<F> feedbackStream) {
 
 			Collection<StreamTransformation<?>> predecessors = feedbackStream.getTransformation().getTransitivePredecessors();
@@ -188,8 +187,10 @@ public class IterativeStream<T> extends SingleOutputStreamOperator<T, IterativeS
 			return feedbackStream;
 		}
 		
-		private UnsupportedOperationException groupingException = new UnsupportedOperationException(
-				"Cannot change the input partitioning of an iteration head directly. Apply the partitioning on the input and feedback streams instead.");
+		private UnsupportedOperationException groupingException =
+				new UnsupportedOperationException("Cannot change the input partitioning of an" +
+						"iteration head directly. Apply the partitioning on the input and" +
+						"feedback streams instead.");
 		
 		@Override
 		public ConnectedStreams<I, F> keyBy(int[] keyPositions1, int[] keyPositions2) {throw groupingException;}

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java
index 37941e1..cbf115b 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java
@@ -136,10 +136,10 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	
 	@Override
 	@PublicEvolving
-	public <R> SingleOutputStreamOperator<R, ?> transform(String operatorName,
+	public <R> SingleOutputStreamOperator<R> transform(String operatorName,
 			TypeInformation<R> outTypeInfo, OneInputStreamOperator<T, R> operator) {
 
-		SingleOutputStreamOperator<R, ?> returnStream = super.transform(operatorName, outTypeInfo,operator);
+		SingleOutputStreamOperator<R> returnStream = super.transform(operatorName, outTypeInfo,operator);
 
 		// inject the key selector and key type
 		OneInputTransformation<T, R> transform = (OneInputTransformation<T, R>) returnStream.getTransformation();
@@ -253,7 +253,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            element of the input values with the same key.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> reduce(ReduceFunction<T> reducer) {
+	public SingleOutputStreamOperator<T> reduce(ReduceFunction<T> reducer) {
 		return transform("Keyed Reduce", getType(), new StreamGroupedReduce<T>(
 				clean(reducer), getType().createSerializer(getExecutionConfig())));
 	}
@@ -271,7 +271,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The initialValue passed to the folders for each key.
 	 * @return The transformed DataStream.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> fold(R initialValue, FoldFunction<T, R> folder) {
+	public <R> SingleOutputStreamOperator<R> fold(R initialValue, FoldFunction<T, R> folder) {
 
 		TypeInformation<R> outType = TypeExtractor.getFoldReturnTypes(
 				clean(folder), getType(), Utils.getCallLocationName(), true);
@@ -288,7 +288,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to sum
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(int positionToSum) {
+	public SingleOutputStreamOperator<T> sum(int positionToSum) {
 		return aggregate(new SumAggregator<>(positionToSum, getType(), getExecutionConfig()));
 	}
 
@@ -305,7 +305,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(String field) {
+	public SingleOutputStreamOperator<T> sum(String field) {
 		return aggregate(new SumAggregator<>(field, getType(), getExecutionConfig()));
 	}
 
@@ -318,7 +318,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to minimize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(int positionToMin) {
+	public SingleOutputStreamOperator<T> min(int positionToMin) {
 		return aggregate(new ComparableAggregator<>(positionToMin, getType(), AggregationFunction.AggregationType.MIN,
 				getExecutionConfig()));
 	}
@@ -336,7 +336,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(String field) {
+	public SingleOutputStreamOperator<T> min(String field) {
 		return aggregate(new ComparableAggregator<>(field, getType(), AggregationFunction.AggregationType.MIN,
 				false, getExecutionConfig()));
 	}
@@ -350,7 +350,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to maximize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(int positionToMax) {
+	public SingleOutputStreamOperator<T> max(int positionToMax) {
 		return aggregate(new ComparableAggregator<>(positionToMax, getType(), AggregationFunction.AggregationType.MAX,
 				getExecutionConfig()));
 	}
@@ -368,7 +368,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(String field) {
+	public SingleOutputStreamOperator<T> max(String field) {
 		return aggregate(new ComparableAggregator<>(field, getType(), AggregationFunction.AggregationType.MAX,
 				false, getExecutionConfig()));
 	}
@@ -390,7 +390,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 * @return The transformed DataStream.
 	 */
 	@SuppressWarnings({ "rawtypes", "unchecked" })
-	public SingleOutputStreamOperator<T, ?> minBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator(field, getType(), AggregationFunction.AggregationType.MINBY,
 				first, getExecutionConfig()));
 	}
@@ -411,7 +411,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            be returned
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator<>(field, getType(), AggregationFunction.AggregationType.MAXBY,
 				first, getExecutionConfig()));
 	}
@@ -426,7 +426,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to minimize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -440,7 +440,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to minimize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(String positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(String positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -458,7 +458,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            minimal value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy, boolean first) {
 		return aggregate(new ComparableAggregator<T>(positionToMinBy, getType(), AggregationFunction.AggregationType.MINBY, first,
 				getExecutionConfig()));
 	}
@@ -473,7 +473,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to maximize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -487,7 +487,7 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            The position in the data point to maximize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -505,12 +505,12 @@ public class KeyedStream<T, KEY> extends DataStream<T> {
 	 *            maximum value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy, boolean first) {
 		return aggregate(new ComparableAggregator<>(positionToMaxBy, getType(), AggregationFunction.AggregationType.MAXBY, first,
 				getExecutionConfig()));
 	}
 
-	protected SingleOutputStreamOperator<T, ?> aggregate(AggregationFunction<T> aggregate) {
+	protected SingleOutputStreamOperator<T> aggregate(AggregationFunction<T> aggregate) {
 		StreamGroupedReduce<T> operator = new StreamGroupedReduce<T>(
 				clean(aggregate), getType().createSerializer(getExecutionConfig()));
 		return transform("Keyed Aggregation", getType(), operator);

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java
index e674b71..5846c26 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java
@@ -30,14 +30,13 @@ import org.apache.flink.streaming.api.transformations.StreamTransformation;
 import org.apache.flink.streaming.runtime.partitioner.StreamPartitioner;
 
 /**
- * The SingleOutputStreamOperator represents a user defined transformation
+ * {@code SingleOutputStreamOperator} represents a user defined transformation
  * applied on a {@link DataStream} with one predefined output type.
  *
- * @param <T> The type of the elements in this Stream
- * @param <O> Type of the operator.
+ * @param <T> The type of the elements in this stream.
  */
 @Public
-public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<T, O>> extends DataStream<T> {
+public class SingleOutputStreamOperator<T> extends DataStream<T> {
 
 	protected SingleOutputStreamOperator(StreamExecutionEnvironment environment, StreamTransformation<T> transformation) {
 		super(environment, transformation);
@@ -59,7 +58,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 *
 	 * @return The named operator.
 	 */
-	public SingleOutputStreamOperator<T, O> name(String name){
+	public SingleOutputStreamOperator<T> name(String name){
 		transformation.setName(name);
 		return this;
 	}
@@ -77,7 +76,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @return The operator with the specified ID.
 	 */
 	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> uid(String uid) {
+	public SingleOutputStreamOperator<T> uid(String uid) {
 		transformation.setUid(uid);
 		return this;
 	}
@@ -89,7 +88,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 *            The parallelism for this operator.
 	 * @return The operator with set parallelism.
 	 */
-	public SingleOutputStreamOperator<T, O> setParallelism(int parallelism) {
+	public SingleOutputStreamOperator<T> setParallelism(int parallelism) {
 		if (parallelism < 1) {
 			throw new IllegalArgumentException("The parallelism of an operator must be at least 1.");
 		}
@@ -107,50 +106,11 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 *            The maximum time between two output flushes.
 	 * @return The operator with buffer timeout set.
 	 */
-	public SingleOutputStreamOperator<T, O> setBufferTimeout(long timeoutMillis) {
+	public SingleOutputStreamOperator<T> setBufferTimeout(long timeoutMillis) {
 		transformation.setBufferTimeout(timeoutMillis);
 		return this;
 	}
 
-	@SuppressWarnings("unchecked")
-	@Override
-	public SingleOutputStreamOperator<T, O> broadcast() {
-		return (SingleOutputStreamOperator<T, O>) super.broadcast();
-	}
-
-	@SuppressWarnings("unchecked")
-	@Override
-	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> shuffle() {
-		return (SingleOutputStreamOperator<T, O>) super.shuffle();
-	}
-
-	@SuppressWarnings("unchecked")
-	@Override
-	public SingleOutputStreamOperator<T, O> forward() {
-		return (SingleOutputStreamOperator<T, O>) super.forward();
-	}
-
-	@SuppressWarnings("unchecked")
-	@Override
-	public SingleOutputStreamOperator<T, O> rebalance() {
-		return (SingleOutputStreamOperator<T, O>) super.rebalance();
-	}
-
-	@SuppressWarnings("unchecked")
-	@Override
-	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> rescale() {
-		return (SingleOutputStreamOperator<T, O>) super.rescale();
-	}
-
-	@SuppressWarnings("unchecked")
-	@Override
-	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> global() {
-		return (SingleOutputStreamOperator<T, O>) super.global();
-	}
-
 	/**
 	 * Sets the {@link ChainingStrategy} for the given operator affecting the
 	 * way operators will possibly be co-located on the same thread for
@@ -161,7 +121,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @return The operator with the modified chaining strategy
 	 */
 	@PublicEvolving
-	private SingleOutputStreamOperator<T, O> setChainingStrategy(ChainingStrategy strategy) {
+	private SingleOutputStreamOperator<T> setChainingStrategy(ChainingStrategy strategy) {
 		this.transformation.setChainingStrategy(strategy);
 		return this;
 	}
@@ -176,7 +136,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @return The operator with chaining disabled
 	 */
 	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> disableChaining() {
+	public SingleOutputStreamOperator<T> disableChaining() {
 		return setChainingStrategy(ChainingStrategy.NEVER);
 	}
 
@@ -188,7 +148,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @return The operator with chaining set.
 	 */
 	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> startNewChain() {
+	public SingleOutputStreamOperator<T> startNewChain() {
 		return setChainingStrategy(ChainingStrategy.HEAD);
 	}
 
@@ -227,7 +187,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 *            type information string to be parsed
 	 * @return This operator with a given return type hint.
 	 */
-	public O returns(String typeInfoString) {
+	public SingleOutputStreamOperator<T> returns(String typeInfoString) {
 		if (typeInfoString == null) {
 			throw new IllegalArgumentException("Type information string must not be null.");
 		}
@@ -254,18 +214,15 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * <li>etc.</li>
 	 * </ul>
 	 *
-	 * @param typeInfo
-	 *            type information as a return type hint
+	 * @param typeInfo type information as a return type hint
 	 * @return This operator with a given return type hint.
 	 */
-	public O returns(TypeInformation<T> typeInfo) {
+	public SingleOutputStreamOperator<T> returns(TypeInformation<T> typeInfo) {
 		if (typeInfo == null) {
 			throw new IllegalArgumentException("Type information must not be null.");
 		}
 		transformation.setOutputType(typeInfo);
-		@SuppressWarnings("unchecked")
-		O returnType = (O) this;
-		return returnType;
+		return this;
 	}
 	
 	/**
@@ -292,7 +249,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @return This operator with a given return type hint.
 	 */
 	@SuppressWarnings("unchecked")
-	public O returns(Class<T> typeClass) {
+	public SingleOutputStreamOperator<T> returns(Class<T> typeClass) {
 		if (typeClass == null) {
 			throw new IllegalArgumentException("Type class must not be null.");
 		}
@@ -308,7 +265,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 
 	@Override
 	protected DataStream<T> setConnectionType(StreamPartitioner<T> partitioner) {
-		return new SingleOutputStreamOperator<T, O>(this.getExecutionEnvironment(), new PartitionTransformation<T>(this.getTransformation(), partitioner));
+		return new SingleOutputStreamOperator<>(this.getExecutionEnvironment(), new PartitionTransformation<>(this.getTransformation(), partitioner));
 	}
 
 	/**
@@ -325,7 +282,7 @@ public class SingleOutputStreamOperator<T, O extends SingleOutputStreamOperator<
 	 * @param slotSharingGroup The slot sharing group name.
 	 */
 	@PublicEvolving
-	public SingleOutputStreamOperator<T, O> slotSharingGroup(String slotSharingGroup) {
+	public SingleOutputStreamOperator<T> slotSharingGroup(String slotSharingGroup) {
 		transformation.setSlotSharingGroup(slotSharingGroup);
 		return this;
 	}

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java
index 4f1a68b..0392aa4 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java
@@ -84,35 +84,35 @@ public class StreamProjection<IN> {
 	 * @see org.apache.flink.api.java.operators.ProjectOperator.Projection
 	 */
 	@SuppressWarnings("unchecked")
-	public <OUT extends Tuple> SingleOutputStreamOperator<OUT, ?> projectTupleX() {
-		SingleOutputStreamOperator<OUT, ?> projOperator = null;
+	public <OUT extends Tuple> SingleOutputStreamOperator<OUT> projectTupleX() {
+		SingleOutputStreamOperator<OUT> projOperator = null;
 
 		switch (fieldIndexes.length) {
-			case 1: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple1(); break;
-			case 2: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple2(); break;
-			case 3: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple3(); break;
-			case 4: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple4(); break;
-			case 5: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple5(); break;
-			case 6: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple6(); break;
-			case 7: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple7(); break;
-			case 8: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple8(); break;
-			case 9: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple9(); break;
-			case 10: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple10(); break;
-			case 11: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple11(); break;
-			case 12: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple12(); break;
-			case 13: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple13(); break;
-			case 14: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple14(); break;
-			case 15: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple15(); break;
-			case 16: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple16(); break;
-			case 17: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple17(); break;
-			case 18: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple18(); break;
-			case 19: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple19(); break;
-			case 20: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple20(); break;
-			case 21: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple21(); break;
-			case 22: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple22(); break;
-			case 23: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple23(); break;
-			case 24: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple24(); break;
-			case 25: projOperator = (SingleOutputStreamOperator<OUT, ?>) projectTuple25(); break;
+			case 1: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple1(); break;
+			case 2: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple2(); break;
+			case 3: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple3(); break;
+			case 4: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple4(); break;
+			case 5: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple5(); break;
+			case 6: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple6(); break;
+			case 7: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple7(); break;
+			case 8: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple8(); break;
+			case 9: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple9(); break;
+			case 10: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple10(); break;
+			case 11: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple11(); break;
+			case 12: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple12(); break;
+			case 13: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple13(); break;
+			case 14: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple14(); break;
+			case 15: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple15(); break;
+			case 16: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple16(); break;
+			case 17: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple17(); break;
+			case 18: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple18(); break;
+			case 19: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple19(); break;
+			case 20: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple20(); break;
+			case 21: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple21(); break;
+			case 22: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple22(); break;
+			case 23: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple23(); break;
+			case 24: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple24(); break;
+			case 25: projOperator = (SingleOutputStreamOperator<OUT>) projectTuple25(); break;
 			default:
 				throw new IllegalStateException("Excessive arity in tuple.");
 		}
@@ -127,7 +127,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0> SingleOutputStreamOperator<Tuple1<T0>, ?> projectTuple1() {
+	public <T0> SingleOutputStreamOperator<Tuple1<T0>> projectTuple1() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple1<T0>> tType = new TupleTypeInfo<Tuple1<T0>>(fTypes);
 
@@ -142,7 +142,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1> SingleOutputStreamOperator<Tuple2<T0, T1>, ?> projectTuple2() {
+	public <T0, T1> SingleOutputStreamOperator<Tuple2<T0, T1>> projectTuple2() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple2<T0, T1>> tType = new TupleTypeInfo<Tuple2<T0, T1>>(fTypes);
 
@@ -156,7 +156,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2> SingleOutputStreamOperator<Tuple3<T0, T1, T2>, ?> projectTuple3() {
+	public <T0, T1, T2> SingleOutputStreamOperator<Tuple3<T0, T1, T2>> projectTuple3() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple3<T0, T1, T2>> tType = new TupleTypeInfo<Tuple3<T0, T1, T2>>(fTypes);
 
@@ -170,7 +170,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3> SingleOutputStreamOperator<Tuple4<T0, T1, T2, T3>, ?> projectTuple4() {
+	public <T0, T1, T2, T3> SingleOutputStreamOperator<Tuple4<T0, T1, T2, T3>> projectTuple4() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple4<T0, T1, T2, T3>> tType = new TupleTypeInfo<Tuple4<T0, T1, T2, T3>>(fTypes);
 
@@ -184,7 +184,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4> SingleOutputStreamOperator<Tuple5<T0, T1, T2, T3, T4>, ?> projectTuple5() {
+	public <T0, T1, T2, T3, T4> SingleOutputStreamOperator<Tuple5<T0, T1, T2, T3, T4>> projectTuple5() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple5<T0, T1, T2, T3, T4>> tType = new TupleTypeInfo<Tuple5<T0, T1, T2, T3, T4>>(fTypes);
 
@@ -198,7 +198,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5> SingleOutputStreamOperator<Tuple6<T0, T1, T2, T3, T4, T5>, ?> projectTuple6() {
+	public <T0, T1, T2, T3, T4, T5> SingleOutputStreamOperator<Tuple6<T0, T1, T2, T3, T4, T5>> projectTuple6() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple6<T0, T1, T2, T3, T4, T5>> tType = new TupleTypeInfo<Tuple6<T0, T1, T2, T3, T4, T5>>(fTypes);
 
@@ -212,7 +212,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6> SingleOutputStreamOperator<Tuple7<T0, T1, T2, T3, T4, T5, T6>, ?> projectTuple7() {
+	public <T0, T1, T2, T3, T4, T5, T6> SingleOutputStreamOperator<Tuple7<T0, T1, T2, T3, T4, T5, T6>> projectTuple7() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple7<T0, T1, T2, T3, T4, T5, T6>> tType = new TupleTypeInfo<Tuple7<T0, T1, T2, T3, T4, T5, T6>>(fTypes);
 
@@ -226,7 +226,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7> SingleOutputStreamOperator<Tuple8<T0, T1, T2, T3, T4, T5, T6, T7>, ?> projectTuple8() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7> SingleOutputStreamOperator<Tuple8<T0, T1, T2, T3, T4, T5, T6, T7>> projectTuple8() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple8<T0, T1, T2, T3, T4, T5, T6, T7>> tType = new TupleTypeInfo<Tuple8<T0, T1, T2, T3, T4, T5, T6, T7>>(fTypes);
 
@@ -240,7 +240,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8> SingleOutputStreamOperator<Tuple9<T0, T1, T2, T3, T4, T5, T6, T7, T8>, ?> projectTuple9() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8> SingleOutputStreamOperator<Tuple9<T0, T1, T2, T3, T4, T5, T6, T7, T8>> projectTuple9() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple9<T0, T1, T2, T3, T4, T5, T6, T7, T8>> tType = new TupleTypeInfo<Tuple9<T0, T1, T2, T3, T4, T5, T6, T7, T8>>(fTypes);
 
@@ -254,7 +254,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> SingleOutputStreamOperator<Tuple10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>, ?> projectTuple10() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> SingleOutputStreamOperator<Tuple10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>> projectTuple10() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>> tType = new TupleTypeInfo<Tuple10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>>(fTypes);
 
@@ -268,7 +268,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> SingleOutputStreamOperator<Tuple11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, ?> projectTuple11() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> SingleOutputStreamOperator<Tuple11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> projectTuple11() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>> tType = new TupleTypeInfo<Tuple11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>>(fTypes);
 
@@ -282,7 +282,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> SingleOutputStreamOperator<Tuple12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>, ?> projectTuple12() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> SingleOutputStreamOperator<Tuple12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> projectTuple12() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>> tType = new TupleTypeInfo<Tuple12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>>(fTypes);
 
@@ -296,7 +296,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> SingleOutputStreamOperator<Tuple13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, ?> projectTuple13() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> SingleOutputStreamOperator<Tuple13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> projectTuple13() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> tType = new TupleTypeInfo<Tuple13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>(fTypes);
 
@@ -310,7 +310,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> SingleOutputStreamOperator<Tuple14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, ?> projectTuple14() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> SingleOutputStreamOperator<Tuple14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> projectTuple14() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> tType = new TupleTypeInfo<Tuple14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>>(fTypes);
 
@@ -324,7 +324,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> SingleOutputStreamOperator<Tuple15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>, ?> projectTuple15() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> SingleOutputStreamOperator<Tuple15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> projectTuple15() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> tType = new TupleTypeInfo<Tuple15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>>(fTypes);
 
@@ -338,7 +338,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> SingleOutputStreamOperator<Tuple16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>, ?> projectTuple16() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> SingleOutputStreamOperator<Tuple16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> projectTuple16() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> tType = new TupleTypeInfo<Tuple16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>>(fTypes);
 
@@ -352,7 +352,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SingleOutputStreamOperator<Tuple17<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>, ?> projectTuple17() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> SingleOutputStreamOperator<Tuple17<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> projectTuple17() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple17<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> tType = new TupleTypeInfo<Tuple17<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>>(fTypes);
 
@@ -366,7 +366,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> SingleOutputStreamOperator<Tuple18<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>, ?> projectTuple18() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> SingleOutputStreamOperator<Tuple18<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> projectTuple18() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple18<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> tType = new TupleTypeInfo<Tuple18<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>>(fTypes);
 
@@ -380,7 +380,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> SingleOutputStreamOperator<Tuple19<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>, ?> projectTuple19() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> SingleOutputStreamOperator<Tuple19<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> projectTuple19() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple19<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> tType = new TupleTypeInfo<Tuple19<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>>(fTypes);
 
@@ -394,7 +394,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> SingleOutputStreamOperator<Tuple20<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>, ?> projectTuple20() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> SingleOutputStreamOperator<Tuple20<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> projectTuple20() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple20<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> tType = new TupleTypeInfo<Tuple20<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>>(fTypes);
 
@@ -408,7 +408,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> SingleOutputStreamOperator<Tuple21<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>, ?> projectTuple21() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> SingleOutputStreamOperator<Tuple21<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> projectTuple21() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple21<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> tType = new TupleTypeInfo<Tuple21<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>>(fTypes);
 
@@ -422,7 +422,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> SingleOutputStreamOperator<Tuple22<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>, ?> projectTuple22() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> SingleOutputStreamOperator<Tuple22<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> projectTuple22() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple22<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> tType = new TupleTypeInfo<Tuple22<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>>(fTypes);
 
@@ -436,7 +436,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> SingleOutputStreamOperator<Tuple23<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>, ?> projectTuple23() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> SingleOutputStreamOperator<Tuple23<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> projectTuple23() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple23<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> tType = new TupleTypeInfo<Tuple23<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>>(fTypes);
 
@@ -450,7 +450,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> SingleOutputStreamOperator<Tuple24<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>, ?> projectTuple24() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> SingleOutputStreamOperator<Tuple24<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>> projectTuple24() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple24<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>> tType = new TupleTypeInfo<Tuple24<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>>(fTypes);
 
@@ -464,7 +464,7 @@ public class StreamProjection<IN> {
 	 * @see Tuple
 	 * @see DataStream
 	 */
-	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> SingleOutputStreamOperator<Tuple25<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>, ?> projectTuple25() {
+	public <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> SingleOutputStreamOperator<Tuple25<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>> projectTuple25() {
 		TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, dataStream.getType());
 		TupleTypeInfo<Tuple25<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>> tType = new TupleTypeInfo<Tuple25<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>>(fTypes);
 

http://git-wip-us.apache.org/repos/asf/flink/blob/30486905/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java
index 5c92fe0..6282cbc 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java
@@ -150,7 +150,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @return The data stream that is the result of applying the reduce function to the window. 
 	 */
 	@SuppressWarnings("unchecked")
-	public SingleOutputStreamOperator<T, ?> reduce(ReduceFunction<T> function) {
+	public SingleOutputStreamOperator<T> reduce(ReduceFunction<T> function) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("ReduceFunction of reduce can not be a RichFunction. " +
 				"Please use apply(ReduceFunction, WindowFunction) instead.");
@@ -162,7 +162,7 @@ public class WindowedStream<T, K, W extends Window> {
 		String callLocation = Utils.getCallLocationName();
 		String udfName = "WindowedStream." + callLocation;
 
-		SingleOutputStreamOperator<T, ?> result = createFastTimeOperatorIfValid(function, input.getType(), udfName);
+		SingleOutputStreamOperator<T> result = createFastTimeOperatorIfValid(function, input.getType(), udfName);
 		if (result != null) {
 			return result;
 		}
@@ -178,7 +178,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param function The fold function.
 	 * @return The data stream that is the result of applying the fold function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> fold(R initialValue, FoldFunction<T, R> function) {
+	public <R> SingleOutputStreamOperator<R> fold(R initialValue, FoldFunction<T, R> function) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("FoldFunction can not be a RichFunction. " +
 				"Please use apply(FoldFunction, WindowFunction) instead.");
@@ -198,7 +198,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param function The fold function.
 	 * @return The data stream that is the result of applying the fold function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> fold(R initialValue, FoldFunction<T, R> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> fold(R initialValue, FoldFunction<T, R> function, TypeInformation<R> resultType) {
 		if (function instanceof RichFunction) {
 			throw new UnsupportedOperationException("FoldFunction can not be a RichFunction. " +
 				"Please use apply(FoldFunction, WindowFunction) instead.");
@@ -219,7 +219,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param function The window function.
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(WindowFunction<T, R, K, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(WindowFunction<T, R, K, W> function) {
 		TypeInformation<R> resultType = TypeExtractor.getUnaryOperatorReturnType(
 				function, WindowFunction.class, true, true, getInputType(), null, false);
 
@@ -239,7 +239,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param resultType Type information for the result type of the window function
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(WindowFunction<T, R, K, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(WindowFunction<T, R, K, W> function, TypeInformation<R> resultType) {
 
 		//clean the closure
 		function = input.getExecutionEnvironment().clean(function);
@@ -247,7 +247,7 @@ public class WindowedStream<T, K, W extends Window> {
 		String callLocation = Utils.getCallLocationName();
 		String udfName = "WindowedStream." + callLocation;
 
-		SingleOutputStreamOperator<R, ?> result = createFastTimeOperatorIfValid(function, resultType, udfName);
+		SingleOutputStreamOperator<R> result = createFastTimeOperatorIfValid(function, resultType, udfName);
 		if (result != null) {
 			return result;
 		}
@@ -304,7 +304,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
 
-	public <R> SingleOutputStreamOperator<R, ?> apply(ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function) {
 		TypeInformation<T> inType = input.getType();
 		TypeInformation<R> resultType = TypeExtractor.getUnaryOperatorReturnType(
 				function, WindowFunction.class, true, true, inType, null, false);
@@ -325,7 +325,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param resultType Type information for the result type of the window function
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(ReduceFunction<T> reduceFunction, WindowFunction<T, R, K, W> function, TypeInformation<R> resultType) {
 		if (reduceFunction instanceof RichFunction) {
 			throw new UnsupportedOperationException("ReduceFunction of apply can not be a RichFunction.");
 		}
@@ -389,7 +389,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param function The window function.
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(R initialValue, FoldFunction<T, R> foldFunction, WindowFunction<R, R, K, W> function) {
+	public <R> SingleOutputStreamOperator<R> apply(R initialValue, FoldFunction<T, R> foldFunction, WindowFunction<R, R, K, W> function) {
 
 		TypeInformation<R> resultType = TypeExtractor.getFoldReturnTypes(foldFunction, input.getType(),
 			Utils.getCallLocationName(), true);
@@ -411,7 +411,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param resultType Type information for the result type of the window function
 	 * @return The data stream that is the result of applying the window function to the window.
 	 */
-	public <R> SingleOutputStreamOperator<R, ?> apply(R initialValue, FoldFunction<T, R> foldFunction, WindowFunction<R, R, K, W> function, TypeInformation<R> resultType) {
+	public <R> SingleOutputStreamOperator<R> apply(R initialValue, FoldFunction<T, R> foldFunction, WindowFunction<R, R, K, W> function, TypeInformation<R> resultType) {
 		if (foldFunction instanceof RichFunction) {
 			throw new UnsupportedOperationException("ReduceFunction of apply can not be a RichFunction.");
 		}
@@ -475,7 +475,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param positionToSum The position in the tuple/array to sum
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(int positionToSum) {
+	public SingleOutputStreamOperator<T> sum(int positionToSum) {
 		return aggregate(new SumAggregator<>(positionToSum, input.getType(), input.getExecutionConfig()));
 	}
 
@@ -492,7 +492,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param field The field to sum
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> sum(String field) {
+	public SingleOutputStreamOperator<T> sum(String field) {
 		return aggregate(new SumAggregator<>(field, input.getType(), input.getExecutionConfig()));
 	}
 
@@ -503,7 +503,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param positionToMin The position to minimize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(int positionToMin) {
+	public SingleOutputStreamOperator<T> min(int positionToMin) {
 		return aggregate(new ComparableAggregator<>(positionToMin, input.getType(), AggregationFunction.AggregationType.MIN, input.getExecutionConfig()));
 	}
 
@@ -520,7 +520,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param field The field expression based on which the aggregation will be applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> min(String field) {
+	public SingleOutputStreamOperator<T> min(String field) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MIN, false, input.getExecutionConfig()));
 	}
 
@@ -533,7 +533,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 *            The position to minimize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -545,7 +545,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param positionToMinBy The position to minimize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(String positionToMinBy) {
+	public SingleOutputStreamOperator<T> minBy(String positionToMinBy) {
 		return this.minBy(positionToMinBy, true);
 	}
 
@@ -559,7 +559,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param first If true, then the operator return the first element with the minimum value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(int positionToMinBy, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(int positionToMinBy, boolean first) {
 		return aggregate(new ComparableAggregator<>(positionToMinBy, input.getType(), AggregationFunction.AggregationType.MINBY, first, input.getExecutionConfig()));
 	}
 
@@ -574,7 +574,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param first If True then in case of field equality the first object will be returned
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> minBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> minBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MINBY, first, input.getExecutionConfig()));
 	}
 
@@ -585,7 +585,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param positionToMax The position to maximize
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(int positionToMax) {
+	public SingleOutputStreamOperator<T> max(int positionToMax) {
 		return aggregate(new ComparableAggregator<>(positionToMax, input.getType(), AggregationFunction.AggregationType.MAX, input.getExecutionConfig()));
 	}
 
@@ -599,7 +599,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param field The field expression based on which the aggregation will be applied.
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> max(String field) {
+	public SingleOutputStreamOperator<T> max(String field) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MAX, false, input.getExecutionConfig()));
 	}
 
@@ -612,7 +612,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 *            The position to maximize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -625,7 +625,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 *            The position to maximize by
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String positionToMaxBy) {
+	public SingleOutputStreamOperator<T> maxBy(String positionToMaxBy) {
 		return this.maxBy(positionToMaxBy, true);
 	}
 
@@ -639,7 +639,7 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param first If true, then the operator return the first element with the maximum value, otherwise returns the last
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(int positionToMaxBy, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(int positionToMaxBy, boolean first) {
 		return aggregate(new ComparableAggregator<>(positionToMaxBy, input.getType(), AggregationFunction.AggregationType.MAXBY, first, input.getExecutionConfig()));
 	}
 
@@ -654,11 +654,11 @@ public class WindowedStream<T, K, W extends Window> {
 	 * @param first If True then in case of field equality the first object will be returned
 	 * @return The transformed DataStream.
 	 */
-	public SingleOutputStreamOperator<T, ?> maxBy(String field, boolean first) {
+	public SingleOutputStreamOperator<T> maxBy(String field, boolean first) {
 		return aggregate(new ComparableAggregator<>(field, input.getType(), AggregationFunction.AggregationType.MAXBY, first, input.getExecutionConfig()));
 	}
 
-	private SingleOutputStreamOperator<T, ?> aggregate(AggregationFunction<T> aggregator) {
+	private SingleOutputStreamOperator<T> aggregate(AggregationFunction<T> aggregator) {
 		return reduce(aggregator);
 	}
 
@@ -666,7 +666,7 @@ public class WindowedStream<T, K, W extends Window> {
 	//  Utilities
 	// ------------------------------------------------------------------------
 
-	private <R> SingleOutputStreamOperator<R, ?> createFastTimeOperatorIfValid(
+	private <R> SingleOutputStreamOperator<R> createFastTimeOperatorIfValid(
 			Function function,
 			TypeInformation<R> resultType,
 			String functionName) {