You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ro...@apache.org on 2017/01/20 22:48:54 UTC

[3/4] beam git commit: A couple more examples.

A couple more examples.


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/7e5dc400
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/7e5dc400
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/7e5dc400

Branch: refs/heads/python-sdk
Commit: 7e5dc40018520fd727c29df81396d7029e0a3358
Parents: 5c054ae
Author: Robert Bradshaw <ro...@gmail.com>
Authored: Tue Jan 10 16:49:33 2017 -0800
Committer: Robert Bradshaw <ro...@gmail.com>
Committed: Fri Jan 20 14:48:07 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/coders/standard_coders.yaml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/7e5dc400/sdks/python/apache_beam/coders/standard_coders.yaml
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/coders/standard_coders.yaml b/sdks/python/apache_beam/coders/standard_coders.yaml
index 3193883..34e4336 100644
--- a/sdks/python/apache_beam/coders/standard_coders.yaml
+++ b/sdks/python/apache_beam/coders/standard_coders.yaml
@@ -20,17 +20,31 @@ coder:
   urn: "beam:coders:bytes:0.1"
 nested: false
 examples:
-  abc: abc
+  "abc": abc
   "ab\0c": "ab\0c"
 
 ---
 
 coder:
+  urn: "beam:coders:bytes:0.1"
+nested: true
+examples:
+  "\u0003abc": abc
+  "\u0004ab\0c": "ab\0c"
+  "\u00c8\u0001       10|       20|       30|       40|       50|       60|       70|       80|       90|      100|      110|      120|      130|      140|      150|      160|      170|      180|      190|      200|":
+              "       10|       20|       30|       40|       50|       60|       70|       80|       90|      100|      110|      120|      130|      140|      150|      160|      170|      180|      190|      200|"
+
+---
+
+coder:
   urn: "beam:coders:varint:0.1"
 examples:
   "\0": 0
   "\u0001": 1
   "\u000A": 10
+  "\u00c8\u0001": 200
+  "\u00e8\u0007": 1000
+  "\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u00ff\u0001": -1
 
 ---