You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2019/01/07 15:39:28 UTC
[flink] branch master updated: [FLINK-11189] Deprecated
documentation for readSequenceFile function
This is an automated email from the ASF dual-hosted git repository.
aljoscha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new fe489bd [FLINK-11189] Deprecated documentation for readSequenceFile function
fe489bd is described below
commit fe489bd31b2ce0f2d4c9254fd24e8aaf00111884
Author: leesf <49...@qq.com>
AuthorDate: Sun Dec 23 10:49:55 2018 +0800
[FLINK-11189] Deprecated documentation for readSequenceFile function
---
docs/dev/batch/index.md | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/docs/dev/batch/index.md b/docs/dev/batch/index.md
index 0a498df..521f462 100644
--- a/docs/dev/batch/index.md
+++ b/docs/dev/batch/index.md
@@ -826,9 +826,6 @@ File-based:
- `readFileOfPrimitives(path, delimiter, Class)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence)
delimited primitive data types such as `String` or `Integer` using the given delimiter.
-- `readSequenceFile(Key, Value, path)` / `SequenceFileInputFormat` - Creates a JobConf and reads file from the specified path with
- type SequenceFileInputFormat, Key class and Value class and returns them as Tuple2<Key, Value>.
-
Collection-based:
@@ -879,7 +876,7 @@ DataSet<Person>> csvInput = env.readCsvFile("hdfs:///the/CSV/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");
+ env.createInput(HadoopInputs.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");