Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-726

Make GenericDatumReader/GenericDatumWriter data member protected so that it can be used by the derived classes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently, GenericDatumReader/GenericDatumWriter data members are private. Is it possible to make them protected so that we could extend those classes and create our own special DatumReader/Writer? The reason we want to do that is because we've created our own base SpecificRecordEx that implements SpecificRecord and added put/get for primitive types. We now want to extend the GenericDatumReader/GenericDatumWriter to use those primitive put/get functions to reduce box/unbox for better performance.
      Thanks,

      Xiaolu

        Attachments

        1. AVRO-726.patch
          3 kB
          Doug Cutting
        2. AVRO-726.1.patch
          2 kB
          Scott Carey

          Issue Links

            Activity

              People

              • Assignee:
                cutting Doug Cutting
                Reporter:
                xiaoluye Xiaolu Ye
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: