Docs ->
https://kafka.apache.org/24/documentation/streams/developer-guide/dsl-api.html#aggregating



On 12/23/19 8:30 AM, Aurel Sandu wrote:
> I'am reading the folowing code :
> .......
>         KTable<String, Long> wordCounts = textLines
>             .flatMapValues(textLine -> 
> Arrays.asList(textLine.toLowerCase().split("\\W+")))
>             .groupBy((key, word) -> word)
>             .count(Materialized.<String, Long, KeyValueStore<Bytes, 
> byte[]>>as("counts-store"));
> .......
> 
> I do not understand the last line ... what is this ?
> Materialized.<String, Long, KeyValueStore<Bytes, byte[]>>as("counts-store")  ?
> Materialized is from this 
> https://kafka.apache.org/21/javadoc/org/apache/kafka/streams/kstream/Materialized.html
> Please give me a link where I can find explanations ,
> Many thanks,
> Aurel 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to