Avro
  1. Avro
  2. AVRO-89

generated record classes should use unboxed numeric types

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: java
    • Labels:
      None

      Description

      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.

      1. AVRO-89.patch
        1 kB
        Doug Cutting

        Issue Links

          Activity

          Hide
          Doug Cutting added a comment -

          I just committed this.

          Show
          Doug Cutting added a comment - I just committed this.
          Hide
          Owen O'Malley added a comment -

          +1

          Show
          Owen O'Malley added a comment - +1
          Hide
          Doug Cutting added a comment -

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

          Show
          Doug Cutting added a comment - This passes all tests. I'll commit it soon if there are no objections.
          Hide
          Doug Cutting added a comment -

          Here's a patch that implements this.

          Show
          Doug Cutting added a comment - Here's a patch that implements this.

            People

            • Assignee:
              Doug Cutting
              Reporter:
              Doug Cutting
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development