Skip to content
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 load function #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

msanterre
Copy link

@msanterre msanterre commented Apr 9, 2018

What this does

  • Adds a load function so we can make a new hyperloglog directly from the bytes instead of needing the gob format.

Why is this needed?

I needed to deserialize HLLs that were serialized from another language.

#14 also tried to address this issue, but lacked tests and seemed to be abandoned.

Instead of setting a state, this returns a new HLL, which I think is cleaner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant