From 1209019cfca6d1890c687818792eca568920af03 Mon Sep 17 00:00:00 2001 From: Henry Saputra Date: Mon, 19 Oct 2015 12:06:49 -0700 Subject: [PATCH 1/2] [FLINK-2872] [Documentation] Update the documentation for Scala part to add readFileOfPrimitives. Add the missing Scala part for ExecutionEnvironment.readFileOfPrimitives API doc in the programming guide. --- docs/apis/programming_guide.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/apis/programming_guide.md b/docs/apis/programming_guide.md index 895d19f1123f2..95f8491fb623d 100644 --- a/docs/apis/programming_guide.md +++ b/docs/apis/programming_guide.md @@ -1721,7 +1721,8 @@ File-based: Returns a DataSet of tuples or POJOs. Supports the basic java types and their Value counterparts as field types. -- `readFileOfPrimitives(path, Class)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence) delimited primitive data types such as `String` or `Integer`. +- `readFileOfPrimitives(path, Class)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence) + delimited primitive data types such as `String` or `Integer`. Collection-based: @@ -1856,6 +1857,9 @@ File-based: Returns a DataSet of tuples, case class objects, or POJOs. Supports the basic java types and their Value counterparts as field types. +- `readFileOfPrimitives(path, delimiter)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence) + delimited primitive data types such as `String` or `Integer`. + Collection-based: - `fromCollection(Seq)` - Creates a data set from a Seq. All elements From f54343690220238630b5dfff1f6ff07e73a66bdd Mon Sep 17 00:00:00 2001 From: Henry Saputra Date: Mon, 19 Oct 2015 16:04:47 -0700 Subject: [PATCH 2/2] Add variant of ExecutionEnvironment.readFileOfPrimitives in Java with additional delimiter. --- docs/apis/programming_guide.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/apis/programming_guide.md b/docs/apis/programming_guide.md index 95f8491fb623d..aa88ce91dfb88 100644 --- a/docs/apis/programming_guide.md +++ b/docs/apis/programming_guide.md @@ -1722,7 +1722,10 @@ File-based: types. - `readFileOfPrimitives(path, Class)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence) - delimited primitive data types such as `String` or `Integer`. + delimited primitive data types such as `String` or `Integer`. + +- `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. Collection-based: @@ -1858,7 +1861,7 @@ File-based: types. - `readFileOfPrimitives(path, delimiter)` / `PrimitiveInputFormat` - Parses files of new-line (or another char sequence) - delimited primitive data types such as `String` or `Integer`. + delimited primitive data types such as `String` or `Integer` using the given delimiter. Collection-based: