提交 386a3328 编写于 作者: M Márton Balassi 提交者: Stephan Ewen

[streaming] Licensing added

上级 f2448035
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.examples.iterative.collaborativefilter; package eu.stratosphere.streaming.examples.iterative.collaborativefilter;
public class CollaborativeFilteringMap { public class CollaborativeFilteringMap {
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.examples.iterative.kmeans; package eu.stratosphere.streaming.examples.iterative.kmeans;
public class KMeansMap { public class KMeansMap {
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.examples.iterative.pagerank; package eu.stratosphere.streaming.examples.iterative.pagerank;
public class PageRankMap { public class PageRankMap {
......
...@@ -32,7 +32,7 @@ public class SSSPLocal { ...@@ -32,7 +32,7 @@ public class SSSPLocal {
StreamExecutionEnvironment env = new StreamExecutionEnvironment(); StreamExecutionEnvironment env = new StreamExecutionEnvironment();
// @SuppressWarnings("unused") // @SuppressWarnings("unused")
// DataStream<Tuple2<String, Integer>> dataStream = context // DataStream<Tuple2<String, Integer>> dataStream = env
// .addSource(new SSSPSource()) // .addSource(new SSSPSource())
// .flatMap(new SSSPCounter()) // .flatMap(new SSSPCounter())
// .addSink(new SSSPSink()); // .addSink(new SSSPSink());
......
...@@ -22,15 +22,16 @@ import eu.stratosphere.streaming.api.StreamExecutionEnvironment; ...@@ -22,15 +22,16 @@ import eu.stratosphere.streaming.api.StreamExecutionEnvironment;
public class WindowWordCountLocal { public class WindowWordCountLocal {
public static void main(String[] args) { public static void main(String[] args) {
StreamExecutionEnvironment context = new StreamExecutionEnvironment(); StreamExecutionEnvironment env = new StreamExecutionEnvironment();
@SuppressWarnings("unused") @SuppressWarnings("unused")
DataStream<Tuple3<String, Integer, Long>> dataStream = context DataStream<Tuple3<String, Integer, Long>> dataStream = env
.addSource(new WindowWordCountSource()) .addSource(new WindowWordCountSource())
.flatMap(new WindowWordCountSplitter()) .flatMap(new WindowWordCountSplitter())
.partitionBy(0) .partitionBy(0)
.flatMap(new WindowWordCountCounter()) .flatMap(new WindowWordCountCounter())
.addSink(new WindowWordCountSink()); .addSink(new WindowWordCountSink());
context.execute(); env.execute();
} }
} }
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* *
**********************************************************************************************************************/ **********************************************************************************************************************/
package eu.stratosphere.streaming.util; package eu.stratosphere.streaming.util;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.util; package eu.stratosphere.streaming.util;
import java.io.BufferedReader; import java.io.BufferedReader;
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.api; package eu.stratosphere.streaming.api;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.api; package eu.stratosphere.streaming.api;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.api.streamrecord; package eu.stratosphere.streaming.api.streamrecord;
import java.io.Serializable; import java.io.Serializable;
......
/***********************************************************************************************************************
*
* Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed 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 eu.stratosphere.streaming.api.streamrecord; package eu.stratosphere.streaming.api.streamrecord;
import eu.stratosphere.api.java.tuple.Tuple1; import eu.stratosphere.api.java.tuple.Tuple1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册