@InterfaceAudience.Public @InterfaceStability.Stable public interface RecordSchemaBuilder
GenericRecord.| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
build(SchemaType schemaType)
Build the schema info.
|
RecordSchemaBuilder |
doc(String doc)
Add doc to the record schema.
|
FieldSchemaBuilder |
field(String fieldName)
Add a field with the given name to the record.
|
FieldSchemaBuilder |
field(String fieldName,
GenericSchema genericSchema)
Add a field with the given name and genericSchema to the record.
|
RecordSchemaBuilder |
property(String name,
String val)
Attach val-name property pair to the record schema.
|
RecordSchemaBuilder property(String name, String val)
name - property nameval - property valueFieldSchemaBuilder field(String fieldName)
fieldName - name of the fieldFieldSchemaBuilder field(String fieldName, GenericSchema genericSchema)
fieldName - name of the fieldgenericSchema - schema of the fieldRecordSchemaBuilder doc(String doc)
doc - documentationSchemaInfo build(SchemaType schemaType)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.