flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljos...@apache.org
Subject [51/51] [partial] flink git commit: [FLINK-2877] Move Streaming API out of Staging package
Date Wed, 21 Oct 2015 09:04:07 GMT
[FLINK-2877] Move Streaming API out of Staging package


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

Branch: refs/heads/master
Commit: 06f6ac5d3edbc8dd20baf6e1b30900c189a68876
Parents: 42a3d8c
Author: Rufus Refactor <rufus@refactor.com>
Authored: Tue Oct 20 17:04:21 2015 +0200
Committer: Aljoscha Krettek <aljoscha.krettek@gmail.com>
Committed: Wed Oct 21 11:01:43 2015 +0200

----------------------------------------------------------------------
 docs/apis/best_practices.md                     |    2 +-
 docs/apis/streaming_guide.md                    |    2 +-
 docs/internals/stream_checkpointing.md          |    2 +-
 flink-contrib/flink-storm-examples/pom.xml      |    2 +-
 flink-contrib/flink-storm/pom.xml               |    2 +-
 flink-contrib/flink-streaming-contrib/pom.xml   |    2 +-
 flink-dist/pom.xml                              |    2 +-
 flink-java8/pom.xml                             |    2 +-
 .../main/resources/archetype-resources/pom.xml  |    6 +-
 .../main/resources/archetype-resources/pom.xml  |    4 +-
 flink-staging/flink-fs-tests/pom.xml            |    2 +-
 flink-staging/flink-hbase/pom.xml               |    2 +-
 .../flink-connector-elasticsearch/pom.xml       |  106 --
 .../elasticsearch/ElasticsearchSink.java        |  315 ----
 .../elasticsearch/IndexRequestBuilder.java      |   66 -
 .../examples/ElasticsearchExample.java          |   81 -
 .../elasticsearch/ElasticsearchSinkITCase.java  |  205 ---
 .../src/test/resources/log4j-test.properties    |   27 -
 .../src/test/resources/logback-test.xml         |   30 -
 .../flink-connector-filesystem/pom.xml          |  112 --
 .../flink/streaming/connectors/fs/Bucketer.java |   52 -
 .../flink/streaming/connectors/fs/Clock.java    |   32 -
 .../connectors/fs/DateTimeBucketer.java         |  124 --
 .../connectors/fs/NonRollingBucketer.java       |   43 -
 .../streaming/connectors/fs/RollingSink.java    |  900 -----------
 .../connectors/fs/SequenceFileWriter.java       |  160 --
 .../streaming/connectors/fs/StringWriter.java   |  103 --
 .../streaming/connectors/fs/SystemClock.java    |   28 -
 .../flink/streaming/connectors/fs/Writer.java   |   64 -
 .../src/main/resources/log4j.properties         |   27 -
 .../fs/RollingSinkFaultTolerance2ITCase.java    |  289 ----
 .../fs/RollingSinkFaultToleranceITCase.java     |  284 ----
 .../connectors/fs/RollingSinkITCase.java        |  506 ------
 .../src/test/resources/log4j-test.properties    |   27 -
 .../src/test/resources/logback-test.xml         |   30 -
 .../flink-connector-flume/pom.xml               |  174 ---
 .../streaming/connectors/flume/FlumeSink.java   |  141 --
 .../streaming/connectors/flume/FlumeSource.java |  149 --
 .../connectors/flume/FlumeTopology.java         |   49 -
 .../flink-connector-kafka/pom.xml               |  130 --
 .../connectors/kafka/FlinkKafkaConsumer.java    |  689 ---------
 .../connectors/kafka/FlinkKafkaConsumer081.java |   57 -
 .../connectors/kafka/FlinkKafkaConsumer082.java |   51 -
 .../connectors/kafka/FlinkKafkaProducer.java    |  288 ----
 .../connectors/kafka/api/KafkaSink.java         |   34 -
 .../api/persistent/PersistentKafkaSource.java   |   52 -
 .../connectors/kafka/internals/Fetcher.java     |   83 -
 .../kafka/internals/LegacyFetcher.java          |  622 --------
 .../kafka/internals/OffsetHandler.java          |   58 -
 .../kafka/internals/PartitionerWrapper.java     |   49 -
 .../internals/ZooKeeperStringSerializer.java    |   51 -
 .../kafka/internals/ZookeeperOffsetHandler.java |  128 --
 .../kafka/partitioner/FixedPartitioner.java     |   80 -
 .../kafka/partitioner/KafkaPartitioner.java     |   42 -
 .../KafkaConsumerPartitionAssignmentTest.java   |  257 ----
 .../connectors/kafka/KafkaConsumerTest.java     |  144 --
 .../connectors/kafka/KafkaConsumerTestBase.java | 1124 --------------
 .../streaming/connectors/kafka/KafkaITCase.java |  105 --
 .../connectors/kafka/KafkaLocalSystemTime.java  |   48 -
 .../connectors/kafka/KafkaProducerITCase.java   |  188 ---
 .../connectors/kafka/KafkaProducerTest.java     |  114 --
 .../connectors/kafka/KafkaTestBase.java         |  382 -----
 .../connectors/kafka/TestFixedPartitioner.java  |  104 --
 .../internals/ZookeeperOffsetHandlerTest.java   |   60 -
 .../kafka/testutils/DataGenerators.java         |  214 ---
 .../kafka/testutils/DiscardingSink.java         |   33 -
 .../kafka/testutils/FailingIdentityMapper.java  |  115 --
 .../testutils/JobManagerCommunicationUtils.java |   76 -
 .../kafka/testutils/MockRuntimeContext.java     |  132 --
 .../testutils/PartitionValidatingMapper.java    |   53 -
 .../kafka/testutils/SuccessException.java       |   26 -
 .../kafka/testutils/ThrottledMapper.java        |   44 -
 .../kafka/testutils/Tuple2Partitioner.java      |   51 -
 .../testutils/ValidatingExactlyOnceSink.java    |   81 -
 .../src/test/resources/log4j-test.properties    |   29 -
 .../src/test/resources/logback-test.xml         |   30 -
 .../flink-connector-nifi/pom.xml                |   94 --
 .../connectors/nifi/NiFiDataPacket.java         |   39 -
 .../connectors/nifi/NiFiDataPacketBuilder.java  |   34 -
 .../streaming/connectors/nifi/NiFiSink.java     |   74 -
 .../streaming/connectors/nifi/NiFiSource.java   |  146 --
 .../connectors/nifi/StandardNiFiDataPacket.java |   46 -
 .../nifi/examples/NiFiSinkTopologyExample.java  |   55 -
 .../examples/NiFiSourceTopologyExample.java     |   58 -
 .../src/test/resources/NiFi_Flink.xml           |   16 -
 .../flink-connector-rabbitmq/pom.xml            |   59 -
 .../streaming/connectors/rabbitmq/RMQSink.java  |  111 --
 .../connectors/rabbitmq/RMQSource.java          |  105 --
 .../connectors/rabbitmq/RMQTopology.java        |   52 -
 .../flink-connector-twitter/pom.xml             |   97 --
 .../connectors/json/JSONParseFlatMap.java       |  144 --
 .../streaming/connectors/json/JSONParser.java   |  175 ---
 .../connectors/twitter/TwitterFilterSource.java |  280 ----
 .../twitter/TwitterFilterSourceExample.java     |   68 -
 .../connectors/twitter/TwitterSource.java       |  233 ---
 .../connectors/twitter/TwitterStreaming.java    |   99 --
 .../connectors/twitter/TwitterTopology.java     |   92 --
 .../src/main/resources/twitter.properties       |   19 -
 .../connectors/json/JSONParserTest.java         |   74 -
 .../connectors/json/JSONParserTest2.java        |   95 --
 .../src/test/resources/log4j-test.properties    |   27 -
 .../src/test/resources/logback-test.xml         |   30 -
 .../flink-streaming-connectors/pom.xml          |   66 -
 .../flink-streaming-core/pom.xml                |  116 --
 .../flink/streaming/api/CheckpointingMode.java  |   75 -
 .../flink/streaming/api/TimeCharacteristic.java |   81 -
 .../api/checkpoint/CheckpointNotifier.java      |   37 -
 .../streaming/api/checkpoint/Checkpointed.java  |   65 -
 .../checkpoint/CheckpointedAsynchronously.java  |   37 -
 .../BroadcastOutputSelectorWrapper.java         |   45 -
 .../selector/DirectedOutputSelectorWrapper.java |   97 --
 .../api/collector/selector/OutputSelector.java  |   44 -
 .../selector/OutputSelectorWrapper.java         |   32 -
 .../selector/OutputSelectorWrapperFactory.java  |   33 -
 .../api/datastream/AllWindowedStream.java       |  556 -------
 .../api/datastream/CoGroupedStreams.java        |  575 -------
 .../api/datastream/ConnectedStreams.java        |  331 ----
 .../streaming/api/datastream/DataStream.java    | 1077 -------------
 .../api/datastream/DataStreamSink.java          |   82 -
 .../api/datastream/DataStreamSource.java        |   53 -
 .../api/datastream/IterativeStream.java         |  218 ---
 .../streaming/api/datastream/JoinedStreams.java |  330 ----
 .../streaming/api/datastream/KeyedStream.java   |  499 ------
 .../datastream/SingleOutputStreamOperator.java  |  309 ----
 .../streaming/api/datastream/SplitStream.java   |   62 -
 .../api/datastream/StreamProjection.java        |  484 ------
 .../api/datastream/WindowedStream.java          |  648 --------
 .../api/environment/LocalStreamEnvironment.java |  109 --
 .../environment/RemoteStreamEnvironment.java    |  253 ---
 .../environment/StreamContextEnvironment.java   |  103 --
 .../environment/StreamExecutionEnvironment.java | 1454 ------------------
 .../StreamExecutionEnvironmentFactory.java      |   31 -
 .../api/environment/StreamPlanEnvironment.java  |   68 -
 .../functions/AscendingTimestampExtractor.java  |   59 -
 .../api/functions/TimestampExtractor.java       |   69 -
 .../aggregation/AggregationFunction.java        |   35 -
 .../aggregation/ComparableAggregator.java       |   89 --
 .../api/functions/aggregation/Comparator.java   |  104 --
 .../functions/aggregation/SumAggregator.java    |   48 -
 .../api/functions/aggregation/SumFunction.java  |  102 --
 .../api/functions/co/CoFlatMapFunction.java     |   42 -
 .../api/functions/co/CoMapFunction.java         |   41 -
 .../api/functions/co/RichCoFlatMapFunction.java |   40 -
 .../api/functions/co/RichCoMapFunction.java     |   40 -
 .../api/functions/sink/FileSinkFunction.java    |  129 --
 .../sink/FileSinkFunctionByMillis.java          |   59 -
 .../api/functions/sink/PrintSinkFunction.java   |   96 --
 .../api/functions/sink/RichSinkFunction.java    |   28 -
 .../api/functions/sink/SinkFunction.java        |   38 -
 .../api/functions/sink/SocketClientSink.java    |  268 ----
 .../api/functions/sink/WriteFormat.java         |   43 -
 .../api/functions/sink/WriteFormatAsCsv.java    |   49 -
 .../api/functions/sink/WriteFormatAsText.java   |   47 -
 .../api/functions/sink/WriteSinkFunction.java   |   92 --
 .../sink/WriteSinkFunctionByMillis.java         |   50 -
 .../api/functions/source/ConnectorSource.java   |   38 -
 .../source/EventTimeSourceFunction.java         |   39 -
 .../source/FileMonitoringFunction.java          |  131 --
 .../api/functions/source/FileReadFunction.java  |   51 -
 .../functions/source/FileSourceFunction.java    |  146 --
 .../functions/source/FromElementsFunction.java  |  196 ---
 .../functions/source/FromIteratorFunction.java  |   45 -
 .../source/FromSplittableIteratorFunction.java  |   58 -
 .../source/MessageAcknowledingSourceBase.java   |  172 ---
 .../source/ParallelSourceFunction.java          |   34 -
 .../source/RichEventTimeSourceFunction.java     |   47 -
 .../source/RichParallelSourceFunction.java      |   38 -
 .../functions/source/RichSourceFunction.java    |   46 -
 .../source/SocketTextStreamFunction.java        |  146 --
 .../api/functions/source/SourceFunction.java    |  162 --
 .../source/StatefulSequenceSource.java          |   86 --
 .../functions/windowing/AllWindowFunction.java  |   45 -
 .../windowing/FoldAllWindowFunction.java        |   97 --
 .../functions/windowing/FoldWindowFunction.java |   97 --
 .../windowing/ReduceAllWindowFunction.java      |   70 -
 .../windowing/ReduceWindowFunction.java         |   50 -
 .../ReduceWindowFunctionWithWindow.java         |   71 -
 .../windowing/RichAllWindowFunction.java        |   25 -
 .../functions/windowing/RichWindowFunction.java |   25 -
 .../api/functions/windowing/WindowFunction.java |   47 -
 .../windowing/delta/CosineDistance.java         |   92 --
 .../windowing/delta/DeltaFunction.java          |   44 -
 .../windowing/delta/EuclideanDistance.java      |   58 -
 .../delta/ExtractionAwareDeltaFunction.java     |   90 --
 .../delta/extractor/ArrayFromTuple.java         |   74 -
 .../delta/extractor/ConcatenatedExtract.java    |   68 -
 .../windowing/delta/extractor/Extractor.java    |   43 -
 .../delta/extractor/FieldFromArray.java         |   59 -
 .../delta/extractor/FieldFromTuple.java         |   58 -
 .../delta/extractor/FieldsFromArray.java        |   67 -
 .../delta/extractor/FieldsFromTuple.java        |   53 -
 .../streaming/api/graph/JSONGenerator.java      |  189 ---
 .../flink/streaming/api/graph/StreamConfig.java |  468 ------
 .../flink/streaming/api/graph/StreamEdge.java   |  120 --
 .../flink/streaming/api/graph/StreamGraph.java  |  619 --------
 .../api/graph/StreamGraphGenerator.java         |  538 -------
 .../flink/streaming/api/graph/StreamNode.java   |  263 ----
 .../api/graph/StreamingJobGraphGenerator.java   |  444 ------
 .../api/operators/AbstractStreamOperator.java   |  373 -----
 .../operators/AbstractUdfStreamOperator.java    |  192 ---
 .../api/operators/ChainingStrategy.java         |   47 -
 .../api/operators/OneInputStreamOperator.java   |   47 -
 .../flink/streaming/api/operators/Output.java   |   40 -
 .../api/operators/OutputTypeConfigurable.java   |   42 -
 .../streaming/api/operators/StreamCounter.java  |   42 -
 .../streaming/api/operators/StreamFilter.java   |   44 -
 .../streaming/api/operators/StreamFlatMap.java  |   53 -
 .../api/operators/StreamGroupedFold.java        |  115 --
 .../api/operators/StreamGroupedReduce.java      |   70 -
 .../streaming/api/operators/StreamMap.java      |   44 -
 .../streaming/api/operators/StreamOperator.java |  146 --
 .../streaming/api/operators/StreamProject.java  |   64 -
 .../streaming/api/operators/StreamSink.java     |   44 -
 .../streaming/api/operators/StreamSource.java   |  300 ----
 .../api/operators/StreamingRuntimeContext.java  |  176 ---
 .../api/operators/TimestampedCollector.java     |   67 -
 .../api/operators/TwoInputStreamOperator.java   |   63 -
 .../api/operators/co/CoStreamFlatMap.java       |   87 --
 .../streaming/api/operators/co/CoStreamMap.java |   71 -
 .../CoFeedbackTransformation.java               |  122 --
 .../transformations/FeedbackTransformation.java |  124 --
 .../transformations/OneInputTransformation.java |  127 --
 .../PartitionTransformation.java                |   82 -
 .../transformations/SelectTransformation.java   |   84 -
 .../api/transformations/SinkTransformation.java |  117 --
 .../transformations/SourceTransformation.java   |   70 -
 .../transformations/SplitTransformation.java    |   84 -
 .../transformations/StreamTransformation.java   |  321 ----
 .../transformations/TwoInputTransformation.java |  116 --
 .../transformations/UnionTransformation.java    |   81 -
 .../streaming/api/watermark/Watermark.java      |   76 -
 .../api/windowing/assigners/GlobalWindows.java  |   96 --
 .../windowing/assigners/SlidingTimeWindows.java |  109 --
 .../assigners/TumblingTimeWindows.java          |   94 --
 .../api/windowing/assigners/WindowAssigner.java |   63 -
 .../api/windowing/evictors/CountEvictor.java    |   54 -
 .../api/windowing/evictors/DeltaEvictor.java    |   74 -
 .../api/windowing/evictors/Evictor.java         |   51 -
 .../api/windowing/evictors/TimeEvictor.java     |   73 -
 .../api/windowing/time/AbstractTime.java        |   98 --
 .../streaming/api/windowing/time/EventTime.java |   62 -
 .../api/windowing/time/ProcessingTime.java      |   63 -
 .../streaming/api/windowing/time/Time.java      |   66 -
 .../triggers/ContinuousEventTimeTrigger.java    |   90 --
 .../ContinuousProcessingTimeTrigger.java        |  106 --
 .../api/windowing/triggers/CountTrigger.java    |   76 -
 .../api/windowing/triggers/DeltaTrigger.java    |   89 --
 .../windowing/triggers/EventTimeTrigger.java    |   62 -
 .../triggers/ProcessingTimeTrigger.java         |   60 -
 .../api/windowing/triggers/PurgingTrigger.java  |   99 --
 .../api/windowing/triggers/Trigger.java         |  120 --
 .../api/windowing/windows/GlobalWindow.java     |  128 --
 .../api/windowing/windows/TimeWindow.java       |  157 --
 .../streaming/api/windowing/windows/Window.java |   31 -
 .../streaming/runtime/io/BarrierBuffer.java     |  320 ----
 .../streaming/runtime/io/BarrierTracker.java    |  205 ---
 .../runtime/io/BlockingQueueBroker.java         |   31 -
 .../streaming/runtime/io/BufferSpiller.java     |  410 -----
 .../runtime/io/CheckpointBarrierHandler.java    |   65 -
 .../streaming/runtime/io/CollectorWrapper.java  |   61 -
 .../streaming/runtime/io/InputGateUtil.java     |   59 -
 .../runtime/io/RecordWriterOutput.java          |  112 --
 .../runtime/io/StreamInputProcessor.java        |  216 ---
 .../runtime/io/StreamRecordWriter.java          |  182 ---
 .../runtime/io/StreamTwoInputProcessor.java     |  290 ----
 .../streaming/runtime/io/StreamingReader.java   |   28 -
 .../operators/BucketStreamSortOperator.java     |  103 --
 .../operators/ExtractTimestampsOperator.java    |   95 --
 .../operators/StreamingOperatorMetrics.java     |   27 -
 .../runtime/operators/Triggerable.java          |   37 -
 .../runtime/operators/package-info.java         |   22 -
 ...ractAlignedProcessingTimeWindowOperator.java |  335 ----
 .../windowing/AbstractKeyedTimePanes.java       |  157 --
 .../windowing/AccumulatingKeyedTimePanes.java   |  133 --
 ...ccumulatingProcessingTimeWindowOperator.java |  163 --
 .../windowing/AggregatingKeyedTimePanes.java    |  106 --
 ...AggregatingProcessingTimeWindowOperator.java |   50 -
 .../EvictingNonKeyedWindowOperator.java         |   92 --
 .../windowing/EvictingWindowOperator.java       |   98 --
 .../runtime/operators/windowing/KeyMap.java     |  651 --------
 .../windowing/NonKeyedWindowOperator.java       |  539 -------
 .../operators/windowing/WindowOperator.java     |  625 --------
 .../windowing/buffers/EvictingWindowBuffer.java |   35 -
 .../windowing/buffers/HeapWindowBuffer.java     |   92 --
 .../buffers/PreAggregatingHeapWindowBuffer.java |   98 --
 .../windowing/buffers/WindowBuffer.java         |   64 -
 .../windowing/buffers/WindowBufferFactory.java  |   54 -
 .../operators/windowing/package-info.java       |   22 -
 .../partitioner/BroadcastPartitioner.java       |   60 -
 .../partitioner/CustomPartitionerWrapper.java   |   70 -
 .../runtime/partitioner/ForwardPartitioner.java |   46 -
 .../runtime/partitioner/GlobalPartitioner.java  |   48 -
 .../runtime/partitioner/HashPartitioner.java    |   63 -
 .../partitioner/RebalancePartitioner.java       |   49 -
 .../runtime/partitioner/ShufflePartitioner.java |   55 -
 .../runtime/partitioner/StreamPartitioner.java  |   30 -
 .../MultiplexingStreamRecordSerializer.java     |  188 ---
 .../runtime/streamrecord/StreamElement.java     |   62 -
 .../runtime/streamrecord/StreamRecord.java      |  124 --
 .../streamrecord/StreamRecordSerializer.java    |  146 --
 .../ExceptionInChainedOperatorException.java    |   45 -
 .../runtime/tasks/OneInputStreamTask.java       |   77 -
 .../streaming/runtime/tasks/OperatorChain.java  |  326 ----
 .../runtime/tasks/SourceStreamTask.java         |  106 --
 .../runtime/tasks/StreamIterationHead.java      |  129 --
 .../runtime/tasks/StreamIterationTail.java      |   92 --
 .../streaming/runtime/tasks/StreamTask.java     |  616 --------
 .../runtime/tasks/StreamTaskException.java      |   68 -
 .../runtime/tasks/StreamTaskState.java          |  124 --
 .../runtime/tasks/StreamTaskStateList.java      |   60 -
 .../streaming/runtime/tasks/TimerException.java |   35 -
 .../runtime/tasks/TwoInputStreamTask.java       |  101 --
 .../streaming/runtime/tasks/package-info.java   |   27 -
 .../flink/streaming/util/FieldAccessor.java     |  249 ---
 .../streaming/util/keys/KeySelectorUtil.java    |  240 ---
 .../serialization/DeserializationSchema.java    |   49 -
 .../serialization/JavaDefaultStringSchema.java  |   47 -
 .../streaming/util/serialization/RawSchema.java |   52 -
 .../util/serialization/SerializationSchema.java |   40 -
 .../util/serialization/SimpleStringSchema.java  |   47 -
 .../TypeInformationSerializationSchema.java     |  118 --
 .../consumer/StreamTestSingleInputGate.java     |  228 ---
 .../streaming/api/AggregationFunctionTest.java  |  416 -----
 .../api/ChainedRuntimeContextTest.java          |   80 -
 .../flink/streaming/api/CoStreamTest.java       |  132 --
 .../flink/streaming/api/DataStreamTest.java     |  694 ---------
 .../apache/flink/streaming/api/IterateTest.java |  614 --------
 .../flink/streaming/api/OutputSplitterTest.java |  144 --
 .../flink/streaming/api/PartitionerTest.java    |  268 ----
 .../flink/streaming/api/SourceFunctionTest.java |   84 -
 .../api/StreamExecutionEnvironmentTest.java     |  163 --
 .../streaming/api/StreamingOperatorsITCase.java |  230 ---
 .../flink/streaming/api/TypeFillTest.java       |  152 --
 .../api/collector/DirectedOutputTest.java       |  119 --
 .../api/collector/OutputSelectorTest.java       |   59 -
 .../api/complex/ComplexIntegrationTest.java     |  837 ----------
 .../api/functions/FromElementsFunctionTest.java |  265 ----
 .../api/functions/ListSourceContext.java        |   82 -
 .../api/functions/PrintSinkFunctionTest.java    |  124 --
 .../functions/sink/SocketClientSinkTest.java    |  303 ----
 .../source/FileMonitoringFunctionTest.java      |   63 -
 .../source/SocketTextStreamFunctionTest.java    |  349 -----
 .../delta/extractor/ArrayFromTupleTest.java     |  118 --
 .../extractor/ConcatenatedExtractTest.java      |   77 -
 .../delta/extractor/FieldFromArrayTest.java     |   54 -
 .../delta/extractor/FieldFromTupleTest.java     |   83 -
 .../delta/extractor/FieldsFromArrayTest.java    |  108 --
 .../delta/extractor/FieldsFromTupleTest.java    |  106 --
 .../streaming/api/graph/SlotAllocationTest.java |   56 -
 .../api/graph/StreamGraphGeneratorTest.java     |  301 ----
 .../graph/StreamingJobGraphGeneratorTest.java   |   91 --
 .../api/operators/StreamCounterTest.java        |   61 -
 .../api/operators/StreamFilterTest.java         |  134 --
 .../api/operators/StreamFlatMapTest.java        |  143 --
 .../api/operators/StreamGroupedFoldTest.java    |  161 --
 .../api/operators/StreamGroupedReduceTest.java  |  161 --
 .../streaming/api/operators/StreamMapTest.java  |  128 --
 .../api/operators/StreamProjectTest.java        |  137 --
 .../api/operators/co/CoGroupedReduceTest.java   |  125 --
 .../api/operators/co/CoStreamFlatMapTest.java   |  169 --
 .../api/operators/co/CoStreamMapTest.java       |  163 --
 .../api/operators/co/CoWindowTest.java          |  182 ---
 .../api/operators/co/SelfConnectionTest.java    |  180 ---
 .../api/outputformat/CsvOutputFormatITCase.java |   78 -
 .../outputformat/SocketOutputFormatITCase.java  |   52 -
 .../outputformat/TextOutputFormatITCase.java    |   55 -
 .../api/streamtask/MockRecordWriter.java        |   45 -
 .../api/streamtask/StreamIterationHeadTest.java |   51 -
 .../api/streamtask/StreamVertexTest.java        |  187 ---
 .../deltafunction/CosineDistanceTest.java       |   71 -
 .../deltafunction/EuclideanDistanceTest.java    |   72 -
 .../flink/streaming/graph/TranslationTest.java  |   76 -
 .../io/BarrierBufferMassiveRandomTest.java      |  175 ---
 .../streaming/runtime/io/BarrierBufferTest.java |  954 ------------
 .../runtime/io/BarrierTrackerTest.java          |  367 -----
 .../streaming/runtime/io/BufferSpillerTest.java |  407 -----
 .../streaming/runtime/io/MockInputGate.java     |   94 --
 .../io/SpilledBufferOrEventSequenceTest.java    |  482 ------
 .../runtime/io/StreamRecordWriterTest.java      |  131 --
 .../flink/streaming/runtime/io/TestEvent.java   |   88 --
 .../runtime/operators/StreamTaskTimerTest.java  |  175 ---
 ...AlignedProcessingTimeWindowOperatorTest.java |  824 ----------
 ...AlignedProcessingTimeWindowOperatorTest.java |  823 ----------
 .../windowing/AllWindowTranslationTest.java     |  215 ---
 .../operators/windowing/CoGroupJoinITCase.java  |  373 -----
 .../operators/windowing/CollectingOutput.java   |   80 -
 .../EvictingNonKeyedWindowOperatorTest.java     |  173 ---
 .../windowing/EvictingWindowOperatorTest.java   |  182 ---
 .../windowing/KeyMapPutIfAbsentTest.java        |  121 --
 .../operators/windowing/KeyMapPutTest.java      |  136 --
 .../runtime/operators/windowing/KeyMapTest.java |  344 -----
 .../windowing/NonKeyedWindowOperatorTest.java   |  429 ------
 .../windowing/TimeWindowTranslationTest.java    |  143 --
 .../operators/windowing/WindowFoldITCase.java   |  191 ---
 .../operators/windowing/WindowOperatorTest.java |  470 ------
 .../windowing/WindowTranslationTest.java        |  265 ----
 .../partitioner/BroadcastPartitionerTest.java   |   55 -
 .../partitioner/ForwardPartitionerTest.java     |   55 -
 .../partitioner/GlobalPartitionerTest.java      |   50 -
 .../partitioner/HashPartitionerTest.java        |   71 -
 .../partitioner/RebalancePartitionerTest.java   |   56 -
 .../partitioner/ShufflePartitionerTest.java     |   60 -
 .../StreamRecordSerializerTest.java             |   68 -
 .../runtime/tasks/OneInputStreamTaskTest.java   |  334 ----
 .../tasks/OneInputStreamTaskTestHarness.java    |  104 --
 .../runtime/tasks/SourceStreamTaskTest.java     |  281 ----
 .../runtime/tasks/StreamMockEnvironment.java    |  304 ----
 .../runtime/tasks/StreamTaskTestHarness.java    |  321 ----
 .../runtime/tasks/StreamTaskTimerITCase.java    |  313 ----
 .../runtime/tasks/TwoInputStreamTaskTest.java   |  373 -----
 .../tasks/TwoInputStreamTaskTestHarness.java    |  170 --
 .../streaming/timestamp/TimestampITCase.java    |  619 --------
 .../streaming/util/EvenOddOutputSelector.java   |   31 -
 .../flink/streaming/util/FieldAccessorTest.java |   75 -
 .../flink/streaming/util/MockContext.java       |  159 --
 .../apache/flink/streaming/util/MockOutput.java |   50 -
 .../apache/flink/streaming/util/NoOpIntMap.java |   28 -
 .../apache/flink/streaming/util/NoOpSink.java   |   26 -
 .../util/OneInputStreamOperatorTestHarness.java |  159 --
 .../streaming/util/ReceiveCheckNoOpSink.java    |   42 -
 .../streaming/util/SocketOutputTestBase.java    |  130 --
 .../streaming/util/SocketProgramITCaseBase.java |   90 --
 .../streaming/util/SourceFunctionUtil.java      |   75 -
 .../util/StreamingMultipleProgramsTestBase.java |   81 -
 .../util/StreamingProgramTestBase.java          |  111 --
 .../flink/streaming/util/TestHarnessUtil.java   |   85 -
 .../streaming/util/TestListResultSink.java      |   74 -
 .../flink/streaming/util/TestListWrapper.java   |   64 -
 .../streaming/util/TestStreamEnvironment.java   |   75 -
 .../util/TwoInputStreamOperatorTestHarness.java |  153 --
 .../TypeInformationSerializationSchemaTest.java |  118 --
 .../util/keys/ArrayKeySelectorTest.java         |   80 -
 .../src/test/resources/log4j-test.properties    |   27 -
 .../src/test/resources/log4j.properties         |   27 -
 .../src/test/resources/logback-test.xml         |   30 -
 .../flink-streaming-examples/pom.xml            |  535 -------
 .../examples/iteration/IterateExample.java      |  247 ---
 .../iteration/util/IterateExampleData.java      |   32 -
 .../streaming/examples/join/WindowJoin.java     |  296 ----
 .../examples/join/util/WindowJoinData.java      |   61 -
 .../ml/IncrementalLearningSkeleton.java         |  255 ---
 .../util/IncrementalLearningSkeletonData.java   |   32 -
 .../socket/SocketTextStreamWordCount.java       |  108 --
 .../examples/twitter/TwitterStream.java         |  167 --
 .../twitter/util/TwitterStreamData.java         |   32 -
 .../GroupedProcessingTimeWindowExample.java     |  127 --
 .../examples/windowing/SessionWindowing.java    |  168 --
 .../examples/windowing/TopSpeedWindowing.java   |  210 ---
 .../examples/windowing/WindowWordCount.java     |  132 --
 .../windowing/util/SessionWindowingData.java    |   27 -
 .../util/TopSpeedWindowingExampleData.java      |  276 ----
 .../examples/wordcount/PojoExample.java         |  186 ---
 .../streaming/examples/wordcount/WordCount.java |  148 --
 .../scala/examples/join/WindowJoin.scala        |  156 --
 .../socket/SocketTextStreamWordCount.scala      |   93 --
 .../examples/windowing/TopSpeedWindowing.scala  |  150 --
 .../iteration/IterateExampleITCase.java         |   45 -
 .../join/WindowJoinITCase.java                  |   50 -
 .../ml/IncrementalLearningSkeletonITCase.java   |   42 -
 .../socket/SocketTextStreamWordCountITCase.java |   30 -
 .../twitter/TwitterStreamITCase.java            |   42 -
 .../windowing/SessionWindowingITCase.java       |   42 -
 .../TopSpeedWindowingExampleITCase.java         |   45 -
 .../windowing/WindowWordCountITCase.java        |   50 -
 .../wordcount/PojoExampleITCase.java            |   45 -
 .../wordcount/WordCountITCase.java              |   45 -
 .../join/WindowJoinITCase.java                  |   50 -
 .../socket/SocketTextStreamWordCountITCase.java |   30 -
 .../TopSpeedWindowingExampleITCase.java         |   45 -
 .../flink-streaming-scala/pom.xml               |  236 ---
 .../streaming/api/scala/AllWindowedStream.scala |  364 -----
 .../streaming/api/scala/CoGroupedStreams.scala  |  303 ----
 .../streaming/api/scala/ConnectedStreams.scala  |  364 -----
 .../flink/streaming/api/scala/DataStream.scala  |  767 ---------
 .../streaming/api/scala/JoinedStreams.scala     |  313 ----
 .../flink/streaming/api/scala/KeyedStream.scala |  370 -----
 .../flink/streaming/api/scala/SplitStream.scala |   37 -
 .../api/scala/StreamExecutionEnvironment.scala  |  657 --------
 .../streaming/api/scala/WindowedStream.scala    |  371 -----
 .../api/scala/function/StatefulFunction.scala   |   48 -
 .../flink/streaming/api/scala/package.scala     |   76 -
 .../scala/api/CsvOutputFormatITCase.java        |   67 -
 .../scala/api/SocketOutputFormatITCase.java     |   36 -
 .../scala/api/StatefulFunctionITCase.java       |   30 -
 .../scala/api/TextOutputFormatITCase.java       |   43 -
 .../api/scala/AllWindowTranslationTest.scala    |  265 ----
 .../streaming/api/scala/CoGroupJoinITCase.scala |  275 ----
 .../streaming/api/scala/DataStreamTest.scala    |  543 -------
 .../api/scala/OutputFormatTestPrograms.scala    |   78 -
 ...ScalaStreamingMultipleProgramsTestBase.scala |   55 -
 .../streaming/api/scala/StateTestPrograms.scala |   94 --
 .../api/scala/StreamingOperatorsITCase.scala    |  116 --
 .../StreamingScalaAPICompletenessTest.scala     |  153 --
 .../streaming/api/scala/WindowFoldITCase.scala  |  148 --
 .../api/scala/WindowTranslationTest.scala       |  255 ---
 flink-staging/flink-streaming/pom.xml           |   43 -
 flink-staging/pom.xml                           |    1 -
 .../flink-connector-elasticsearch/pom.xml       |  106 ++
 .../elasticsearch/ElasticsearchSink.java        |  315 ++++
 .../elasticsearch/IndexRequestBuilder.java      |   66 +
 .../examples/ElasticsearchExample.java          |   81 +
 .../elasticsearch/ElasticsearchSinkITCase.java  |  205 +++
 .../src/test/resources/log4j-test.properties    |   27 +
 .../src/test/resources/logback-test.xml         |   30 +
 .../flink-connector-filesystem/pom.xml          |  112 ++
 .../flink/streaming/connectors/fs/Bucketer.java |   52 +
 .../flink/streaming/connectors/fs/Clock.java    |   32 +
 .../connectors/fs/DateTimeBucketer.java         |  124 ++
 .../connectors/fs/NonRollingBucketer.java       |   43 +
 .../streaming/connectors/fs/RollingSink.java    |  900 +++++++++++
 .../connectors/fs/SequenceFileWriter.java       |  160 ++
 .../streaming/connectors/fs/StringWriter.java   |  103 ++
 .../streaming/connectors/fs/SystemClock.java    |   28 +
 .../flink/streaming/connectors/fs/Writer.java   |   64 +
 .../src/main/resources/log4j.properties         |   27 +
 .../fs/RollingSinkFaultTolerance2ITCase.java    |  289 ++++
 .../fs/RollingSinkFaultToleranceITCase.java     |  284 ++++
 .../connectors/fs/RollingSinkITCase.java        |  506 ++++++
 .../src/test/resources/log4j-test.properties    |   27 +
 .../src/test/resources/logback-test.xml         |   30 +
 .../flink-connector-flume/pom.xml               |  174 +++
 .../streaming/connectors/flume/FlumeSink.java   |  141 ++
 .../streaming/connectors/flume/FlumeSource.java |  149 ++
 .../connectors/flume/FlumeTopology.java         |   49 +
 .../flink-connector-kafka/pom.xml               |  130 ++
 .../connectors/kafka/FlinkKafkaConsumer.java    |  689 +++++++++
 .../connectors/kafka/FlinkKafkaConsumer081.java |   57 +
 .../connectors/kafka/FlinkKafkaConsumer082.java |   51 +
 .../connectors/kafka/FlinkKafkaProducer.java    |  288 ++++
 .../connectors/kafka/api/KafkaSink.java         |   34 +
 .../api/persistent/PersistentKafkaSource.java   |   52 +
 .../connectors/kafka/internals/Fetcher.java     |   83 +
 .../kafka/internals/LegacyFetcher.java          |  622 ++++++++
 .../kafka/internals/OffsetHandler.java          |   58 +
 .../kafka/internals/PartitionerWrapper.java     |   49 +
 .../internals/ZooKeeperStringSerializer.java    |   51 +
 .../kafka/internals/ZookeeperOffsetHandler.java |  128 ++
 .../kafka/partitioner/FixedPartitioner.java     |   80 +
 .../kafka/partitioner/KafkaPartitioner.java     |   42 +
 .../KafkaConsumerPartitionAssignmentTest.java   |  257 ++++
 .../connectors/kafka/KafkaConsumerTest.java     |  144 ++
 .../connectors/kafka/KafkaConsumerTestBase.java | 1124 ++++++++++++++
 .../streaming/connectors/kafka/KafkaITCase.java |  105 ++
 .../connectors/kafka/KafkaLocalSystemTime.java  |   48 +
 .../connectors/kafka/KafkaProducerITCase.java   |  188 +++
 .../connectors/kafka/KafkaProducerTest.java     |  114 ++
 .../connectors/kafka/KafkaTestBase.java         |  382 +++++
 .../connectors/kafka/TestFixedPartitioner.java  |  104 ++
 .../internals/ZookeeperOffsetHandlerTest.java   |   60 +
 .../kafka/testutils/DataGenerators.java         |  214 +++
 .../kafka/testutils/DiscardingSink.java         |   33 +
 .../kafka/testutils/FailingIdentityMapper.java  |  115 ++
 .../testutils/JobManagerCommunicationUtils.java |   76 +
 .../kafka/testutils/MockRuntimeContext.java     |  132 ++
 .../testutils/PartitionValidatingMapper.java    |   53 +
 .../kafka/testutils/SuccessException.java       |   26 +
 .../kafka/testutils/ThrottledMapper.java        |   44 +
 .../kafka/testutils/Tuple2Partitioner.java      |   51 +
 .../testutils/ValidatingExactlyOnceSink.java    |   81 +
 .../src/test/resources/log4j-test.properties    |   29 +
 .../src/test/resources/logback-test.xml         |   30 +
 .../flink-connector-nifi/pom.xml                |   94 ++
 .../connectors/nifi/NiFiDataPacket.java         |   39 +
 .../connectors/nifi/NiFiDataPacketBuilder.java  |   34 +
 .../streaming/connectors/nifi/NiFiSink.java     |   74 +
 .../streaming/connectors/nifi/NiFiSource.java   |  146 ++
 .../connectors/nifi/StandardNiFiDataPacket.java |   46 +
 .../nifi/examples/NiFiSinkTopologyExample.java  |   55 +
 .../examples/NiFiSourceTopologyExample.java     |   58 +
 .../src/test/resources/NiFi_Flink.xml           |   16 +
 .../flink-connector-rabbitmq/pom.xml            |   59 +
 .../streaming/connectors/rabbitmq/RMQSink.java  |  111 ++
 .../connectors/rabbitmq/RMQSource.java          |  105 ++
 .../connectors/rabbitmq/RMQTopology.java        |   52 +
 .../flink-connector-twitter/pom.xml             |   97 ++
 .../connectors/json/JSONParseFlatMap.java       |  144 ++
 .../streaming/connectors/json/JSONParser.java   |  175 +++
 .../connectors/twitter/TwitterFilterSource.java |  280 ++++
 .../twitter/TwitterFilterSourceExample.java     |   68 +
 .../connectors/twitter/TwitterSource.java       |  233 +++
 .../connectors/twitter/TwitterStreaming.java    |   99 ++
 .../connectors/twitter/TwitterTopology.java     |   92 ++
 .../src/main/resources/twitter.properties       |   19 +
 .../connectors/json/JSONParserTest.java         |   74 +
 .../connectors/json/JSONParserTest2.java        |   95 ++
 .../src/test/resources/log4j-test.properties    |   27 +
 .../src/test/resources/logback-test.xml         |   30 +
 flink-streaming-connectors/pom.xml              |   66 +
 flink-streaming-examples/pom.xml                |  535 +++++++
 .../examples/iteration/IterateExample.java      |  247 +++
 .../iteration/util/IterateExampleData.java      |   32 +
 .../streaming/examples/join/WindowJoin.java     |  296 ++++
 .../examples/join/util/WindowJoinData.java      |   61 +
 .../ml/IncrementalLearningSkeleton.java         |  255 +++
 .../util/IncrementalLearningSkeletonData.java   |   32 +
 .../socket/SocketTextStreamWordCount.java       |  108 ++
 .../examples/twitter/TwitterStream.java         |  167 ++
 .../twitter/util/TwitterStreamData.java         |   32 +
 .../GroupedProcessingTimeWindowExample.java     |  127 ++
 .../examples/windowing/SessionWindowing.java    |  168 ++
 .../examples/windowing/TopSpeedWindowing.java   |  210 +++
 .../examples/windowing/WindowWordCount.java     |  132 ++
 .../windowing/util/SessionWindowingData.java    |   27 +
 .../util/TopSpeedWindowingExampleData.java      |  276 ++++
 .../examples/wordcount/PojoExample.java         |  186 +++
 .../streaming/examples/wordcount/WordCount.java |  148 ++
 .../scala/examples/join/WindowJoin.scala        |  156 ++
 .../socket/SocketTextStreamWordCount.scala      |   93 ++
 .../examples/windowing/TopSpeedWindowing.scala  |  150 ++
 .../iteration/IterateExampleITCase.java         |   45 +
 .../join/WindowJoinITCase.java                  |   50 +
 .../ml/IncrementalLearningSkeletonITCase.java   |   42 +
 .../socket/SocketTextStreamWordCountITCase.java |   30 +
 .../twitter/TwitterStreamITCase.java            |   42 +
 .../windowing/SessionWindowingITCase.java       |   42 +
 .../TopSpeedWindowingExampleITCase.java         |   45 +
 .../windowing/WindowWordCountITCase.java        |   50 +
 .../wordcount/PojoExampleITCase.java            |   45 +
 .../wordcount/WordCountITCase.java              |   45 +
 .../join/WindowJoinITCase.java                  |   50 +
 .../socket/SocketTextStreamWordCountITCase.java |   30 +
 .../TopSpeedWindowingExampleITCase.java         |   45 +
 flink-streaming-java/pom.xml                    |  116 ++
 .../flink/streaming/api/CheckpointingMode.java  |   75 +
 .../flink/streaming/api/TimeCharacteristic.java |   81 +
 .../api/checkpoint/CheckpointNotifier.java      |   37 +
 .../streaming/api/checkpoint/Checkpointed.java  |   65 +
 .../checkpoint/CheckpointedAsynchronously.java  |   37 +
 .../BroadcastOutputSelectorWrapper.java         |   45 +
 .../selector/DirectedOutputSelectorWrapper.java |   97 ++
 .../api/collector/selector/OutputSelector.java  |   44 +
 .../selector/OutputSelectorWrapper.java         |   32 +
 .../selector/OutputSelectorWrapperFactory.java  |   33 +
 .../api/datastream/AllWindowedStream.java       |  556 +++++++
 .../api/datastream/CoGroupedStreams.java        |  575 +++++++
 .../api/datastream/ConnectedStreams.java        |  331 ++++
 .../streaming/api/datastream/DataStream.java    | 1077 +++++++++++++
 .../api/datastream/DataStreamSink.java          |   82 +
 .../api/datastream/DataStreamSource.java        |   53 +
 .../api/datastream/IterativeStream.java         |  218 +++
 .../streaming/api/datastream/JoinedStreams.java |  330 ++++
 .../streaming/api/datastream/KeyedStream.java   |  499 ++++++
 .../datastream/SingleOutputStreamOperator.java  |  309 ++++
 .../streaming/api/datastream/SplitStream.java   |   62 +
 .../api/datastream/StreamProjection.java        |  484 ++++++
 .../api/datastream/WindowedStream.java          |  648 ++++++++
 .../api/environment/LocalStreamEnvironment.java |  109 ++
 .../environment/RemoteStreamEnvironment.java    |  253 +++
 .../environment/StreamContextEnvironment.java   |  103 ++
 .../environment/StreamExecutionEnvironment.java | 1454 ++++++++++++++++++
 .../StreamExecutionEnvironmentFactory.java      |   31 +
 .../api/environment/StreamPlanEnvironment.java  |   68 +
 .../functions/AscendingTimestampExtractor.java  |   59 +
 .../api/functions/TimestampExtractor.java       |   69 +
 .../aggregation/AggregationFunction.java        |   35 +
 .../aggregation/ComparableAggregator.java       |   89 ++
 .../api/functions/aggregation/Comparator.java   |  104 ++
 .../functions/aggregation/SumAggregator.java    |   48 +
 .../api/functions/aggregation/SumFunction.java  |  102 ++
 .../api/functions/co/CoFlatMapFunction.java     |   42 +
 .../api/functions/co/CoMapFunction.java         |   41 +
 .../api/functions/co/RichCoFlatMapFunction.java |   40 +
 .../api/functions/co/RichCoMapFunction.java     |   40 +
 .../api/functions/sink/FileSinkFunction.java    |  129 ++
 .../sink/FileSinkFunctionByMillis.java          |   59 +
 .../api/functions/sink/PrintSinkFunction.java   |   96 ++
 .../api/functions/sink/RichSinkFunction.java    |   28 +
 .../api/functions/sink/SinkFunction.java        |   38 +
 .../api/functions/sink/SocketClientSink.java    |  268 ++++
 .../api/functions/sink/WriteFormat.java         |   43 +
 .../api/functions/sink/WriteFormatAsCsv.java    |   49 +
 .../api/functions/sink/WriteFormatAsText.java   |   47 +
 .../api/functions/sink/WriteSinkFunction.java   |   92 ++
 .../sink/WriteSinkFunctionByMillis.java         |   50 +
 .../api/functions/source/ConnectorSource.java   |   38 +
 .../source/EventTimeSourceFunction.java         |   39 +
 .../source/FileMonitoringFunction.java          |  131 ++
 .../api/functions/source/FileReadFunction.java  |   51 +
 .../functions/source/FileSourceFunction.java    |  146 ++
 .../functions/source/FromElementsFunction.java  |  196 +++
 .../functions/source/FromIteratorFunction.java  |   45 +
 .../source/FromSplittableIteratorFunction.java  |   58 +
 .../source/MessageAcknowledingSourceBase.java   |  172 +++
 .../source/ParallelSourceFunction.java          |   34 +
 .../source/RichEventTimeSourceFunction.java     |   47 +
 .../source/RichParallelSourceFunction.java      |   38 +
 .../functions/source/RichSourceFunction.java    |   46 +
 .../source/SocketTextStreamFunction.java        |  146 ++
 .../api/functions/source/SourceFunction.java    |  162 ++
 .../source/StatefulSequenceSource.java          |   86 ++
 .../functions/windowing/AllWindowFunction.java  |   45 +
 .../windowing/FoldAllWindowFunction.java        |   97 ++
 .../functions/windowing/FoldWindowFunction.java |   97 ++
 .../windowing/ReduceAllWindowFunction.java      |   70 +
 .../windowing/ReduceWindowFunction.java         |   50 +
 .../ReduceWindowFunctionWithWindow.java         |   71 +
 .../windowing/RichAllWindowFunction.java        |   25 +
 .../functions/windowing/RichWindowFunction.java |   25 +
 .../api/functions/windowing/WindowFunction.java |   47 +
 .../windowing/delta/CosineDistance.java         |   92 ++
 .../windowing/delta/DeltaFunction.java          |   44 +
 .../windowing/delta/EuclideanDistance.java      |   58 +
 .../delta/ExtractionAwareDeltaFunction.java     |   90 ++
 .../delta/extractor/ArrayFromTuple.java         |   74 +
 .../delta/extractor/ConcatenatedExtract.java    |   68 +
 .../windowing/delta/extractor/Extractor.java    |   43 +
 .../delta/extractor/FieldFromArray.java         |   59 +
 .../delta/extractor/FieldFromTuple.java         |   58 +
 .../delta/extractor/FieldsFromArray.java        |   67 +
 .../delta/extractor/FieldsFromTuple.java        |   53 +
 .../streaming/api/graph/JSONGenerator.java      |  189 +++
 .../flink/streaming/api/graph/StreamConfig.java |  468 ++++++
 .../flink/streaming/api/graph/StreamEdge.java   |  120 ++
 .../flink/streaming/api/graph/StreamGraph.java  |  619 ++++++++
 .../api/graph/StreamGraphGenerator.java         |  538 +++++++
 .../flink/streaming/api/graph/StreamNode.java   |  263 ++++
 .../api/graph/StreamingJobGraphGenerator.java   |  444 ++++++
 .../api/operators/AbstractStreamOperator.java   |  373 +++++
 .../operators/AbstractUdfStreamOperator.java    |  192 +++
 .../api/operators/ChainingStrategy.java         |   47 +
 .../api/operators/OneInputStreamOperator.java   |   47 +
 .../flink/streaming/api/operators/Output.java   |   40 +
 .../api/operators/OutputTypeConfigurable.java   |   42 +
 .../streaming/api/operators/StreamCounter.java  |   42 +
 .../streaming/api/operators/StreamFilter.java   |   44 +
 .../streaming/api/operators/StreamFlatMap.java  |   53 +
 .../api/operators/StreamGroupedFold.java        |  115 ++
 .../api/operators/StreamGroupedReduce.java      |   70 +
 .../streaming/api/operators/StreamMap.java      |   44 +
 .../streaming/api/operators/StreamOperator.java |  146 ++
 .../streaming/api/operators/StreamProject.java  |   64 +
 .../streaming/api/operators/StreamSink.java     |   44 +
 .../streaming/api/operators/StreamSource.java   |  300 ++++
 .../api/operators/StreamingRuntimeContext.java  |  176 +++
 .../api/operators/TimestampedCollector.java     |   67 +
 .../api/operators/TwoInputStreamOperator.java   |   63 +
 .../api/operators/co/CoStreamFlatMap.java       |   87 ++
 .../streaming/api/operators/co/CoStreamMap.java |   71 +
 .../CoFeedbackTransformation.java               |  122 ++
 .../transformations/FeedbackTransformation.java |  124 ++
 .../transformations/OneInputTransformation.java |  127 ++
 .../PartitionTransformation.java                |   82 +
 .../transformations/SelectTransformation.java   |   84 +
 .../api/transformations/SinkTransformation.java |  117 ++
 .../transformations/SourceTransformation.java   |   70 +
 .../transformations/SplitTransformation.java    |   84 +
 .../transformations/StreamTransformation.java   |  321 ++++
 .../transformations/TwoInputTransformation.java |  116 ++
 .../transformations/UnionTransformation.java    |   81 +
 .../streaming/api/watermark/Watermark.java      |   76 +
 .../api/windowing/assigners/GlobalWindows.java  |   96 ++
 .../windowing/assigners/SlidingTimeWindows.java |  109 ++
 .../assigners/TumblingTimeWindows.java          |   94 ++
 .../api/windowing/assigners/WindowAssigner.java |   63 +
 .../api/windowing/evictors/CountEvictor.java    |   54 +
 .../api/windowing/evictors/DeltaEvictor.java    |   74 +
 .../api/windowing/evictors/Evictor.java         |   51 +
 .../api/windowing/evictors/TimeEvictor.java     |   73 +
 .../api/windowing/time/AbstractTime.java        |   98 ++
 .../streaming/api/windowing/time/EventTime.java |   62 +
 .../api/windowing/time/ProcessingTime.java      |   63 +
 .../streaming/api/windowing/time/Time.java      |   66 +
 .../triggers/ContinuousEventTimeTrigger.java    |   90 ++
 .../ContinuousProcessingTimeTrigger.java        |  106 ++
 .../api/windowing/triggers/CountTrigger.java    |   76 +
 .../api/windowing/triggers/DeltaTrigger.java    |   89 ++
 .../windowing/triggers/EventTimeTrigger.java    |   62 +
 .../triggers/ProcessingTimeTrigger.java         |   60 +
 .../api/windowing/triggers/PurgingTrigger.java  |   99 ++
 .../api/windowing/triggers/Trigger.java         |  120 ++
 .../api/windowing/windows/GlobalWindow.java     |  128 ++
 .../api/windowing/windows/TimeWindow.java       |  157 ++
 .../streaming/api/windowing/windows/Window.java |   31 +
 .../streaming/runtime/io/BarrierBuffer.java     |  320 ++++
 .../streaming/runtime/io/BarrierTracker.java    |  205 +++
 .../runtime/io/BlockingQueueBroker.java         |   31 +
 .../streaming/runtime/io/BufferSpiller.java     |  410 +++++
 .../runtime/io/CheckpointBarrierHandler.java    |   65 +
 .../streaming/runtime/io/CollectorWrapper.java  |   61 +
 .../streaming/runtime/io/InputGateUtil.java     |   59 +
 .../runtime/io/RecordWriterOutput.java          |  112 ++
 .../runtime/io/StreamInputProcessor.java        |  216 +++
 .../runtime/io/StreamRecordWriter.java          |  182 +++
 .../runtime/io/StreamTwoInputProcessor.java     |  290 ++++
 .../streaming/runtime/io/StreamingReader.java   |   28 +
 .../operators/BucketStreamSortOperator.java     |  103 ++
 .../operators/ExtractTimestampsOperator.java    |   95 ++
 .../operators/StreamingOperatorMetrics.java     |   27 +
 .../runtime/operators/Triggerable.java          |   37 +
 .../runtime/operators/package-info.java         |   22 +
 ...ractAlignedProcessingTimeWindowOperator.java |  335 ++++
 .../windowing/AbstractKeyedTimePanes.java       |  157 ++
 .../windowing/AccumulatingKeyedTimePanes.java   |  133 ++
 ...ccumulatingProcessingTimeWindowOperator.java |  163 ++
 .../windowing/AggregatingKeyedTimePanes.java    |  106 ++
 ...AggregatingProcessingTimeWindowOperator.java |   50 +
 .../EvictingNonKeyedWindowOperator.java         |   92 ++
 .../windowing/EvictingWindowOperator.java       |   98 ++
 .../runtime/operators/windowing/KeyMap.java     |  651 ++++++++
 .../windowing/NonKeyedWindowOperator.java       |  539 +++++++
 .../operators/windowing/WindowOperator.java     |  625 ++++++++
 .../windowing/buffers/EvictingWindowBuffer.java |   35 +
 .../windowing/buffers/HeapWindowBuffer.java     |   92 ++
 .../buffers/PreAggregatingHeapWindowBuffer.java |   98 ++
 .../windowing/buffers/WindowBuffer.java         |   64 +
 .../windowing/buffers/WindowBufferFactory.java  |   54 +
 .../operators/windowing/package-info.java       |   22 +
 .../partitioner/BroadcastPartitioner.java       |   60 +
 .../partitioner/CustomPartitionerWrapper.java   |   70 +
 .../runtime/partitioner/ForwardPartitioner.java |   46 +
 .../runtime/partitioner/GlobalPartitioner.java  |   48 +
 .../runtime/partitioner/HashPartitioner.java    |   63 +
 .../partitioner/RebalancePartitioner.java       |   49 +
 .../runtime/partitioner/ShufflePartitioner.java |   55 +
 .../runtime/partitioner/StreamPartitioner.java  |   30 +
 .../MultiplexingStreamRecordSerializer.java     |  188 +++
 .../runtime/streamrecord/StreamElement.java     |   62 +
 .../runtime/streamrecord/StreamRecord.java      |  124 ++
 .../streamrecord/StreamRecordSerializer.java    |  146 ++
 .../ExceptionInChainedOperatorException.java    |   45 +
 .../runtime/tasks/OneInputStreamTask.java       |   77 +
 .../streaming/runtime/tasks/OperatorChain.java  |  326 ++++
 .../runtime/tasks/SourceStreamTask.java         |  106 ++
 .../runtime/tasks/StreamIterationHead.java      |  129 ++
 .../runtime/tasks/StreamIterationTail.java      |   92 ++
 .../streaming/runtime/tasks/StreamTask.java     |  616 ++++++++
 .../runtime/tasks/StreamTaskException.java      |   68 +
 .../runtime/tasks/StreamTaskState.java          |  124 ++
 .../runtime/tasks/StreamTaskStateList.java      |   60 +
 .../streaming/runtime/tasks/TimerException.java |   35 +
 .../runtime/tasks/TwoInputStreamTask.java       |  101 ++
 .../streaming/runtime/tasks/package-info.java   |   27 +
 .../flink/streaming/util/FieldAccessor.java     |  249 +++
 .../streaming/util/keys/KeySelectorUtil.java    |  240 +++
 .../serialization/DeserializationSchema.java    |   49 +
 .../serialization/JavaDefaultStringSchema.java  |   47 +
 .../streaming/util/serialization/RawSchema.java |   52 +
 .../util/serialization/SerializationSchema.java |   40 +
 .../util/serialization/SimpleStringSchema.java  |   47 +
 .../TypeInformationSerializationSchema.java     |  118 ++
 .../consumer/StreamTestSingleInputGate.java     |  228 +++
 .../streaming/api/AggregationFunctionTest.java  |  416 +++++
 .../api/ChainedRuntimeContextTest.java          |   80 +
 .../flink/streaming/api/CoStreamTest.java       |  132 ++
 .../flink/streaming/api/DataStreamTest.java     |  694 +++++++++
 .../apache/flink/streaming/api/IterateTest.java |  614 ++++++++
 .../flink/streaming/api/OutputSplitterTest.java |  144 ++
 .../flink/streaming/api/PartitionerTest.java    |  268 ++++
 .../flink/streaming/api/SourceFunctionTest.java |   84 +
 .../api/StreamExecutionEnvironmentTest.java     |  163 ++
 .../streaming/api/StreamingOperatorsITCase.java |  230 +++
 .../flink/streaming/api/TypeFillTest.java       |  152 ++
 .../api/collector/DirectedOutputTest.java       |  119 ++
 .../api/collector/OutputSelectorTest.java       |   59 +
 .../api/complex/ComplexIntegrationTest.java     |  837 ++++++++++
 .../api/functions/FromElementsFunctionTest.java |  265 ++++
 .../api/functions/ListSourceContext.java        |   82 +
 .../api/functions/PrintSinkFunctionTest.java    |  124 ++
 .../functions/sink/SocketClientSinkTest.java    |  303 ++++
 .../source/FileMonitoringFunctionTest.java      |   63 +
 .../source/SocketTextStreamFunctionTest.java    |  349 +++++
 .../delta/extractor/ArrayFromTupleTest.java     |  118 ++
 .../extractor/ConcatenatedExtractTest.java      |   77 +
 .../delta/extractor/FieldFromArrayTest.java     |   54 +
 .../delta/extractor/FieldFromTupleTest.java     |   83 +
 .../delta/extractor/FieldsFromArrayTest.java    |  108 ++
 .../delta/extractor/FieldsFromTupleTest.java    |  106 ++
 .../streaming/api/graph/SlotAllocationTest.java |   56 +
 .../api/graph/StreamGraphGeneratorTest.java     |  301 ++++
 .../graph/StreamingJobGraphGeneratorTest.java   |   91 ++
 .../api/operators/StreamCounterTest.java        |   61 +
 .../api/operators/StreamFilterTest.java         |  134 ++
 .../api/operators/StreamFlatMapTest.java        |  143 ++
 .../api/operators/StreamGroupedFoldTest.java    |  161 ++
 .../api/operators/StreamGroupedReduceTest.java  |  161 ++
 .../streaming/api/operators/StreamMapTest.java  |  128 ++
 .../api/operators/StreamProjectTest.java        |  137 ++
 .../api/operators/co/CoGroupedReduceTest.java   |  125 ++
 .../api/operators/co/CoStreamFlatMapTest.java   |  169 ++
 .../api/operators/co/CoStreamMapTest.java       |  163 ++
 .../api/operators/co/CoWindowTest.java          |  182 +++
 .../api/operators/co/SelfConnectionTest.java    |  180 +++
 .../api/outputformat/CsvOutputFormatITCase.java |   78 +
 .../outputformat/SocketOutputFormatITCase.java  |   52 +
 .../outputformat/TextOutputFormatITCase.java    |   55 +
 .../api/streamtask/MockRecordWriter.java        |   45 +
 .../api/streamtask/StreamIterationHeadTest.java |   51 +
 .../api/streamtask/StreamVertexTest.java        |  187 +++
 .../deltafunction/CosineDistanceTest.java       |   71 +
 .../deltafunction/EuclideanDistanceTest.java    |   72 +
 .../flink/streaming/graph/TranslationTest.java  |   76 +
 .../io/BarrierBufferMassiveRandomTest.java      |  175 +++
 .../streaming/runtime/io/BarrierBufferTest.java |  954 ++++++++++++
 .../runtime/io/BarrierTrackerTest.java          |  367 +++++
 .../streaming/runtime/io/BufferSpillerTest.java |  407 +++++
 .../streaming/runtime/io/MockInputGate.java     |   94 ++
 .../io/SpilledBufferOrEventSequenceTest.java    |  482 ++++++
 .../runtime/io/StreamRecordWriterTest.java      |  131 ++
 .../flink/streaming/runtime/io/TestEvent.java   |   88 ++
 .../runtime/operators/StreamTaskTimerTest.java  |  175 +++
 ...AlignedProcessingTimeWindowOperatorTest.java |  824 ++++++++++
 ...AlignedProcessingTimeWindowOperatorTest.java |  823 ++++++++++
 .../windowing/AllWindowTranslationTest.java     |  215 +++
 .../operators/windowing/CoGroupJoinITCase.java  |  373 +++++
 .../operators/windowing/CollectingOutput.java   |   80 +
 .../EvictingNonKeyedWindowOperatorTest.java     |  173 +++
 .../windowing/EvictingWindowOperatorTest.java   |  182 +++
 .../windowing/KeyMapPutIfAbsentTest.java        |  121 ++
 .../operators/windowing/KeyMapPutTest.java      |  136 ++
 .../runtime/operators/windowing/KeyMapTest.java |  344 +++++
 .../windowing/NonKeyedWindowOperatorTest.java   |  429 ++++++
 .../windowing/TimeWindowTranslationTest.java    |  143 ++
 .../operators/windowing/WindowFoldITCase.java   |  191 +++
 .../operators/windowing/WindowOperatorTest.java |  470 ++++++
 .../windowing/WindowTranslationTest.java        |  265 ++++
 .../partitioner/BroadcastPartitionerTest.java   |   55 +
 .../partitioner/ForwardPartitionerTest.java     |   55 +
 .../partitioner/GlobalPartitionerTest.java      |   50 +
 .../partitioner/HashPartitionerTest.java        |   71 +
 .../partitioner/RebalancePartitionerTest.java   |   56 +
 .../partitioner/ShufflePartitionerTest.java     |   60 +
 .../StreamRecordSerializerTest.java             |   68 +
 .../runtime/tasks/OneInputStreamTaskTest.java   |  334 ++++
 .../tasks/OneInputStreamTaskTestHarness.java    |  104 ++
 .../runtime/tasks/SourceStreamTaskTest.java     |  281 ++++
 .../runtime/tasks/StreamMockEnvironment.java    |  304 ++++
 .../runtime/tasks/StreamTaskTestHarness.java    |  321 ++++
 .../runtime/tasks/StreamTaskTimerITCase.java    |  313 ++++
 .../runtime/tasks/TwoInputStreamTaskTest.java   |  373 +++++
 .../tasks/TwoInputStreamTaskTestHarness.java    |  170 ++
 .../streaming/timestamp/TimestampITCase.java    |  619 ++++++++
 .../streaming/util/EvenOddOutputSelector.java   |   31 +
 .../flink/streaming/util/FieldAccessorTest.java |   75 +
 .../flink/streaming/util/MockContext.java       |  159 ++
 .../apache/flink/streaming/util/MockOutput.java |   50 +
 .../apache/flink/streaming/util/NoOpIntMap.java |   28 +
 .../apache/flink/streaming/util/NoOpSink.java   |   26 +
 .../util/OneInputStreamOperatorTestHarness.java |  159 ++
 .../streaming/util/ReceiveCheckNoOpSink.java    |   42 +
 .../streaming/util/SocketOutputTestBase.java    |  130 ++
 .../streaming/util/SocketProgramITCaseBase.java |   90 ++
 .../streaming/util/SourceFunctionUtil.java      |   75 +
 .../util/StreamingMultipleProgramsTestBase.java |   81 +
 .../util/StreamingProgramTestBase.java          |  111 ++
 .../flink/streaming/util/TestHarnessUtil.java   |   85 +
 .../streaming/util/TestListResultSink.java      |   74 +
 .../flink/streaming/util/TestListWrapper.java   |   64 +
 .../streaming/util/TestStreamEnvironment.java   |   75 +
 .../util/TwoInputStreamOperatorTestHarness.java |  153 ++
 .../TypeInformationSerializationSchemaTest.java |  118 ++
 .../util/keys/ArrayKeySelectorTest.java         |   80 +
 .../src/test/resources/log4j-test.properties    |   27 +
 .../src/test/resources/log4j.properties         |   27 +
 .../src/test/resources/logback-test.xml         |   30 +
 flink-streaming-scala/pom.xml                   |  236 +++
 .../streaming/api/scala/AllWindowedStream.scala |  364 +++++
 .../streaming/api/scala/CoGroupedStreams.scala  |  303 ++++
 .../streaming/api/scala/ConnectedStreams.scala  |  364 +++++
 .../flink/streaming/api/scala/DataStream.scala  |  767 +++++++++
 .../streaming/api/scala/JoinedStreams.scala     |  313 ++++
 .../flink/streaming/api/scala/KeyedStream.scala |  370 +++++
 .../flink/streaming/api/scala/SplitStream.scala |   37 +
 .../api/scala/StreamExecutionEnvironment.scala  |  657 ++++++++
 .../streaming/api/scala/WindowedStream.scala    |  371 +++++
 .../api/scala/function/StatefulFunction.scala   |   48 +
 .../flink/streaming/api/scala/package.scala     |   76 +
 .../scala/api/CsvOutputFormatITCase.java        |   67 +
 .../scala/api/SocketOutputFormatITCase.java     |   36 +
 .../scala/api/StatefulFunctionITCase.java       |   30 +
 .../scala/api/TextOutputFormatITCase.java       |   43 +
 .../api/scala/AllWindowTranslationTest.scala    |  265 ++++
 .../streaming/api/scala/CoGroupJoinITCase.scala |  275 ++++
 .../streaming/api/scala/DataStreamTest.scala    |  543 +++++++
 .../api/scala/OutputFormatTestPrograms.scala    |   78 +
 ...ScalaStreamingMultipleProgramsTestBase.scala |   55 +
 .../streaming/api/scala/StateTestPrograms.scala |   94 ++
 .../api/scala/StreamingOperatorsITCase.scala    |  116 ++
 .../StreamingScalaAPICompletenessTest.scala     |  153 ++
 .../streaming/api/scala/WindowFoldITCase.scala  |  148 ++
 .../api/scala/WindowTranslationTest.scala       |  255 +++
 flink-tests/pom.xml                             |    2 +-
 flink-yarn-tests/pom.xml                        |    2 +-
 pom.xml                                         |    4 +
 983 files changed, 73316 insertions(+), 73356 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/docs/apis/best_practices.md
