flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject flink git commit: [doc] [hotfix] Fix Gelly readCsvFile example
Date Thu, 14 Jul 2016 13:57:50 GMT
Repository: flink
Updated Branches:
  refs/heads/master f1d79f1d9 -> 64aa7c899


[doc] [hotfix] Fix Gelly readCsvFile example


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

Branch: refs/heads/master
Commit: 64aa7c8996c28eb1710a5e25cc65f41a23f33c5c
Parents: f1d79f1
Author: vasia <vasia@apache.org>
Authored: Thu Jul 14 15:54:37 2016 +0200
Committer: vasia <vasia@apache.org>
Committed: Thu Jul 14 15:55:34 2016 +0200

----------------------------------------------------------------------
 docs/apis/batch/libs/gelly.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/64aa7c89/docs/apis/batch/libs/gelly.md
----------------------------------------------------------------------
diff --git a/docs/apis/batch/libs/gelly.md b/docs/apis/batch/libs/gelly.md
index f063f09..f0bf480 100644
--- a/docs/apis/batch/libs/gelly.md
+++ b/docs/apis/batch/libs/gelly.md
@@ -190,9 +190,9 @@ val graph = Graph.fromTuple2DataSet(edges, env)
 {% highlight java %}
 ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
 
-DataSet<Tuple2<String, Long>> vertexTuples = env.readCsvFile("path/to/vertex/input");
+DataSet<Tuple2<String, Long>> vertexTuples = env.readCsvFile("path/to/vertex/input").types(String.class,
Long.class);
 
-DataSet<Tuple3<String, String, Double>> edgeTuples = env.readCsvFile("path/to/edge/input");
+DataSet<Tuple3<String, String, Double>> edgeTuples = env.readCsvFile("path/to/edge/input").types(String.class,
String.class, Double.class);
 
 Graph<String, Long, Double> graph = Graph.fromTupleDataSet(vertexTuples, edgeTuples,
env);
 {% endhighlight %}


Mime
View raw message