case classAvroFixed(size: Int) extends Annotation with StaticAnnotation with Product with Serializable
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 field name 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.
Linear Supertypes
Serializable, Serializable, Product, Equals, StaticAnnotation, Annotation, AnyRef, Any
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.