----------------------------------------------------------------------
diff --git a/docs/apis/best_practices.md b/docs/apis/best_practices.md
index 3de88f0..9ef519b 100644
--- a/docs/apis/best_practices.md
+++ b/docs/apis/best_practices.md
@@ -342,7 +342,7 @@ Change your projects `pom.xml` file like this:
 	</dependency>
 	<dependency>
 		<groupId>org.apache.flink</groupId>
-		<artifactId>flink-streaming-core</artifactId>
+		<artifactId>flink-streaming-java</artifactId>
 		<version>0.10-SNAPSHOT</version>
 		<exclusions>
 			<exclusion>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/docs/apis/streaming_guide.md
----------------------------------------------------------------------
diff --git a/docs/apis/streaming_guide.md b/docs/apis/streaming_guide.md
index 9fce0d7..c655160 100644
--- a/docs/apis/streaming_guide.md
+++ b/docs/apis/streaming_guide.md
@@ -160,7 +160,7 @@ If you want to add Flink to an existing Maven project, add the following entry t
 {% highlight xml %}
 <dependency>
   <groupId>org.apache.flink</groupId>
-  <artifactId>flink-streaming-core</artifactId>
+  <artifactId>flink-streaming-java</artifactId>
   <version>{{site.version }}</version>
 </dependency>
 <dependency>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/docs/internals/stream_checkpointing.md
