Raman
Raman

Reputation: 717

Kafka Stream: Transform method stateless

Can I use the transform without a state, even if that means changing the key to something else?

Note: I am limited to the methods corresponding to the following version (page):

https://kafka.apache.org/0101/javadoc/org/apache/kafka/streams/kstream/KStream.html

Upvotes: 1

Views: 417

Answers (1)

Matthias J. Sax
Matthias J. Sax

Reputation: 62330

Yes, you can use transform() without state. Note, that the last parameter stateStoreNames is for options var-args type String... that allows to pass in zero, one, or more store names.

Not sure what you mean by "even if that means changing the key to something else"

Upvotes: 1

Related Questions