Skip to content

Commit

Permalink
Simplify Scala example
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael G. Noll committed Jan 31, 2018
1 parent cd5639c commit 2820d1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class StreamToTableJoinScalaIntegrationTest extends AssertionsForJUnit {
val clicksPerRegion: KTable[String, Long] = clicksByRegion
// Compute the total per region by summing the individual click counts per region.
.groupByKey(Serialized.`with`(stringSerde, longSerde))
.reduce((firstClicks: Long, secondClicks: Long) => firstClicks + secondClicks: Long)
.reduce(_ + _)

// Write the (continuously updating) results to the output topic.
clicksPerRegion.toStream().to(outputTopic, Produced.`with`(stringSerde, longSerde))
Expand Down

0 comments on commit 2820d1a

Please sign in to comment.