----------------------------------------------------------------------
diff --git a/docs/internals/stream_checkpointing.md b/docs/internals/stream_checkpointing.md
index 1c8f74f..6bc0f1d 100644
--- a/docs/internals/stream_checkpointing.md
+++ b/docs/internals/stream_checkpointing.md
@@ -141,7 +141,7 @@ It is possible to let an operator continue processing while it stores its state
 After receiving the checkpoint barriers on its inputs, the operator starts the asynchronous snapshot copying of its state. It immediately emits the barrier to its outputs and continues with the regular stream processing. Once the background copy process has completed, it acknowledges the checkpoint to the checkpoint coordinator (the JobManager). The checkpoint is now only complete after all sinks received the barriers and all stateful operators acknowledged their completed backup (which may be later than the barriers reaching the sinks).
 
 User-defined state that is used through the key/value state abstraction can be snapshotted *asynchronously*.
-User functions that implement the interface {% gh_link /flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java "Checkpointed" %} will be snapshotted *synchronously*, while functions that implement {% gh_link /flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java "CheckpointedAsynchronously" %} will be snapshotted *asynchronously*. Note that for the latter, the user function must guarantee that any future modifications to its state to not affect the state object returned by the `snapshotState()` method.
+User functions that implement the interface {% gh_link /flink-staging/flink-streaming/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/Checkpointed.java "Checkpointed" %} will be snapshotted *synchronously*, while functions that implement {% gh_link /flink-staging/flink-streaming/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/checkpoint/CheckpointedAsynchronously.java "CheckpointedAsynchronously" %} will be snapshotted *asynchronously*. Note that for the latter, the user function must guarantee that any future modifications to its state to not affect the state object returned by the `snapshotState()` method.
 
 
 

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-contrib/flink-storm-examples/pom.xml
----------------------------------------------------------------------
diff --git a/flink-contrib/flink-storm-examples/pom.xml b/flink-contrib/flink-storm-examples/pom.xml
index de6c0cb..696fa4b 100644
--- a/flink-contrib/flink-storm-examples/pom.xml
+++ b/flink-contrib/flink-storm-examples/pom.xml
@@ -49,7 +49,7 @@ under the License.
 
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 			<scope>test</scope>
 			<type>test-jar</type>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-contrib/flink-storm/pom.xml
