forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get nosetests working after removing the setup.py change
- Loading branch information
Showing
4 changed files
with
99 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# This file is broken into multiple sections delimited by ---. Each section specifies a set of | ||
# reference encodings for a single standardized coder used in a specific context. | ||
# | ||
# Each section contains up to 3 properties: | ||
# | ||
# coder: a common coder spec. Currently, a URN and URNs for component coders as necessary. | ||
# nested: a boolean meaning whether the coder was used in the nested context. Missing means to | ||
# test both contexts, a shorthand for when the coder is invariant across context. | ||
# examples: a map of {encoded bytes: original JSON object} encoded with the coder in the context. | ||
# The LHS (key) is a byte array encoded as a JSON-escaped string. The RHS (value) is | ||
# one of a few standard JSON types such as numbers, strings, dicts that map naturally | ||
# to the type encoded by the coder. | ||
# | ||
# These choices were made to strike a balance between portability, ease of use, and simple | ||
# legibility of this file itself. | ||
# | ||
# It is expected that future work will move the `coder` field into a format that it would be | ||
# represented by the Runner API, so that it can be understood by all SDKs and harnesses. | ||
|
||
|
||
coder: | ||
urn: "urn:beam:coders:bytes:0.1" | ||
nested: false | ||
examples: | ||
"abc": abc | ||
"ab\0c": "ab\0c" | ||
|
||
--- | ||
|
||
coder: | ||
urn: "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: "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 | ||
|
||
--- | ||
|
||
coder: | ||
urn: "urn:beam:coders:kv:0.1" | ||
components: [{urn: "urn:beam:coders:bytes:0.1"}, | ||
{urn: "urn:beam:coders:varint:0.1"}] | ||
examples: | ||
"\u0003abc\0": {key: abc, value: 0} | ||
"\u0004ab\0c\u000A": {key: "ab\0c", value: 10} | ||
|
||
--- | ||
|
||
coder: | ||
urn: "urn:beam:coders:kv:0.1" | ||
components: [{urn: "urn:beam:coders:bytes:0.1"}, | ||
{urn: "urn:beam:coders:bytes:0.1"}] | ||
nested: false | ||
examples: | ||
"\u0003abcdef": {key: abc, value: def} | ||
"\u0004ab\0cde\0f": {key: "ab\0c", value: "de\0f"} | ||
|
||
--- | ||
|
||
coder: | ||
urn: "urn:beam:coders:kv:0.1" | ||
components: [{urn: "urn:beam:coders:bytes:0.1"}, | ||
{urn: "urn:beam:coders:bytes:0.1"}] | ||
nested: true | ||
examples: | ||
"\u0003abc\u0003def": {key: abc, value: def} | ||
"\u0004ab\0c\u0004de\0f": {key: "ab\0c", value: "de\0f"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters