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

Java compression codec improvements

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.9.0
    • java
    • None

    Description

      • Update a few things to use try-with-resources
      • Updated CodecFactory to reference constants for codec names
      • Fixed a small bug in Snappy and BZip2: compression/decompression were incorrect if the input ByteBuffer was a a slice(). I don't see anywhere that this would actually happen currently, but some codecs were written to account for this correctly; now they're all correct. Updated everything to compute the correct offset into the underlying array. (I can add a test for this in TestAllCodecs once #351 is merged).

      Attachments

        Activity

          People

            jtolar Jacob Tolar
            fokko Fokko Driesprong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: