FasterXML / FasterXML/jackson-dataformats-binary

Support for Avro 'single-object encoding' headers in serialize/deserialize

Aperta
#172 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
avro
Lingua principale
Java
Stelle
347
Fork
156
Merge medio
3g 3h
PR unite (30g)
22

Descrizione

Looking for some inter-operability between the org.apache.avro.message.BinaryMessageEncoder (that is used by the Java beans generated by the avro maven/gradle plug-ins) and the raw bytes generated by the Jackson 'AvroMapper' as per the example code:
```
byte[] avroData = mapper.writer(schema)
.writeValueAsBytes(empl);
```
It looks like the Avro BinaryMessageEncoder is adding a header as described by https://avro.apache.org/docs/1.8.2/spec.html#single_object_encoding_spec

Is there some way to get the Jackson 'AvroMapper' to generate and to parse byte arrays with the same headers?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.