AvroSchemaGenerator
to declare the annotated property's logical type as "decimal" (org.apache.avro.LogicalTypes.Decimal ).
By default, the Avro type is "bytes" (org.apache.avro.Schema.Type#BYTES ), unless the field is also
annotated with tools.jackson.dataformat.avro.annotation.AvroFixedSize , in which case the Avro type
will be "fixed" (org.apache.avro.Schema.Type#FIXED ).
This annotation is only used during Avro schema generation and does not affect data serialization or deserialization.
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int |
| precision | back to summary |
|---|---|
| public int precision() Maximum precision of decimals stored in this type. | |
| scale | back to summary |
|---|---|
| public int scale() Scale must be zero or a positive integer less than or equal to the precision. | |