public static final class SchemaBuilder.FieldTypeBuilder<R> extends SchemaBuilder.BaseFieldTypeBuilder<R>
bldr, names
Modifier and Type | Method and Description |
---|---|
SchemaBuilder.BaseFieldTypeBuilder<R> |
nullable()
A shortcut for building a union of a type and null, with an optional default
value of the non-null type.
|
SchemaBuilder.BaseTypeBuilder<SchemaBuilder.FieldAssembler<R>> |
optional()
A shortcut for building a union of null and a type, with a null default.
|
SchemaBuilder.UnionFieldTypeBuilder<R> |
unionOf()
Build an Avro union schema type.
|
array, booleanBuilder, booleanType, bytesBuilder, bytesType, doubleBuilder, doubleType, enumeration, fixed, floatBuilder, floatType, intBuilder, intType, longBuilder, longType, map, nullBuilder, nullType, record, stringBuilder, stringType
public SchemaBuilder.UnionFieldTypeBuilder<R> unionOf()
public SchemaBuilder.BaseFieldTypeBuilder<R> nullable()
nullable().booleanType().booleanDefault(true)
unionOf().booleanType().and().nullType().endUnion().booleanDefault(true)
public SchemaBuilder.BaseTypeBuilder<SchemaBuilder.FieldAssembler<R>> optional()
optional().booleanType()
unionOf().nullType().and().booleanType().endUnion().nullDefault()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.