public interface FieldSchemaBuilder<S extends FieldSchemaBuilder<S>>
限定符和类型 | 方法和说明 |
---|---|
S |
aliases(String... aliases)
The optional name aliases of this field.
|
S |
defaultValue(Object value)
Set the default value of this field.
|
S |
doc(String doc)
The documentation of this field.
|
S |
optional()
Make this field optional.
|
S |
property(String name,
String val)
Set name-value pair properties for this field.
|
S |
required()
Make this field required.
|
S |
type(SchemaType type)
The type of this field.
|
S property(String name, String val)
name
- name of the propertyval
- value of the propertyS doc(String doc)
doc
- documentationS aliases(String... aliases)
aliases
- the name aliases of this fieldS type(SchemaType type)
Currently only primitive types are supported.
type
- schema type of this fieldS optional()
S required()
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.