Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/develop/writing-jobs/twitter.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ The operators thereafter are nearly equivalent to the previous tutorial. We need
.keyBy(WordCountPair::getWord)
// On a hopping window of 10 seconds
.window(WindowSpec.timed(Duration.ofSeconds(10)))
.reduce((ReduceFunctionImpl<WordCountPair>) (acc, item) -> {
.reduce((SimpleReduceFunction<WordCountPair>) (acc, item) -> {
if (acc.getWord() != null && !acc.getWord().isEmpty() && !acc.getWord().equals(item.getWord())) {
log.warn("keys dont match: acc ({}) vs item ({})", acc.getWord(), item.getWord());
}
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/develop/writing-jobs/word-count.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class WordCountDslJob extends MantisJobProvider<String> {
})
.keyBy(WordCountPair::getWord)
.window(WindowSpec.timed(Duration.ofSeconds(10)))
.reduce((ReduceFunctionImpl<WordCountPair>) (acc, item) -> {
.reduce((SimpleReduceFunction<WordCountPair>) (acc, item) -> {
if (acc.getWord() != null && !acc.getWord().isEmpty() && !acc.getWord().equals(item.getWord())) {
log.warn("keys dont match: acc ({}) vs item ({})", acc.getWord(), item.getWord());
}
Expand Down