public interface FieldSchemaBuilder<T extends FieldSchemaBuilder<T>>
Modifier and Type | Method and Description |
---|---|
T |
aliases(String... aliases)
The optional name aliases of this field.
|
T |
defaultValue(Object value)
Set the default value of this field.
|
T |
doc(String doc)
The documentation of this field.
|
T |
optional()
Make this field optional.
|
T |
property(String name,
String val)
Set name-value pair properties for this field.
|
T |
required()
Make this field required.
|
T |
type(SchemaType type)
The type of this field.
|
T property(String name, String val)
name
- name of the propertyval
- value of the propertyT doc(String doc)
doc
- documentationT aliases(String... aliases)
aliases
- the name aliases of this fieldT type(SchemaType type)
Currently only primitive types are supported.
type
- schema type of this fieldT optional()
T required()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.