接口 FieldSchemaBuilder<T extends FieldSchemaBuilder<T>>
Build a field for a record.
-
方法概要
修饰符和类型方法说明The optional name aliases of this field.defaultValue
(Object value) Set the default value of this field.The documentation of this field.optional()
Make this field optional.Set name-value pair properties for this field.required()
Make this field required.type
(SchemaType type) The type of this field.
-
方法详细资料
-
property
Set name-value pair properties for this field.- 参数:
name
- name of the propertyval
- value of the property- 返回:
- field schema builder
-
doc
The documentation of this field.- 参数:
doc
- documentation- 返回:
- field schema builder
-
aliases
The optional name aliases of this field.- 参数:
aliases
- the name aliases of this field- 返回:
- field schema builder
-
type
The type of this field.Currently only primitive types are supported.
- 参数:
type
- schema type of this field- 返回:
- field schema builder
-
optional
T optional()Make this field optional.- 返回:
- field schema builder
-
required
T required()Make this field required.- 返回:
- field schema builder
-
defaultValue
Set the default value of this field.The value is validated against the schema type.
- 返回:
- value
-