Top Description Methods
com.fasterxml.jackson.dataformat.avro

public @Interface AvroFixedSize

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD, FIELD
Imports
java.lang.annotation.*

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).

Method Summary

Modifier and TypeMethod and Description
public int
size()

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

public String
typeName()

The name of the type in the generated schema

public String
typeNamespace()

The namespace of the type in the generated schema (optional)

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

sizeback to summary
public int size()

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

typeNameback to summary
public String typeName()

The name of the type in the generated schema

typeNamespaceback to summary
public String typeNamespace()

The namespace of the type in the generated schema (optional)