----------------------------------------------------------------------
diff --git a/flink-contrib/flink-storm/pom.xml b/flink-contrib/flink-storm/pom.xml
index 657b974..2424b55 100644
--- a/flink-contrib/flink-storm/pom.xml
+++ b/flink-contrib/flink-storm/pom.xml
@@ -37,7 +37,7 @@ under the License.
 	<dependencies>
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 		</dependency>
 

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-contrib/flink-streaming-contrib/pom.xml
----------------------------------------------------------------------
diff --git a/flink-contrib/flink-streaming-contrib/pom.xml b/flink-contrib/flink-streaming-contrib/pom.xml
index 0979643..37ac7ab 100644
--- a/flink-contrib/flink-streaming-contrib/pom.xml
+++ b/flink-contrib/flink-streaming-contrib/pom.xml
@@ -39,7 +39,7 @@ under the License.
 	<dependencies>
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 		</dependency>
 		<dependency>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-dist/pom.xml
----------------------------------------------------------------------
diff --git a/flink-dist/pom.xml b/flink-dist/pom.xml
index 0623cfd..737aeb4 100644
--- a/flink-dist/pom.xml
+++ b/flink-dist/pom.xml
@@ -97,7 +97,7 @@ under the License.
 
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 		</dependency>
 

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-java8/pom.xml
----------------------------------------------------------------------
diff --git a/flink-java8/pom.xml b/flink-java8/pom.xml
index 5a81ac5..707c795 100644
--- a/flink-java8/pom.xml
+++ b/flink-java8/pom.xml
@@ -60,7 +60,7 @@ under the License.
 		
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 		</dependency>
 

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml b/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml
index f98002b..24f2199 100644
--- a/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml
+++ b/flink-quickstart/flink-quickstart-java/src/main/resources/archetype-resources/pom.xml
@@ -79,7 +79,7 @@ under the License.
 		</dependency>
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${flink.version}</version>
 		</dependency>
 		<dependency>
