]
William Burns updated ISPN-9774:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 10.0.0.Alpha2
9.4.3.Final
Resolution: Done
Word Count Example should be <String, Long> instead of
<String, Integer>
------------------------------------------------------------------------
Key: ISPN-9774
URL:
https://issues.jboss.org/browse/ISPN-9774
Project: Infinispan
Issue Type: Bug
Affects Versions: 9.4.2.Final, 10.0.0.Alpha1
Reporter: Diego Lovison
Assignee: Diego Lovison
Priority: Minor
Fix For: 10.0.0.Alpha2, 9.4.3.Final
In the Word Count Example (
http://infinispan.org/docs/stable/user_guide/user_guide.html#examples_2 ) we have
{code:java}
public class WordCountExample {
public static void main(String[] args) {
// Lines removed
Map<String, Integer> wordCountMap = c1.entrySet().parallelStream()
.map(e -> e.getValue().split("\\s"))
.flatMap(Arrays::stream)
.collect(() -> Collectors.groupingBy(Function.identity(),
Collectors.counting()));
}
}
{code}
It should be
{code:java}
Map<String, Long> wordCountMap
{code}