This page describes the Avro support for Ultra Format Definition Language (UFDL). This functionality enables you to compile Avro definitions, to encode data into, and from the Avro format. A schema in Avro is represented in JSON. You can implement non-protocol data issues in an Analysis agent.
...
Primitive Type | Notes |
---|---|
null | Implemented as type byte. |
boolean | Value must be true or false . |
int | 32-bit signed. |
long | 64-bit signed. |
float | Single precision (32-bit) IEEE 754 floating-point number. |
double | Double precision (64-bit) IEEE 754 floating-point number. |
bytes | Sequence of 8-bit unsigned bytes. |
string | Unicode character sequence. |
Complex Type | Notes |
---|---|
record | Supports the attributes: The |
enum | Supports the attributes: name , namespace, doc (optional), aliases (optional), symbols . |
array | Supports the attribute: items |
map | Supports the attribute: values |
union | Implemented as a record with all types set to optional. If two values are set, both are encoded. If no values are set, none are encoded. To specify a union value, you must use |
fixed | Supports the attributes: |
...
- Line and Column are not fully implemented.
- No string values are permitted in APL for the
enum
type. - Encoding the Avro object container file is not supported.
aliases
are not fully supported.default
is not fully supported.- Cross references to other Ultra definitions are not supported.
array of arrays
is not correctly implemented. For example,array of array of x
is implemented witharray of y
, wherey
is a record with onevalue
field. Thisvalue
field is anarray of x
.map of x
is implemented via anarray of y
, wherey
is a record with two fields:key
andvalue
, wherevalue
isx
.
...
To encode an Arvo data file, a format definition is included in the Ultra avro
_block
block in in the Ultra format.
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Scroll pagebreak