You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2009/08/12 19:07:14 UTC

[jira] Created: (AVRO-89) generated record classes should use unboxed numeric types

generated record classes should use unboxed numeric types
---------------------------------------------------------

                 Key: AVRO-89
                 URL: https://issues.apache.org/jira/browse/AVRO-89
             Project: Avro
          Issue Type: Improvement
          Components: java
            Reporter: Doug Cutting
             Fix For: 1.0.1


Currently, in a generated Java class, an integer field has type java.lang.Integer.  It would be more efficient if "int" were used.  Similarly for longs, floats, doubles and boolean.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-89) generated record classes should use unboxed numeric types

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-89:
-----------------------------

    Attachment: AVRO-89.patch

Here's a patch that implements this.

> generated record classes should use unboxed numeric types
> ---------------------------------------------------------
>
>                 Key: AVRO-89
>                 URL: https://issues.apache.org/jira/browse/AVRO-89
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>             Fix For: 1.0.1
>
>         Attachments: AVRO-89.patch
>
>
> Currently, in a generated Java class, an integer field has type java.lang.Integer.  It would be more efficient if "int" were used.  Similarly for longs, floats, doubles and boolean.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-89) generated record classes should use unboxed numeric types

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-89:
-----------------------------

    Assignee: Doug Cutting
      Status: Patch Available  (was: Open)

This passes all tests.  I'll commit it soon if there are no objections.

> generated record classes should use unboxed numeric types
> ---------------------------------------------------------
>
>                 Key: AVRO-89
>                 URL: https://issues.apache.org/jira/browse/AVRO-89
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.0.1
>
>         Attachments: AVRO-89.patch
>
>
> Currently, in a generated Java class, an integer field has type java.lang.Integer.  It would be more efficient if "int" were used.  Similarly for longs, floats, doubles and boolean.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AVRO-89) generated record classes should use unboxed numeric types

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742590#action_12742590 ] 

Owen O'Malley commented on AVRO-89:
-----------------------------------

+1

> generated record classes should use unboxed numeric types
> ---------------------------------------------------------
>
>                 Key: AVRO-89
>                 URL: https://issues.apache.org/jira/browse/AVRO-89
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.0.1
>
>         Attachments: AVRO-89.patch
>
>
> Currently, in a generated Java class, an integer field has type java.lang.Integer.  It would be more efficient if "int" were used.  Similarly for longs, floats, doubles and boolean.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AVRO-89) generated record classes should use unboxed numeric types

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-89:
-----------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this.

> generated record classes should use unboxed numeric types
> ---------------------------------------------------------
>
>                 Key: AVRO-89
>                 URL: https://issues.apache.org/jira/browse/AVRO-89
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.0.1
>
>         Attachments: AVRO-89.patch
>
>
> Currently, in a generated Java class, an integer field has type java.lang.Integer.  It would be more efficient if "int" were used.  Similarly for longs, floats, doubles and boolean.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.