Class SchemaBuilder.BaseFieldTypeBuilder<R>

java.lang.Object
org.apache.avro.SchemaBuilder.BaseFieldTypeBuilder<R>
Direct Known Subclasses:
SchemaBuilder.FieldTypeBuilder
Enclosing class:
SchemaBuilder

public static class SchemaBuilder.BaseFieldTypeBuilder<R> extends Object
A special Builder for Record fields. The API is very similar to SchemaBuilder.BaseTypeBuilder. However, fields have their own names, properties, and default values.

The methods on this class create builder instances that return their control to the SchemaBuilder.FieldAssembler of the enclosing record context after configuring a default for the field.

For example, an int field with default value 1:

 intSimple().withDefault(1);
 
or an array with items that are optional int types:
 array().items().optional().intType();