| Package | Description | 
|---|---|
| org.apache.avro | 
 Avro kernel classes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<V> SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.ArrayDefault.arrayDefault(List<V> defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.BooleanDefault.booleanDefault(boolean defaultVal)
Completes this field with the default value provided 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.BytesDefault.bytesDefault(byte[] defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.BytesDefault.bytesDefault(ByteBuffer defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.BytesDefault.bytesDefault(String defaultVal)
Completes this field with the default value provided, cannot be null. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.DoubleDefault.doubleDefault(double defaultVal)
Completes this field with the default value provided 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.EnumDefault.enumDefault(String defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.RecordBuilder.fields()  | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FixedDefault.fixedDefault(byte[] defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FixedDefault.fixedDefault(ByteBuffer defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FixedDefault.fixedDefault(String defaultVal)
Completes this field with the default value provided, cannot be null. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FloatDefault.floatDefault(float defaultVal)
Completes this field with the default value provided 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.IntDefault.intDefault(int defaultVal)
Completes this field with the default value provided 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.LongDefault.longDefault(long defaultVal)
Completes this field with the default value provided 
 | 
<K,V> SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.MapDefault.mapDefault(Map<K,V> defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldDefault.noDefault()
Completes this field with no default value 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.GenericDefault.noDefault()
Do not use a default value for this field. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableBoolean(String fieldName,
               boolean defaultVal)
Shortcut for creating a nullable boolean field: a union of boolean and null
 with an boolean default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableBytes(String fieldName,
             byte[] defaultVal)
Shortcut for creating a nullable bytes field: a union of bytes and null with
 a bytes default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableDouble(String fieldName,
              double defaultVal)
Shortcut for creating a nullable double field: a union of double and null
 with a double default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableFloat(String fieldName,
             float defaultVal)
Shortcut for creating a nullable float field: a union of float and null with
 a float default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableInt(String fieldName,
           int defaultVal)
Shortcut for creating a nullable int field: a union of int and null with an
 int default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableLong(String fieldName,
            long defaultVal)
Shortcut for creating a nullable long field: a union of long and null with a
 long default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.nullableString(String fieldName,
              String defaultVal)
Shortcut for creating a nullable string field: a union of string and null
 with a string default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.NullDefault.nullDefault()
Completes this field with a default value of null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalBoolean(String fieldName)
Shortcut for creating an optional boolean field: a union of null and boolean
 with null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalBytes(String fieldName)
Shortcut for creating an optional bytes field: a union of null and bytes with
 null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalDouble(String fieldName)
Shortcut for creating an optional double field: a union of null and double
 with null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalFloat(String fieldName)
Shortcut for creating an optional float field: a union of null and float with
 null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalInt(String fieldName)
Shortcut for creating an optional int field: a union of null and int with
 null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalLong(String fieldName)
Shortcut for creating an optional long field: a union of null and long with
 null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.optionalString(String fieldName)
Shortcut for creating an optional string field: a union of null and string
 with null default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.RecordDefault.recordDefault(GenericRecord defaultVal)
Completes this field with the default value provided, cannot be null 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredBoolean(String fieldName)
Shortcut for creating a boolean field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredBytes(String fieldName)
Shortcut for creating a bytes field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredDouble(String fieldName)
Shortcut for creating a double field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredFloat(String fieldName)
Shortcut for creating a float field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredInt(String fieldName)
Shortcut for creating an int field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredLong(String fieldName)
Shortcut for creating a long field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.FieldAssembler.requiredString(String fieldName)
Shortcut for creating a string field with the given name and no default. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.StringDefault.stringDefault(String defaultVal)
Completes this field with the default value provided. 
 | 
SchemaBuilder.FieldAssembler<R> | 
SchemaBuilder.GenericDefault.withDefault(Object defaultVal)
Completes this field with the default value provided. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SchemaBuilder.BaseTypeBuilder<SchemaBuilder.FieldAssembler<R>> | 
SchemaBuilder.FieldTypeBuilder.optional()
A shortcut for building a union of null and a type, with a null default. 
 | 
Copyright © 2009–2019 The Apache Software Foundation. All rights reserved.