AvroFixed
AvroFixed overrides the schema type for a field or a value class so that the schema is set to org.apache.avro.Schema.Type.FIXED rather than whatever the default would be.
AvroFixed overrides the schema type for a field or a value class so that the schema is set to org.apache.avro.Schema.Type.FIXED rather than whatever the default would be.
This annotation can be used in the following ways:
-
On a field, eg case class
Foo(@AvroField(10) name: String)
which results in the fieldname
having schema type FIXED with a size of 10. -
On a value type, eg
@AvroField(7) case class Foo(name: String) extends AnyVal
which results in all usages of the value type having schema FIXED with a size of 7 rather than the default.
trait Serializable
trait Product
trait Equals
trait AvroFixable
trait AvroFieldReflection
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any