public static final class SchemaBuilder.TypeBuilder<R> extends SchemaBuilder.BaseTypeBuilder<R>
Modifier and Type | Method and Description |
---|---|
SchemaBuilder.BaseTypeBuilder<R> |
nullable()
A shortcut for building a union of a type and null.
|
SchemaBuilder.BaseTypeBuilder<SchemaBuilder.UnionAccumulator<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, type, type, type
public SchemaBuilder.BaseTypeBuilder<SchemaBuilder.UnionAccumulator<R>> unionOf()
SchemaBuilder.BaseTypeBuilder
unionOf().stringType().and().bytesType().endUnion()
unionOf
in class SchemaBuilder.BaseTypeBuilder<R>
public SchemaBuilder.BaseTypeBuilder<R> nullable()
SchemaBuilder.BaseTypeBuilder
nullable().booleanType()
unionOf().booleanType().and().nullType().endUnion()
nullable
in class SchemaBuilder.BaseTypeBuilder<R>
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.