Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-186

no clean way to getCompressionCodec from Java-the-language

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The obvious thing fails:

      CompressionCodec.getCompressionCodec(1) results in cannot find symbol
      symbol : method getCompressionCodec(int)
      location: interface kafka.message.CompressionCodec

      Writing a switch statement with kafka.message.NoCompressionCodec$.MODULE$ and duplicating the logic in CompressionCodec.getCompressionCodec is no fun, nor is creating a Hashtable just to call Utils.getCompressionCodec. I'm not sure if there is a magic keyword to make it easy for javac to understand which CompressionCodec I'm referring to.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cburroughs Chris Burroughs
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: