Skip to content

Instantly share code, notes, and snippets.

@confluentgist
Forked from miguno/topic-as-table.java
Created January 9, 2020 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save confluentgist/3b25acf0d1d723dfcdacc7f00e23f296 to your computer and use it in GitHub Desktop.
Save confluentgist/3b25acf0d1d723dfcdacc7f00e23f296 to your computer and use it in GitHub Desktop.
Kafka Streams Example: read topic as table
// Create KTable from Kafka topic.
KTable<String, String> table = builder.table("input-topic", Consumed.with(Serdes.String(), Serdes.String()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment