avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Taton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1443) SpecificRecord builders should share more functionality with GenericRecord builders
Date Fri, 14 Feb 2014 16:56:22 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13901634#comment-13901634
] 

Christophe Taton commented on AVRO-1443:
----------------------------------------

Without this change, there is no way for an Avro user to set fields generically through a
builder.

There are several use-cases for this.
The one I'm having right now is a library function that populates some record's fields through
its builder.
The callers of the library should ideally be able to use whichever kind of records they need
indifferently.


> SpecificRecord builders should share more functionality with GenericRecord builders
> -----------------------------------------------------------------------------------
>
>                 Key: AVRO-1443
>                 URL: https://issues.apache.org/jira/browse/AVRO-1443
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.5, 1.7.6
>            Reporter: Christophe Taton
>            Assignee: Christophe Taton
>             Fix For: 1.8.0
>
>         Attachments: AVRO-1443.20140126-182111-0800.diff, AVRO-1443.20140202-182611-0800.svndiff,
AVRO-1443.20140204-124549-0800.diff
>
>
> Ideally, wherever a generic record builder is expected, one should be able to supply
a builder for a specific record.
> That could happen by making SpecificRecordBuilderBase (and SpecificErrorBuilderBase?)
a subclass of GenericRecordBuilder.
> Since SpecificRecordBase implements GenericRecord, it should be possible with minimal
effort.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message