It would be very nice if GenericArray implemented List. I need get, set, and remove in GenericData.Array for my application and have already added these to my Avro code so I can continue developing. I was planning to file a patch in JIRA for this change.
The trouble with making GenericArray implement List is that List.size() returns an int and GenericArray.size() returns a long. Is there a reason for this? If size() can be changed to return an int then I could probably come up with a patch. GenericData.Array already stores size as an int internally and takes an int as the capacity argument to the constructor so I don't understand the long unless it is for supporting streaming APIs. If this is the case then I am not sure how it would be handled but am open to suggestions. ~ Nick
