-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Shannon,
if you want to process each record independently, you might be better
of using KStreams#mapValues() or KStream#map()
#transform() allows to attach a state to the operation -- a feature
you might not need.
About creating KStream. You do not need to create one explicitly. You
just write a function (either map or transform) that computes a single
output record for each input record. Kafka Streams does the rest for you
.
You use it like:
KStream inputStream = KStreamBuilder.stream("topicName");
KStream resultStream = inputStream.map(/* give map function here */);
resultStream.to("outputTopicName");
- -Matthias
> -- You received this message because you are subscribed to the
> Google Groups "Confluent Platform" group. To unsubscribe from this
> group and stop receiving emails from it, send an email to
>
confluent-platf...@googlegroups.com
> <mailto:
confluent-platf...@googlegroups.com>. To post
> to this group, send email to
confluent...@googlegroups.com
> <mailto:
confluent...@googlegroups.com>. To view this
> discussion on the web visit
>
https://groups.google.com/d/msgid/confluent-platform/a61d6ae8-1b46-4a0
1-b15d-f804d80a8165%
40googlegroups.com
>
>
<
https://groups.google.com/d/msgid/confluent-platform/a61d6ae8-1b46-4a01
- -b15d-f804d80a8165%
40googlegroups.com?utm_medium=email&utm_source=footer
>.
> For more options, visit
https://groups.google.com/d/optout.
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools -
https://gpgtools.org
iQIcBAEBCgAGBQJX9XoFAAoJECnhiMLycopPyVoQAKaMWAW+PBgwnvwNoWSJzjP8
GGjPKMV8JS8Dqauqr4A6H5/DSgqqYynLYMFhycMj/XQ8tQdVhR4vpySmwDl9mIpD
TeXYzUJOrRiL9HvwLmPkA48Ltt84wUwROOi8nvkiKhDTVMaosPr/SQfXp57nYIEO
fK4yCD4qJ4tLBNcX8G5plx2/JQ7veVM1+wPI7Qgc92VEmln/MH9rEC4tnBAZzHMR
BQ0slHkdDtz4E+0nXrDphSBRVNhQNhlSigdN3hKFcXCOuUG6ROiXBL8iCIad/4Gn
7kto/TZqHN5jKyTG93RU/WDoDbkRJLH2vaezciMYirSKBJS0Xm1bLk2VhWe0seDZ
RFGnFisCSesTQK0o86BIUVeD5NkHHYCA3cochf2EtPGHExyPEOnGFr89XL4WdOAL
CX191sJ2Gkd3WHL6Emz5uM5xRhbDUFMhqj5ThP4LfQThYva9g+WB0vgfQ2WC14a5
tXssM3zMShEQnHsr3FCjAIk1VV8hZEMwz+mVn8dq4/y/sQhLwhTL+HzxCsDlAXBT
x/pS80p0dBmhloqI5GE9ouBXd46jQuIaaBnlI3BylryNzAPXRtFMPQBVMWcxcyWh
/q3jAeYM7gtzMRLVSazFZAkEbN+5DyygPvWWq/OHMlu+WpUk6Qkz/yJk8J3uVt1y
vfXGZ+CC8OO3jf2Kbdks
=hDHi
-----END PGP SIGNATURE-----