HLLMERGE implemented.

Merge N HLL data structures by selecting the max value for every
M[i] register among the set of HLLs.
This commit is contained in:
antirez
2014-03-31 14:39:44 +02:00
parent 39dd1f648d
commit be7fe2b92b
3 changed files with 67 additions and 1 deletions

View File

@ -261,7 +261,8 @@ struct redisCommand redisCommandTable[] = {
{"bitpos",bitposCommand,-3,"r",0,NULL,1,1,1,0,0},
{"hllselftest",hllSelftestCommand,1,"r",0,NULL,0,0,0,0,0},
{"hlladd",hllAddCommand,-2,"wm",0,NULL,1,1,1,0,0},
{"hllcount",hllCountCommand,2,"r",0,NULL,1,1,1,0,0}
{"hllcount",hllCountCommand,2,"w",0,NULL,1,1,1,0,0},
{"hllmerge",hllMergeCommand,-2,"wm",0,NULL,1,-1,1,0,0}
};
/*============================ Utility functions ============================ */