Interface RecordSchemaBuilder
Building the schema for a
GenericRecord.-
Method Summary
Modifier and TypeMethodDescriptionbuild(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.
-
Method Details
-
property
Attach val-name property pair to the record schema.- Parameters:
name- property nameval- property value- Returns:
- record schema builder
-
field
Add a field with the given name to the record.- Parameters:
fieldName- name of the field- Returns:
- field schema builder to build the field.
-
field
Add a field with the given name and genericSchema to the record.- Parameters:
fieldName- name of the fieldgenericSchema- schema of the field- Returns:
- field schema builder to build the field.
-
doc
Add doc to the record schema.- Parameters:
doc- documentation- Returns:
- field schema builder
-
build
Build the schema info.- Returns:
- the schema info.
-