avro
The avro
codec supports Apache Avro binary encoding.
The codec is configured with a schema following the avro schema specification
Configuration
value | optional | description |
---|---|---|
schema | no | The avro schema to use |
compression | yes | The compression codec to use, one of deflate , snappy , zstd , bzip2 , xz , none |
Mappings
avro | tremor (to) | tremor (from) |
---|---|---|
null | null | null |
boolean | bool | bool |
int | i64 | i64, u64 |
long | i64 | i64, u64 |
float | f64 | f64 |
double | f64 | f64 |
bytes | bytes | bytes, string |
string | string | string |
fixed | bytes | bytes |
enum | string | string |
union | value | value |
array | array | array |
map | record | record |
record | record | record |
date | i64 | i64 |
decimal | bytes | bytes |
time-millis | i64 | i64, u64 |
time-micros | i64 | i64, u64 |
timestamp-millis | i64 | i64, u64 |
timestamp-micros | i64 | i64, u64 |
duration | bytes[12] | bytes[12] |