You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Werner Daehn (JIRA)" <ji...@apache.org> on 2019/05/22 05:52:00 UTC

[jira] [Created] (AVRO-2402) Generics, provide access to parent object

Werner Daehn created AVRO-2402:
----------------------------------

             Summary: Generics, provide access to parent object
                 Key: AVRO-2402
                 URL: https://issues.apache.org/jira/browse/AVRO-2402
             Project: Apache Avro
          Issue Type: Improvement
          Components: java
    Affects Versions: 1.10.0
            Reporter: Werner Daehn


Imagine you are within the GenericRecord Employee->Addresses. You have all fields of the Addresses Schema of course but what if you need to read something from the parent, the employee record? 

You would need to remember the entire parent tree, which is fine if you are just one level deep but can be cumbersome when the structure is 10 levels deep.

I'd like the GenericDatumReader to return objects that have the methods
 * getParent()
 * getRoot() 

as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)