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

Improve Transformer interface JavaDoc

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.10.2.2, 0.11.0.3, 1.1.1, 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: streams
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: