Annotation Interface AvroFixedSize


@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface AvroFixedSize
Only used during Avro schema generation; has no effect on data (de)serialization.

Instructs the AvroSchemaGenerator to declare the annotated property as type "fixed" (Schema.Type.FIXED).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The fixed size, in bytes, of the value contained in this field
    The name of the type in the generated schema
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The namespace of the type in the generated schema (optional)
  • Element Details

    • typeName

      String typeName
      The name of the type in the generated schema
    • size

      int size
      The fixed size, in bytes, of the value contained in this field
    • typeNamespace

      String typeNamespace
      The namespace of the type in the generated schema (optional)
      Default:
      ""