Package org.apache.avro.protobuf


package org.apache.avro.protobuf
Protocol Buffer compatibility.

Protocol Buffer primitive types are mapped to Avro types as follows:

protobuf typeAvro type
int32, uint32, sint32, fixed32, sfixed32int
int64, uint64, sint64, fixed64, sfixed64long
floatfloat
doubledouble
boolboolean
stringstring
bytesbytes
enumenum
messagerecord

Notes:

  • protobuf repeated fields are represented as Avro arrays
  • protobuf default values are translated to Avro default values