avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVRO-432) add java annotation to specify arbitrary schema
Date Fri, 26 Feb 2010 00:14:27 GMT
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
             Fix For: 1.3.1


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.


Mime
View raw message