@@ -122,7 +122,7 @@ under the License.
 									<exclude>org.apache.flink:flink-java-examples</exclude>
 									<exclude>org.apache.flink:flink-scala-examples</exclude>
 									<exclude>org.apache.flink:flink-streaming-examples</exclude>
-									<exclude>org.apache.flink:flink-streaming-core</exclude>
+									<exclude>org.apache.flink:flink-streaming-java</exclude>
 
 									<!-- Also exclude very big transitive dependencies of Flink
 
@@ -328,7 +328,7 @@ under the License.
 				</dependency>
 				<dependency>
 					<groupId>org.apache.flink</groupId>
-					<artifactId>flink-streaming-core</artifactId>
+					<artifactId>flink-streaming-java</artifactId>
 					<version>${flink.version}</version>
 					<scope>provided</scope>
 				</dependency>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml b/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml
index d365da2..5b86928 100644
--- a/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml
+++ b/flink-quickstart/flink-quickstart-scala/src/main/resources/archetype-resources/pom.xml
@@ -126,7 +126,7 @@ under the License.
 									<exclude>org.apache.flink:flink-java-examples</exclude>
 									<exclude>org.apache.flink:flink-scala-examples</exclude>
 									<exclude>org.apache.flink:flink-streaming-examples</exclude>
