flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trohrm...@apache.org
Subject [2/2] flink git commit: [doc] Fix Documentation formatting for recently added ExecutionEnvironment.readSequenceFile()
Date Fri, 20 Nov 2015 15:19:47 GMT
[doc] Fix Documentation formatting for recently added ExecutionEnvironment.readSequenceFile()

This closes #1389.


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

Branch: refs/heads/release-0.10
Commit: 968d8b4969e0e5a2db3e389efd325e9ca198ad07
Parents: dd5dede
Author: smarthi <smarthi@apache.org>
Authored: Fri Nov 20 09:34:55 2015 -0500
Committer: Till Rohrmann <trohrmann@apache.org>
Committed: Fri Nov 20 16:19:25 2015 +0100

----------------------------------------------------------------------
 docs/apis/programming_guide.md | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/968d8b49/docs/apis/programming_guide.md
----------------------------------------------------------------------
diff --git a/docs/apis/programming_guide.md b/docs/apis/programming_guide.md
index 8c96980..31b8969 100644
--- a/docs/apis/programming_guide.md
+++ b/docs/apis/programming_guide.md
@@ -1783,10 +1783,12 @@ DataSet<Person>> csvInput = env.readCsvFile("hdfs:///the/CSV/file")
                                                  
 
 // read a file from the specified path of type TextInputFormat 
-DataSet<Tuple2<LongWritable, Text>> tuples = env.readHadoopFile(new TextInputFormat(),
LongWritable.class, Text.class, "hdfs://nnHost:nnPort/path/to/file");
+DataSet<Tuple2<LongWritable, Text>> tuples =
+ env.readHadoopFile(new TextInputFormat(), LongWritable.class, Text.class, "hdfs://nnHost:nnPort/path/to/file");
                          
 // read a file from the specified path of type SequenceFileInputFormat
-DataSet<Tuple2<IntWritable, Text>> tuples = env.readSequenceFile(IntWritable.class,
Text.class, "hdfs://nnHost:nnPort/path/to/file");
+DataSet<Tuple2<IntWritable, Text>> tuples =
+ env.readSequenceFile(IntWritable.class, Text.class, "hdfs://nnHost:nnPort/path/to/file");
 
 // creates a set from some given elements
 DataSet<String> value = env.fromElements("Foo", "bar", "foobar", "fubar");
@@ -1941,14 +1943,16 @@ val values = env.fromElements("Foo", "bar", "foobar", "fubar")
 
 // generate a number sequence
 val numbers = env.generateSequence(1, 10000000);
-{% endhighlight %}
 
 // read a file from the specified path of type TextInputFormat 
-val tuples = env.readHadoopFile(new TextInputFormat, classOf[LongWritable], classOf[Text],
"hdfs://nnHost:nnPort/path/to/file")
+val tuples = env.readHadoopFile(new TextInputFormat, classOf[LongWritable],
+ classOf[Text], "hdfs://nnHost:nnPort/path/to/file")
                          
 // read a file from the specified path of type SequenceFileInputFormat
-val tuples = env.readSequenceFile(classOf[IntWritable], classOf[Text], "hdfs://nnHost:nnPort/path/to/file")
+val tuples = env.readSequenceFile(classOf[IntWritable], classOf[Text],
+ "hdfs://nnHost:nnPort/path/to/file")
 
+{% endhighlight %}
 
 #### Configuring CSV Parsing
 


Mime
View raw message