Return-Path: Delivered-To: apmail-hadoop-avro-dev-archive@minotaur.apache.org Received: (qmail 61098 invoked from network); 2 Mar 2010 21:07:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 21:07:56 -0000 Received: (qmail 401 invoked by uid 500); 2 Mar 2010 21:07:50 -0000 Delivered-To: apmail-hadoop-avro-dev-archive@hadoop.apache.org Received: (qmail 330 invoked by uid 500); 2 Mar 2010 21:07:50 -0000 Mailing-List: contact avro-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: avro-dev@hadoop.apache.org Delivered-To: mailing list avro-dev@hadoop.apache.org Received: (qmail 150 invoked by uid 99); 2 Mar 2010 21:07:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 21:07:49 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 21:07:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C018234C4C7 for ; Tue, 2 Mar 2010 21:07:27 +0000 (UTC) Message-ID: <347538963.15721267564047375.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 21:07:27 +0000 (UTC) From: "Doug Cutting (JIRA)" To: avro-dev@hadoop.apache.org Subject: [jira] Updated: (AVRO-432) add java annotation to specify arbitrary schema In-Reply-To: <288928421.541251267143267918.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated AVRO-432: ------------------------------ Status: Patch Available (was: Open) > add java annotation to specify arbitrary schema > ----------------------------------------------- > > Key: AVRO-432 > URL: https://issues.apache.org/jira/browse/AVRO-432 > Project: Avro > Issue Type: New Feature > Components: java > Affects Versions: 1.3.0 > Reporter: Doug Cutting > Assignee: Doug Cutting > Fix For: 1.3.1 > > Attachments: AVRO-432.patch, AVRO-432.patch, AVRO-432.patch > > > HDFS now includes a class (HdfsFileStatus) with a field (symlink) whose type is byte[] but which is null for non-symlinks. For most other types, we could annotate this with something like @Union({Void.class, Foo.class}) to declare that the field may be null. But there is unfortunately no way to refer to the class of byte[] in an annotation. So, instead, I propose to add an annotation that permits the specification of an arbitrary schema. In this case, the annotation would then be @AvroSchema("[\"null\",\bytes\""). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.