Algebird is a library for performing abstract algebra in Scala. Use this tag for questions about implementing something using the Algebird library.
Questions tagged [algebird]
4 questions
2
votes
1 answer
Given distinct events, with some mapping to the same ID, how can I find the most recent event for each ID and sum the results using Algebird?
I have been struggling for days to find a solution and so I'm hoping someone with more Algebird experience can help!
I have a stream of events I'm aggregating using Algebird, where each event represents an attempt to perform some task. Consider the…

Josh Diaz
- 21
- 3
0
votes
1 answer
How do I use Java lambda to return an array of bytes when I am using the Algebird library?
I am implementing a test class in Java with the library Algebird to compute HyperLogLog. This library is in scala but I want to use it in Java. In some point I have to translate a list of int into a list of array of bytes, then I have to use the…

Felipe
- 7,013
- 8
- 44
- 102
0
votes
1 answer
What is MonoidAggregator in Algebird
I don't find any documention about MonoidAggregator.
What is it for ?
An example of its use:
MultiAggregator(
...,
Aggregator.forall[T](_.use)).andThenPresent(...)
...,
)
forAll return a MonoidAggregator.
Whould it be roughly the same as…

azerty
- 698
- 7
- 28
0
votes
1 answer
Lift algebird aggregator to consume (and return) Map
The example in the README is very elegant:
scala> Map(1 -> Max(2)) + Map(1 -> Max(3)) + Map(2 -> Max(4))
res0: Map[Int,Max[Int]] = Map(2 -> Max(4), 1 -> Max(3))
Essentially the use of Map here is equivalent to SQL's group by.
But how do I do the…

Todd Owen
- 15,650
- 7
- 54
- 52