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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • java
    • None
    • 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.1.patch
          2 kB
          Scott Carey
        2. AVRO-726.patch
          3 kB
          Doug Cutting

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: