[
https://issues.apache.org/jira/browse/FLINK-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14983549#comment-14983549
]
ASF GitHub Bot commented on FLINK-2918:
---------------------------------------
Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1299#discussion_r43560441
--- Diff: docs/apis/programming_guide.md ---
@@ -1772,9 +1779,16 @@ DataSet<Tuple2<String, Double>> csvInput =
env.readCsvFile("hdfs:///the/CSV/file
// read a CSV file with three fields into a POJO (Person.class) with
corresponding fields
DataSet<Person>> csvInput = env.readCsvFile("hdfs:///the/CSV/file")
- .pojoType(Person.class, "name", "age",
"zipcode");
+ .pojoType(Person.class, "name", "age",
"zipcode");
+
-// create a set from some given elements
+// read a file from the specified path of type TextInputFormat
+DataSet<Tuple2<Text, Text>> tuples = env.readHadoopFile(new
TextInputFormat(), Text.class, Text.class, "hdfs://nnHost:nnPort/path/to/file");
--- End diff --
I think TextInputFormat produces (LongWritable, Text)
> Add a method to be able to read SequenceFileInputFormat
> -------------------------------------------------------
>
> Key: FLINK-2918
> URL: https://issues.apache.org/jira/browse/FLINK-2918
> Project: Flink
> Issue Type: Improvement
> Components: Core
> Affects Versions: 0.9.1
> Reporter: Suneel Marthi
> Assignee: Suneel Marthi
> Priority: Minor
> Fix For: 0.10
>
>
> This is to add a method to ExecutionEnvironment.{java,scala} to be able to
> provide syntactic sugar to read a SequenceFileInputFormat.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)