[
https://issues.apache.org/jira/browse/AVRO-1325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White updated AVRO-1325:
----------------------------
Attachment: AVRO-1325-properties.patch
I haven't had a chance to look at the latest patch yet, but for comparison
here's a small patch demonstrating property support in the SchemaBuilder from
AVRO-1274. Scott's earlier example would be written like this:
{noformat}
Schema schema = SchemaBuilder.recordType("Rec").prop("recProp", "r")
.requiredMap("locations",
SchemaBuilder.mapType(
SchemaBuilder.stringType().prop("valProp", "v").build()
).prop("mapProp", "m").build())
.prop("fieldProp", "f")
.build();
{noformat}
> Enhanced Schema Builder API
> ---------------------------
>
> Key: AVRO-1325
> URL: https://issues.apache.org/jira/browse/AVRO-1325
> Project: Avro
> Issue Type: Bug
> Reporter: Scott Carey
> Assignee: Scott Carey
> Fix For: 1.7.5
>
> Attachments: AVRO-1325.patch, AVRO-1325-preliminary.patch,
> AVRO-1325-properties.patch
>
>
> The schema builder from AVRO-1274 has a few key limitations. I have proposed
> changes to make before it is released and the public API is locked in.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira