File: README.md

package info (click to toggle)
python-avro 1.11.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,724 kB
  • sloc: python: 7,196; xml: 4,238; sh: 784; java: 386; makefile: 74
file content (45 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
BinaryMessage data in single object encoding https://avro.apache.org/docs/current/spec.html#single_object_encoding

Ground truth data generated with Java Code

The binary data will be the V1 single object encoding with the schema of
```
{
	"type":"record",
	"namespace":"org.apache.avro",
	"name":"TestMessage",
	"fields":[
		{
			"name":"id",
			"type":"long"
		},
		{
			"name":"name",
			"type":"string"
		},
		{
			"name":"tags",
			"type":{
				"type":"array",
				"items":"string"
			}
		},
		{
			"name":"scores",
			"type":{
				"type":"map",
				"values":"double"
			}
		}
	]
}
```

The sample binary message will have the values equal to the json serialized version of the record shown below
```
{
	"id": 42,
	"name": "Bill",
	"tags": ["dog_lover", "cat_hater"]
}
```