Uses of Class
org.apache.avro.SchemaBuilder.FieldAssembler
Packages that use SchemaBuilder.FieldAssembler
-
Uses of SchemaBuilder.FieldAssembler in org.apache.avro
Methods in org.apache.avro that return SchemaBuilder.FieldAssemblerModifier and TypeMethodDescriptionfinal <V> SchemaBuilder.FieldAssembler
<R> SchemaBuilder.ArrayDefault.arrayDefault
(List<V> defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.BooleanDefault.booleanDefault
(boolean defaultVal) Completes this field with the default value providedfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.BytesDefault.bytesDefault
(byte[] defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.BytesDefault.bytesDefault
(String defaultVal) Completes this field with the default value provided, cannot be null.final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.BytesDefault.bytesDefault
(ByteBuffer defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.DoubleDefault.doubleDefault
(double defaultVal) Completes this field with the default value providedfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.EnumDefault.enumDefault
(String defaultVal) Completes this field with the default value provided, cannot be nullSchemaBuilder.RecordBuilder.fields()
final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.FixedDefault.fixedDefault
(byte[] defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.FixedDefault.fixedDefault
(String defaultVal) Completes this field with the default value provided, cannot be null.final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.FixedDefault.fixedDefault
(ByteBuffer defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.FloatDefault.floatDefault
(float defaultVal) Completes this field with the default value providedfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.IntDefault.intDefault
(int defaultVal) Completes this field with the default value providedfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.LongDefault.longDefault
(long defaultVal) Completes this field with the default value providedfinal <K,
V> SchemaBuilder.FieldAssembler <R> SchemaBuilder.MapDefault.mapDefault
(Map<K, V> defaultVal) Completes this field with the default value provided, cannot be nullfinal SchemaBuilder.FieldAssembler
<R> SchemaBuilder.FieldDefault.noDefault()
Completes this field with no default valueSchemaBuilder.GenericDefault.noDefault()
Do not use a default value for this field.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.nullableBytes
(String fieldName, byte[] defaultVal) Shortcut for creating a nullable bytes field: a union of bytes and null with a bytes default.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.nullableFloat
(String fieldName, float defaultVal) Shortcut for creating a nullable float field: a union of float and null with a float default.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.nullableLong
(String fieldName, long defaultVal) Shortcut for creating a nullable long field: a union of long and null with a long default.SchemaBuilder.FieldAssembler.nullableString
(String fieldName, String defaultVal) Shortcut for creating a nullable string field: a union of string and null with a string default.final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.NullDefault.nullDefault()
Completes this field with a default value of nullSchemaBuilder.FieldAssembler.optionalBoolean
(String fieldName) Shortcut for creating an optional boolean field: a union of null and boolean with null default.SchemaBuilder.FieldAssembler.optionalBytes
(String fieldName) Shortcut for creating an optional bytes field: a union of null and bytes with null default.SchemaBuilder.FieldAssembler.optionalDouble
(String fieldName) Shortcut for creating an optional double field: a union of null and double with null default.SchemaBuilder.FieldAssembler.optionalFloat
(String fieldName) Shortcut for creating an optional float field: a union of null and float with null default.SchemaBuilder.FieldAssembler.optionalInt
(String fieldName) Shortcut for creating an optional int field: a union of null and int with null default.SchemaBuilder.FieldAssembler.optionalLong
(String fieldName) Shortcut for creating an optional long field: a union of null and long with null default.SchemaBuilder.FieldAssembler.optionalString
(String fieldName) Shortcut for creating an optional string field: a union of null and string with null default.final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.RecordDefault.recordDefault
(GenericRecord defaultVal) Completes this field with the default value provided, cannot be nullSchemaBuilder.FieldAssembler.requiredBoolean
(String fieldName) Shortcut for creating a boolean field with the given name and no default.SchemaBuilder.FieldAssembler.requiredBytes
(String fieldName) Shortcut for creating a bytes field with the given name and no default.SchemaBuilder.FieldAssembler.requiredDouble
(String fieldName) Shortcut for creating a double field with the given name and no default.SchemaBuilder.FieldAssembler.requiredFloat
(String fieldName) Shortcut for creating a float field with the given name and no default.SchemaBuilder.FieldAssembler.requiredInt
(String fieldName) Shortcut for creating an int field with the given name and no default.SchemaBuilder.FieldAssembler.requiredLong
(String fieldName) Shortcut for creating a long field with the given name and no default.SchemaBuilder.FieldAssembler.requiredString
(String fieldName) Shortcut for creating a string field with the given name and no default.final SchemaBuilder.FieldAssembler
<R> SchemaBuilder.StringDefault.stringDefault
(String defaultVal) Completes this field with the default value provided.SchemaBuilder.GenericDefault.withDefault
(Object defaultVal) Completes this field with the default value provided.Methods in org.apache.avro that return types with arguments of type SchemaBuilder.FieldAssemblerModifier and TypeMethodDescriptionSchemaBuilder.FieldTypeBuilder.optional()
A shortcut for building a union of null and a type, with a null default.