Package eu.stratosphere.api.java

Examples of eu.stratosphere.api.java.ExecutionEnvironment.execute()


                 )
             .equalTo(0)
             .with(new CustT3Join());
     
      joinDs.writeAsCsv(resultPath);
      env.execute();
     
      // return expected result
      return "Hi,Hi\n" +
          "Hello,Hello\n" +
          "Hello world,Hello\n";
View Full Code Here


               .projectFirst(0)
               .projectSecond(4,1)
               .types(String.class, Long.class, String.class, Integer.class, Long.class, Long.class);
       
        joinDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "Hi,1,Hallo,1,1,1\n" +
            "Hello,2,Hallo Welt,2,2,2\n" +
            "Hello world,2,Hallo Welt,3,2,2\n";
View Full Code Here

               .projectSecond(4,1)
               .projectFirst(0)
               .types(String.class, String.class, Long.class, Long.class, Long.class, Integer.class);
       
        joinDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "Hallo,Hi,1,1,1,1\n" +
            "Hallo Welt,Hello,2,2,2,2\n" +
            "Hallo Welt,Hello world,2,2,2,3\n";
View Full Code Here

                     }
                   })
               .with(new T3CustJoin());
       
        joinDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "Hi,Hello\n" +
            "Hello,Hello world\n" +
            "Hello world,Hello world\n";
View Full Code Here

                     }
                   }
                );
                                       
        joinDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "1,0,Hi,1,0,Hi\n" +
            "2,1,Hello,2,1,Hello\n" +
            "2,1,Hello,2,2,Hello world\n" +
View Full Code Here

        DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env);
        DataSet<Tuple2<Integer, Long>> reduceDs = ds.
            groupBy(1).reduceGroup(new Tuple3GroupReduce());
       
        reduceDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "1,1\n" +
            "5,2\n" +
            "15,3\n" +
View Full Code Here

        DataSet<Tuple5<Integer, Long, Integer, String, Long>> ds = CollectionDataSets.get5TupleDataSet(env);
        DataSet<Tuple5<Integer, Long, Integer, String, Long>> reduceDs = ds.
            groupBy(4,0).reduceGroup(new Tuple5GroupReduce());
       
        reduceDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "1,1,0,P-),1\n" +
            "2,3,0,P-),1\n" +
            "2,2,0,P-),2\n" +
View Full Code Here

        DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env);
        DataSet<Tuple3<Integer, Long, String>> reduceDs = ds.
            groupBy(1).sortGroup(2,Order.ASCENDING).reduceGroup(new Tuple3SortedGroupReduce());
       
        reduceDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "1,1,Hi\n" +
            "5,2,Hello-Hello world\n" +
            "15,3,Hello world, how are you?-I am fine.-Luke Skywalker\n" +
View Full Code Here

                    return in.f1;
                  }
                }).reduceGroup(new Tuple3GroupReduce());
       
        reduceDs.writeAsCsv(resultPath);
        env.execute();
       
        // return expected result
        return "1,1\n" +
            "5,2\n" +
            "15,3\n" +
View Full Code Here

                    return in.myInt;
                  }
                }).reduceGroup(new CustomTypeGroupReduce());
       
        reduceDs.writeAsText(resultPath);
        env.execute();
       
        // return expected result
        return "1,0,Hello!\n" +
            "2,3,Hello!\n" +
            "3,12,Hello!\n" +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.