Package io.quarkus.avro.deployment
Class AvroCodeGenProviderBase.AvroOptions
java.lang.Object
io.quarkus.avro.deployment.AvroCodeGenProviderBase.AvroOptions
- Enclosing class:
AvroCodeGenProviderBase
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final booleanThe createOptionalGetters parameter enables generating the getOptional...(package private) final booleanDetermines whether or not to create setters for the fields of the record.A list of custom converter classes to register on the avro compiler.(package private) final booleanDetermines whether or not to use Java classes for decimal types, defaults to false(package private) final booleanThe gettersReturnOptional parameter enables generating get... methods that return an Optional of the requested type.(package private) final String[]A list of files or directories that should be compiled first thus making them importable by subsequently compiled schemas.(package private) final booleanThe optionalGettersForNullableFieldsOnly parameter works in conjunction with gettersReturnOptional option.(package private) final org.apache.avro.generic.GenericData.StringTypeThe Java type to use for Avro strings. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
imports
A list of files or directories that should be compiled first thus making them importable by subsequently compiled schemas. Note that imported files should not reference each other.All paths should be relative to the src/[main|test]/avro directory
Passed as a comma-separated list.
-
stringType
final org.apache.avro.generic.GenericData.StringType stringTypeThe Java type to use for Avro strings. May be one of CharSequence, String or Utf8. CharSequence by default. -
createOptionalGetters
final boolean createOptionalGettersThe createOptionalGetters parameter enables generating the getOptional... methods that return an Optional of the requested type. -
enableDecimalLogicalType
final boolean enableDecimalLogicalTypeDetermines whether or not to use Java classes for decimal types, defaults to false -
createSetters
final boolean createSettersDetermines whether or not to create setters for the fields of the record. The default is to create setters. -
gettersReturnOptional
final boolean gettersReturnOptionalThe gettersReturnOptional parameter enables generating get... methods that return an Optional of the requested type. -
optionalGettersForNullableFieldsOnly
final boolean optionalGettersForNullableFieldsOnlyThe optionalGettersForNullableFieldsOnly parameter works in conjunction with gettersReturnOptional option. If it is set, Optional getters will be generated only for fields that are nullable. If the field is mandatory, regular getter will be generated. -
customConversions
A list of custom converter classes to register on the avro compiler.Conversions.UUIDConversionis registered by default.Passed as a comma-separated list.
-
-
Constructor Details
-
AvroOptions
AvroOptions(org.eclipse.microprofile.config.Config config)
-