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 Improvement
    • Status: Closed
    • Priority: Major 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

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development