offerHashed

28 views
Skip to first unread message

jeet27...@gmail.com

unread,
Mar 7, 2018, 5:29:48 PM3/7/18
to stream-lib-user
Hi,

offerHashed method in HyperLogLog returns boolean(false) does it mean that newly added hash value is duplicate?

Thanks

Matt Abrams

unread,
Mar 7, 2018, 5:39:00 PM3/7/18
to stream-...@googlegroups.com
The ICardinality interface defines the contract:

/**
* Offer the value as a hashed long value
*
* @param hashedLong - the hash of the item to offer to the estimator
* @return false if the value returned by cardinality() is unaffected
by the appearance of hashedLong in the stream
*/
boolean offerHashed(long hashedLong);

Matt
> --
> You received this message because you are subscribed to the Google Groups
> "stream-lib-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to stream-lib-us...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

pawan singh

unread,
Mar 9, 2018, 7:57:15 AM3/9/18
to stream-lib-user
correct, but HyperLogLogPlus is returning true for all (even duplicates).

Matt Abrams

unread,
Mar 9, 2018, 12:36:03 PM3/9/18
to stream-...@googlegroups.com

Can you provide a test case that demonstrates that?  The original question was re HyperLogLog.  Do you see the same behavior from both?

 

Matt

Reply all
Reply to author
Forward
0 new messages