You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Yaniv Rubinpur (Jira)" <ji...@apache.org> on 2020/03/26 17:17:00 UTC

[jira] [Created] (AVRO-2782) C# implmenetation of GenericRecord Doesn't have

Yaniv Rubinpur created AVRO-2782:
------------------------------------

             Summary: C# implmenetation of GenericRecord Doesn't have 
                 Key: AVRO-2782
                 URL: https://issues.apache.org/jira/browse/AVRO-2782
             Project: Apache Avro
          Issue Type: Improvement
          Components: csharp
            Reporter: Yaniv Rubinpur


GenericRecord in C# can only be accessed by field name and not by field index (Java version support access by index). Accessing a dictionary for each field is costly.

In Java There is: Record.put(int i, Object v). In C# GenericRecord there is only: Add(string fieldName, object fieldValue) (and string indexer).

 

And there is no way to extend GenericRecord to support indexed access.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)