Skip to content

Instantly share code, notes, and snippets.

@yannick
Created April 1, 2016 15:50
Show Gist options
  • Select an option

  • Save yannick/7fe45bf0fea86610fdca6217d1badabf to your computer and use it in GitHub Desktop.

Select an option

Save yannick/7fe45bf0fea86610fdca6217d1badabf to your computer and use it in GitHub Desktop.
alias ColumnName = string;
HLLMap[ColumnName] counters;
alias HashOfTags = string;
alias HLLMap = HLLWrapper[HashOfTags];
//HLLWrapper is a Class
if (! (cnt.columnName in counters))
{
counters[cnt.columnName] = [tags: new HLLWrapper()];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment