Logical type to convert avro.math.BigDecimal to java.math.BigDecimal.
Logical type to convert avro.math.BigDecimal to java.math.BigDecimal.
Logical type to convert avro.math.BigInteger to java.math.BigInteger.
Logical type to convert avro.math.BigInteger to java.math.BigInteger.
Logical type to convert avro.util.Date to java.util.Date.
Logical type to convert avro.util.Date to java.util.Date.
Logical type to convert Any
to Avro Record
with only one field
set.
Logical type to convert Any
to Avro Record
with only one field
set.
It's for propose an extended union, an union
were it's possible to add a new value
without breaking the compatibility.
{ "type": "record", "name": "com.octo.avro.NewUnion", "logicalType" : "scala.Any", "registerLogicalType" : "com.octo.avro.RegisterLogicalType.ExtendableUnion", "fields": [ { "name": "_null", "type": ["null"],"default": null }, { "name": "_D", "type": ["null","D"],"default": null }, { "name": "_E", "type": ["null","D"],"default": null,"asInstanceOf":"E"} ] }
This Avro record is equivalent with the Avro union
: ["null",D,E]
.
The generated case class use the same interface of the classical union. But, now, it's possible to add a new field in this record, without break the compatibility.
Logical type to convert avro.util.Locale to java.util.Locale.
Logical type to convert avro.util.Locale to java.util.Locale.
Logical type to convert avro.net.URI to java.net.URI.
Logical type to convert avro.net.URI to java.net.URI.
Logical type to convert avro.net.URL to java.net.URL.
Logical type to convert avro.net.URL to java.net.URL.
Logical type to convert avro.util.UUID to java.util.UUID.
Logical type to convert avro.util.UUID to java.util.UUID.
Logical type to convert avro.net.InetAddress to java.net.InetAddress.
Logical type to convert avro.net.InetAddress to java.net.InetAddress.
Created by pprados on 26/07/16.