接口 FieldSchemaBuilder<T extends FieldSchemaBuilder<T>>
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Taliases(java.lang.String... aliases)The optional name aliases of this field.TdefaultValue(java.lang.Object value)Set the default value of this field.Tdoc(java.lang.String doc)The documentation of this field.Toptional()Make this field optional.Tproperty(java.lang.String name, java.lang.String val)Set name-value pair properties for this field.Trequired()Make this field required.Ttype(SchemaType type)The type of this field.
-
-
-
方法详细资料
-
property
T property(java.lang.String name, java.lang.String val)
Set name-value pair properties for this field.- 参数:
name- name of the propertyval- value of the property- 返回:
- field schema builder
-
doc
T doc(java.lang.String doc)
The documentation of this field.- 参数:
doc- documentation- 返回:
- field schema builder
-
aliases
T aliases(java.lang.String... aliases)
The optional name aliases of this field.- 参数:
aliases- the name aliases of this field- 返回:
- field schema builder
-
type
T type(SchemaType 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
T defaultValue(java.lang.Object value)
Set the default value of this field.The value is validated against the schema type.
- 返回:
- value
-
-