private static DataSet<Tuple5<Integer, String, String, String, Integer>> getOrdersDataSet(ExecutionEnvironment env) { return env.readCsvFile(ordersPath) .fieldDelimiter('|') .includeFields("101011010") .types(Integer.class, String.class, String.class, String.class, Integer.class); }
private static DataSet<Lineitem> getLineitemDataSet(ExecutionEnvironment env) { return env.readCsvFile(lineitemPath) .fieldDelimiter('|') .includeFields("1000011000100000") .tupleType(Lineitem.class); }
private static DataSet<Customer> getCustomerDataSet(ExecutionEnvironment env) { return env.readCsvFile(customerPath) .fieldDelimiter('|') .includeFields("10000010") .tupleType(Customer.class); }
private static DataSet<Customer> getCustomerDataSet(ExecutionEnvironment env) { return env.readCsvFile(customerPath) .fieldDelimiter('|') .includeFields("10000010") .tupleType(Customer.class); }
private static DataSet<Tuple3<Integer, Integer, String>> getOrdersDataSet(ExecutionEnvironment env) { return env.readCsvFile(ordersPath) .fieldDelimiter('|') .includeFields("110010000") .types(Integer.class, Integer.class, String.class); }
private static DataSet<Tuple2<Integer, Double>> getLineitemDataSet(ExecutionEnvironment env) { return env.readCsvFile(lineitemPath) .fieldDelimiter('|') .includeFields("1000010000000000") .types(Integer.class, Double.class); }
private static DataSet<Tuple3<Integer, Integer, String>> getOrdersDataSet(ExecutionEnvironment env) { return env.readCsvFile(ordersPath) .fieldDelimiter('|') .includeFields("110010000") .types(Integer.class, Integer.class, String.class); }
private static DataSet<Tuple2<Integer, String>> getNationsDataSet(ExecutionEnvironment env) { return env.readCsvFile(nationPath) .fieldDelimiter('|') .includeFields("1100") .types(Integer.class, String.class); }
private static DataSet<Tuple4<Integer, Double, Double, String>> getLineitemDataSet(ExecutionEnvironment env) { return env.readCsvFile(lineitemPath) .fieldDelimiter('|') .includeFields("1000011010000000") .types(Integer.class, Double.class, Double.class, String.class); }
private static DataSet<Tuple5<Integer, String, String, Integer, Double>> getCustomerDataSet(ExecutionEnvironment env) { return env.readCsvFile(customerPath) .fieldDelimiter('|') .includeFields("11110100") .types(Integer.class, String.class, String.class, Integer.class, Double.class); }
private static DataSet<Tuple4<Integer, Double, Double, String>> getLineitemDataSet(ExecutionEnvironment env) { return env.readCsvFile(lineitemPath) .fieldDelimiter('|') .includeFields("1000011010000000") .types(Integer.class, Double.class, Double.class, String.class); }
private static DataSet<Tuple5<Integer, String, String, String, Integer>> getOrdersDataSet(ExecutionEnvironment env) { return env.readCsvFile(ordersPath) .fieldDelimiter('|') .includeFields("101011010") .types(Integer.class, String.class, String.class, String.class, Integer.class); }
private static DataSet<Tuple2<String, String>> getVisitsDataSet(ExecutionEnvironment env) { // Create DataSet for visits relation (URL, Date) if(fileOutput) { return env.readCsvFile(visitsPath) .fieldDelimiter('|') .includeFields("011000000") .types(String.class, String.class); } else { return WebLogData.getVisitDataSet(env); } }
private static DataSet<Tuple2<String, String>> getVisitsDataSet(ExecutionEnvironment env) { // Create DataSet for visits relation (URL, Date) if(fileOutput) { return env.readCsvFile(visitsPath) .fieldDelimiter('|') .includeFields("011000000") .types(String.class, String.class); } else { return WebLogData.getVisitDataSet(env); } }
private static DataSet<Edge> getEdgeDataSet(ExecutionEnvironment env) { if(fileOutput) { return env.readCsvFile(edgePath) .fieldDelimiter(' ') .includeFields(true, true) .types(Integer.class, Integer.class) .map(new TupleEdgeConverter()); } else { return EnumTrianglesData.getDefaultEdgeDataSet(env); } }
private static DataSet<Point> getPointDataSet(ExecutionEnvironment env) { if(fileOutput) { // read points from CSV file return env.readCsvFile(pointsPath) .fieldDelimiter(' ') .includeFields(true, true) .types(Double.class, Double.class) .map(new TuplePointConverter()); } else { return KMeansData.getDefaultPointDataSet(env); } }
private static DataSet<Edge> getEdgeDataSet(ExecutionEnvironment env) { if(fileOutput) { return env.readCsvFile(edgePath) .fieldDelimiter(' ') .includeFields(true, true) .types(Integer.class, Integer.class) .map(new TupleEdgeConverter()); } else { return EnumTrianglesData.getDefaultEdgeDataSet(env); } }
private static DataSet<Edge> getEdgeDataSet(ExecutionEnvironment env) { if(fileOutput) { return env.readCsvFile(edgePath) .fieldDelimiter(' ') .includeFields(true, true) .types(Integer.class, Integer.class) .map(new TupleEdgeConverter()); } else { return EnumTrianglesData.getDefaultEdgeDataSet(env); } }
private static DataSet<Point> getPointDataSet(ExecutionEnvironment env) { if(fileOutput) { // read points from CSV file return env.readCsvFile(pointsPath) .fieldDelimiter(' ') .includeFields(true, true) .types(Double.class, Double.class) .map(new TuplePointConverter()); } else { return KMeansData.getDefaultPointDataSet(env); } }
private static DataSet<Centroid> getCentroidDataSet(ExecutionEnvironment env) { if(fileOutput) { return env.readCsvFile(centersPath) .fieldDelimiter(' ') .includeFields(true, true, true) .types(Integer.class, Double.class, Double.class) .map(new TupleCentroidConverter()); } else { return KMeansData.getDefaultCentroidDataSet(env); } }