Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 29740 invoked from network); 1 Sep 2010 03:25:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 03:25:18 -0000 Received: (qmail 53215 invoked by uid 500); 1 Sep 2010 03:25:17 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 53040 invoked by uid 500); 1 Sep 2010 03:25:15 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 53031 invoked by uid 99); 1 Sep 2010 03:25:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 03:25:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 03:25:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o813Oru8005199 for ; Wed, 1 Sep 2010 03:24:53 GMT Message-ID: <30672928.108521283311493338.JavaMail.jira@thor> Date: Tue, 31 Aug 2010 23:24:53 -0400 (EDT) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Subject: [jira] Resolved: (AVRO-637) GenericArray should implement Collection In-Reply-To: <25109356.35021282931633967.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting resolved AVRO-637. ------------------------------- Resolution: Fixed Thanks, Eric. I committed this. > GenericArray should implement Collection > ---------------------------------------- > > Key: AVRO-637 > URL: https://issues.apache.org/jira/browse/AVRO-637 > Project: Avro > Issue Type: New Feature > Components: java > Reporter: Doug Cutting > Assignee: Doug Cutting > Fix For: 1.4.0 > > Attachments: AVRO-637-fix.patch, AVRO-637.patch, AVRO-637.patch, AVRO-637.patch > > > It would be nice if Avro arrays were better integrated with Java collections. The GenericArray interface permits array element reuse, which is awkward with java.util.Collection. But if GenericArray implemented Collection and the Avro runtime permitted arbitrary Collection implementations to be passed for Arrays then it would simplify many applications. The runtime could still reuse elements if an array implemented GenericArray, so performance would not suffer for applications that, e.g., loop over a data file, reusing instances. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.