接口 RecordSchemaBuilder
Building the schema for a
GenericRecord.-
方法概要
修饰符和类型方法说明build(SchemaType schemaType) Build the schema info.Add doc to the record schema.Add a field with the given name to the record.field(String fieldName, GenericSchema genericSchema) Add a field with the given name and genericSchema to the record.Attach val-name property pair to the record schema.
-
方法详细资料
-
property
Attach val-name property pair to the record schema.- 参数:
name- property nameval- property value- 返回:
- record schema builder
-
field
Add a field with the given name to the record.- 参数:
fieldName- name of the field- 返回:
- field schema builder to build the field.
-
field
Add a field with the given name and genericSchema to the record.- 参数:
fieldName- name of the fieldgenericSchema- schema of the field- 返回:
- field schema builder to build the field.
-
doc
Add doc to the record schema.- 参数:
doc- documentation- 返回:
- field schema builder
-
build
Build the schema info.- 返回:
- the schema info.
-