Skip to content

Add load function#25

Open
msanterre wants to merge 1 commit into
clarkduvall:masterfrom
msanterre:master
Open

Add load function#25
msanterre wants to merge 1 commit into
clarkduvall:masterfrom
msanterre:master

Conversation

@msanterre

@msanterre msanterre commented Apr 9, 2018

Copy link
Copy Markdown

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