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

Improve Transformer interface JavaDoc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.10.2.2, 0.11.0.3, 1.1.1, 2.0.0
    • 2.1.0
    • streams

    Description

      Currently Transformer JavaDoc mentions that it is possible to use both ctx.forward() and returning a KeyValue(). It would be great if we could mention that returning a KeyValue is merely a convenience thing. In other words, everything can be achieved using ctx.forward():

      "return new KeyValue()" and "ctx.forward(); return null;" are equivalent.

      Attachments

        Issue Links

          Activity

            People

              efeller Eugen Feller
              efeller Eugen Feller
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: