[
https://issues.apache.org/jira/browse/AVRO-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13850737#comment-13850737
]
Doug Cutting commented on AVRO-1413:
------------------------------------
Adding public getRecordClass() and getSchema() methods to RecordBuilderBase
seems reasonable to me.
Note that there is already the method SpecificData#getSchema(Type). So if you
have a class that you know is a specific record then you can use this to get
its schema.
> Provide static abstract getClassSchema on SpecificRecordBase (as per
> AVRO-1223)
> -------------------------------------------------------------------------------
>
> Key: AVRO-1413
> URL: https://issues.apache.org/jira/browse/AVRO-1413
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.5
> Reporter: Tristan Stevens
> Priority: Trivial
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> AVRO-1223 added support for static getClassSchema() to generated Record
> classes, this should be added to the abstract superclass SpecificRecordBase
> and also to the interface SpecificRecord in order to enable this method to be
> used on any generated Records.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)