-									<exclude>org.apache.flink:flink-streaming-core</exclude>
+									<exclude>org.apache.flink:flink-streaming-java</exclude>
 
 									<!-- Also exclude very big transitive dependencies of Flink
 
@@ -334,7 +334,7 @@ under the License.
 				</dependency>
 				<dependency>
 					<groupId>org.apache.flink</groupId>
-					<artifactId>flink-streaming-core</artifactId>
+					<artifactId>flink-streaming-java</artifactId>
 					<version>${flink.version}</version>
 					<scope>provided</scope>
 				</dependency>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-staging/flink-fs-tests/pom.xml
----------------------------------------------------------------------
diff --git a/flink-staging/flink-fs-tests/pom.xml b/flink-staging/flink-fs-tests/pom.xml
index 021d822..4dc86bf 100644
--- a/flink-staging/flink-fs-tests/pom.xml
+++ b/flink-staging/flink-fs-tests/pom.xml
@@ -52,7 +52,7 @@ under the License.
 		
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 			<scope>test</scope>
 		</dependency>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-staging/flink-hbase/pom.xml
----------------------------------------------------------------------
diff --git a/flink-staging/flink-hbase/pom.xml b/flink-staging/flink-hbase/pom.xml
index 5dc80d9..0612ffd 100644
--- a/flink-staging/flink-hbase/pom.xml
+++ b/flink-staging/flink-hbase/pom.xml
@@ -59,7 +59,7 @@ under the License.
 		
 		<dependency>
 			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
+			<artifactId>flink-streaming-java</artifactId>
 			<version>${project.version}</version>
 		</dependency>
 		

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/pom.xml
----------------------------------------------------------------------
diff --git a/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/pom.xml b/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/pom.xml
deleted file mode 100644
index c42e9b0..0000000
--- a/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/pom.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-	<modelVersion>4.0.0</modelVersion>
-
-	<parent>
-		<groupId>org.apache.flink</groupId>
-		<artifactId>flink-streaming-connectors-parent</artifactId>
-		<version>0.10-SNAPSHOT</version>
-		<relativePath>..</relativePath>
-	</parent>
-
-	<artifactId>flink-connector-elasticsearch</artifactId>
-	<name>flink-connector-elasticsearch</name>
-
-	<packaging>jar</packaging>
-
-	<!-- Allow users to pass custom connector versions -->
-	<properties>
-		<elasticsearch.version>1.7.1</elasticsearch.version>
-	</properties>
-
-	<dependencies>
-
-		<dependency>
-			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-streaming-core</artifactId>
-			<version>${project.version}</version>
-		</dependency>
-
-        <dependency>
-            <groupId>org.elasticsearch</groupId>
-            <artifactId>elasticsearch</artifactId>
-            <version>${elasticsearch.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>com.google.guava</groupId>
-            <artifactId>guava</artifactId>
-            <version>${guava.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.flink</groupId>
-            <artifactId>flink-streaming-core</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-            <type>test-jar</type>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.flink</groupId>
-            <artifactId>flink-tests</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.flink</groupId>
-            <artifactId>flink-test-utils</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-    </dependencies>
-
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-surefire-plugin</artifactId>
-				<configuration>
-					<rerunFailingTestsCount>3</rerunFailingTestsCount>
-				</configuration>
-			</plugin>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-failsafe-plugin</artifactId>
-				<configuration>
-					<rerunFailingTestsCount>3</rerunFailingTestsCount>
-				</configuration>
-			</plugin>
-		</plugins>
-	</build>
-
-</project>

http://git-wip-us.apache.org/repos/asf/flink/blob/06f6ac5d/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSink.java
----------------------------------------------------------------------
diff --git a/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSink.java b/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSink.java
deleted file mode 100644
index 546ec8d..0000000
--- a/flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-elasticsearch/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSink.java
+++ /dev/null
@@ -1,315 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.streaming.connectors.elasticsearch;
-
-import org.apache.flink.api.java.utils.ParameterTool;
-import org.apache.flink.configuration.Configuration;
-import org.apache.flink.streaming.api.functions.sink.RichSinkFunction;
-import org.elasticsearch.action.bulk.BulkItemResponse;
-import org.elasticsearch.action.bulk.BulkProcessor;
-import org.elasticsearch.action.bulk.BulkRequest;
-import org.elasticsearch.action.bulk.BulkResponse;
-import org.elasticsearch.action.index.IndexRequest;
-import org.elasticsearch.client.Client;
-import org.elasticsearch.client.transport.TransportClient;
-import org.elasticsearch.cluster.node.DiscoveryNode;
-import org.elasticsearch.common.collect.ImmutableList;
-import org.elasticsearch.common.settings.ImmutableSettings;
-import org.elasticsearch.common.settings.Settings;
-import org.elasticsearch.common.transport.TransportAddress;
-import org.elasticsearch.common.unit.ByteSizeUnit;
-import org.elasticsearch.common.unit.ByteSizeValue;
-import org.elasticsearch.common.unit.TimeValue;
-import org.elasticsearch.node.Node;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.concurrent.atomic.AtomicReference;
-
-import static org.elasticsearch.node.NodeBuilder.nodeBuilder;
-
-
-/**
- * Sink that emits its input elements to an Elasticsearch cluster.
- *
- * <p>
- * When using the first constructor {@link #ElasticsearchSink(java.util.Map, IndexRequestBuilder)}
- * the sink will create a local {@link Node} for communicating with the
- * Elasticsearch cluster. When using the second constructor
- * {@link #ElasticsearchSink(java.util.Map, IndexRequestBuilder)} a {@link TransportClient} will
- * be used instead.
- *
- * <p>
- * <b>Attention: </b> When using the {@code TransportClient} the sink will fail if no cluster
- * can be connected to. With the {@code Node Client} the sink will block and wait for a cluster
- * to come online.
- *
- * <p>
- * The {@link Map} passed to the constructor is forwarded to Elasticsearch when creating
- * the {@link Node} or {@link TransportClient}. The config keys can be found in the Elasticsearch
- * documentation. An important setting is {@code cluster.name}, this should be set to the name
- * of the cluster that the sink should emit to.
- *
- * <p>
- * Internally, the sink will use a {@link BulkProcessor} to send {@link IndexRequest IndexRequests}.
- * This will buffer elements before sending a request to the cluster. The behaviour of the
- * {@code BulkProcessor} can be configured using these config keys:
- * <ul>
- *   <li> {@code bulk.flush.max.actions}: Maximum amount of elements to buffer
- *   <li> {@code bulk.flush.max.size.mb}: Maximum amount of data (in megabytes) to buffer
- *   <li> {@code bulk.flush.interval.ms}: Interval at which to flush data regardless of the other two
- *   settings in milliseconds
- * </ul>
- *
- * <p>
- * You also have to provide an {@link IndexRequestBuilder}. This is used to create an
- * {@link IndexRequest} from an element that needs to be added to Elasticsearch. See
- * {@link org.apache.flink.streaming.connectors.elasticsearch.IndexRequestBuilder} for an example.
- *
- * @param <T> Type of the elements emitted by this sink
- */
-public class ElasticsearchSink<T> extends RichSinkFunction<T> {
-
-	public static final String CONFIG_KEY_BULK_FLUSH_MAX_ACTIONS = "bulk.flush.max.actions";
-	public static final String CONFIG_KEY_BULK_FLUSH_MAX_SIZE_MB = "bulk.flush.max.size.mb";
-	public static final String CONFIG_KEY_BULK_FLUSH_INTERVAL_MS = "bulk.flush.interval.ms";
-
-	private static final long serialVersionUID = 1L;
-
-	private static final Logger LOG = LoggerFactory.getLogger(ElasticsearchSink.class);
-
-	/**
-	 * The user specified config map that we forward to Elasticsearch when we create the Client.
-	 */
-	private final Map<String, String> userConfig;
-
-	/**
-	 * The list of nodes that the TransportClient should connect to. This is null if we are using
-	 * an embedded Node to get a Client.
-	 */
-	private final List<TransportAddress> transportNodes;
-
-	/**
-	 * The builder that is used to construct an {@link IndexRequest} from the incoming element.
-	 */
-	private final IndexRequestBuilder<T> indexRequestBuilder;
-
-	/**
-	 * The embedded Node that is used to communicate with the Elasticsearch cluster. This is null
-	 * if we are using a TransportClient.
-	 */
-	private transient Node node;
-
-	/**
-	 * The Client that was either retrieved from a Node or is a TransportClient.
-	 */
-	private transient Client client;
-
-	/**
-	 * Bulk processor that was created using the client
-	 */
-	private transient BulkProcessor bulkProcessor;
-
-	/**
-	 * This is set from inside the BulkProcessor listener if there where failures in processing.
-	 */
-	private final AtomicBoolean hasFailure = new AtomicBoolean(false);
-
-	/**
-	 * This is set from inside the BulkProcessor listener if a Throwable was thrown during processing.
-	 */
-	private final AtomicReference<Throwable> failureThrowable = new AtomicReference<>();
-
-	/**
-	 * Creates a new ElasticsearchSink that connects to the cluster using an embedded Node.
-	 *
-	 * @param userConfig The map of user settings that are passed when constructing the Node and BulkProcessor
-	 * @param indexRequestBuilder This is used to generate the IndexRequest from the incoming element
-	 */
-	public ElasticsearchSink(Map<String, String> userConfig, IndexRequestBuilder<T> indexRequestBuilder) {
-		this.userConfig = userConfig;
-		this.indexRequestBuilder = indexRequestBuilder;
-		transportNodes = null;
-	}
-
-	/**
-	 * Creates a new ElasticsearchSink that connects to the cluster using a TransportClient.
-	 *
-	 * @param userConfig The map of user settings that are passed when constructing the TransportClient and BulkProcessor
-	 * @param transportNodes The Elasticsearch Nodes to which to connect using a {@code TransportClient}
-	 * @param indexRequestBuilder This is used to generate the IndexRequest from the incoming element
-	 *
-	 */
-	public ElasticsearchSink(Map<String, String> userConfig, List<TransportAddress> transportNodes, IndexRequestBuilder<T> indexRequestBuilder) {
-		this.userConfig = userConfig;
-		this.indexRequestBuilder = indexRequestBuilder;
-		this.transportNodes = transportNodes;
-	}
-
-	/**
-	 * Initializes the connection to Elasticsearch by either creating an embedded
-	 * {@link org.elasticsearch.node.Node} and retrieving the
-	 * {@link org.elasticsearch.client.Client} from it or by creating a
-	 * {@link org.elasticsearch.client.transport.TransportClient}.
-	 */
-	@Override
-	public void open(Configuration configuration) {
-		if (transportNodes == null) {
-			// Make sure that we disable http access to our embedded node
-			Settings settings =
-					ImmutableSettings.settingsBuilder()
-							.put(userConfig)
-							.put("http.enabled", false)
-							.build();
-
-			node =
-					nodeBuilder()
-							.settings(settings)
-							.client(true)
-							.data(false)
-							.node();
-
-			client = node.client();
-
-			if (LOG.isInfoEnabled()) {
-				LOG.info("Created Elasticsearch Client {} from embedded Node", client);
-			}
-
-		} else {
-			Settings settings = ImmutableSettings.settingsBuilder()
-					.put(userConfig)
-					.build();
-
-			TransportClient transportClient = new TransportClient(settings);
-			for (TransportAddress transport: transportNodes) {
-				transportClient.addTransportAddress(transport);
-			}
-
-			// verify that we actually are connected to a cluster
-			ImmutableList<DiscoveryNode> nodes = transportClient.connectedNodes();
-			if (nodes.isEmpty()) {
-				throw new RuntimeException("Client is not connected to any Elasticsearch nodes!");
-			} else {
-				if (LOG.isDebugEnabled()) {
-					LOG.debug("Connected to nodes: " + nodes.toString());
-				}
-			}
-
-			client = transportClient;
-
-			if (LOG.isInfoEnabled()) {
-				LOG.info("Created Elasticsearch TransportClient {}", client);
-			}
-		}
-
-		BulkProcessor.Builder bulkProcessorBuilder = BulkProcessor.builder(
-				client,
-				new BulkProcessor.Listener() {
-					@Override
-					public void beforeBulk(long executionId,
-							BulkRequest request) {
-
-					}
-
-					@Override
-					public void afterBulk(long executionId,
-							BulkRequest request,
-							BulkResponse response) {
-						if (response.hasFailures()) {
-							for (BulkItemResponse itemResp : response.getItems()) {
-								if (itemResp.isFailed()) {
-									LOG.error("Failed to index document in Elasticsearch: " + itemResp.getFailureMessage());
-									failureThrowable.compareAndSet(null, new RuntimeException(itemResp.getFailureMessage()));
-								}
-							}
-							hasFailure.set(true);
-						}
-					}
-
-					@Override
-					public void afterBulk(long executionId,
-							BulkRequest request,
-							Throwable failure) {
-						LOG.error(failure.getMessage());
-						failureThrowable.compareAndSet(null, failure);
-						hasFailure.set(true);
-					}
-				});
-
-		// This makes flush() blocking
-		bulkProcessorBuilder.setConcurrentRequests(0);
-
-		ParameterTool params = ParameterTool.fromMap(userConfig);
-
-		if (params.has(CONFIG_KEY_BULK_FLUSH_MAX_ACTIONS)) {
-			bulkProcessorBuilder.setBulkActions(params.getInt(CONFIG_KEY_BULK_FLUSH_MAX_ACTIONS));
-		}
-
-		if (params.has(CONFIG_KEY_BULK_FLUSH_MAX_SIZE_MB)) {
-			bulkProcessorBuilder.setBulkSize(new ByteSizeValue(params.getInt(
-					CONFIG_KEY_BULK_FLUSH_MAX_SIZE_MB), ByteSizeUnit.MB));
-		}
-
-		if (params.has(CONFIG_KEY_BULK_FLUSH_INTERVAL_MS)) {
-			bulkProcessorBuilder.setFlushInterval(TimeValue.timeValueMillis(params.getInt(CONFIG_KEY_BULK_FLUSH_INTERVAL_MS)));
-		}
-
-		bulkProcessor = bulkProcessorBuilder.build();
-	}
-
-	@Override
-	public void invoke(T element) {
-		IndexRequest indexRequest = indexRequestBuilder.createIndexRequest(element, getRuntimeContext());
-
-		if (LOG.isDebugEnabled()) {
-			LOG.debug("Emitting IndexRequest: {}", indexRequest);
-		}
-
-		bulkProcessor.add(indexRequest);
-	}
-
-	@Override
-	public void close() {
-		if (bulkProcessor != null) {
-			bulkProcessor.close();
-			bulkProcessor = null;
-		}
-
-		if (client != null) {
-			client.close();
-		}
-
-		if (node != null) {
-			node.close();
-		}
-
-		if (hasFailure.get()) {
-			Throwable cause = failureThrowable.get();
-			if (cause != null) {
-				throw new RuntimeException("An error occured in ElasticsearchSink.", cause);
-			} else {
-				throw new RuntimeException("An error occured in ElasticsearchSink.");
-
-			}
-		}
-	}
-
-}


Mime
View raw message