-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add HyperLogLog Data Type #669
Conversation
@Override | ||
public RiakHll extractDatatype(RiakDatatype element) | ||
{ | ||
return element.getAsHLL(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hll
(lowercase l
characters) is used elsewhere. I can't say I like the way either version looks, though 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, HLL
, Hll
, and HyperLogLog
all have their downsides, I just chose the least annoying 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it should probably be consistently Hll
everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh h(e)ll, I'll root out those non-compliant vars.
👍 tests ran successfully against |
* this class is used to encapsulate the update to be performed on a | ||
* Riak HyperLogLog datatype. | ||
* </p> | ||
* @author Dave Rusek <drusek at basho dot com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dave still here? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shhh, we keep him in the closet.
Several |
@@ -72,7 +72,7 @@ public HllUpdate add(String element) | |||
*/ | |||
public HllUpdate addAllBinary(Collection<BinaryValue> elements) | |||
{ | |||
if(elements == null) | |||
if (elements == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😃
Adds HLL data type.
Test with a devrel of this Riak branch: https://github.com/basho/riak_ee/tree/develop-2.2
Test / sample usage can be found at:
riak-java-client/src/test/java/com/basho/riak/client/api/commands/itest/ITestDatatype.java
Line 157 in 00fc012
When running maven, add the flag
-Dcom.basho.riak.hlldt=true
to enable the new tests.Docs PR forthcoming.