mirror of
https://github.com/postgres/postgres.git
synced 2025-12-16 16:42:29 +03:00
Add two HyperLogLog functions
New functions initHyperLogLogError() and freeHyperLogLog() simplify using this module from elsewhere. Author: Tomáš Vondra Review: Peter Geoghegan
This commit is contained in:
@@ -60,8 +60,10 @@ typedef struct hyperLogLogState
|
||||
} hyperLogLogState;
|
||||
|
||||
extern void initHyperLogLog(hyperLogLogState *cState, uint8 bwidth);
|
||||
extern void initHyperLogLogError(hyperLogLogState *cState, double error);
|
||||
extern void addHyperLogLog(hyperLogLogState *cState, uint32 hash);
|
||||
extern double estimateHyperLogLog(hyperLogLogState *cState);
|
||||
extern void mergeHyperLogLog(hyperLogLogState *cState, const hyperLogLogState *oState);
|
||||
extern void freeHyperLogLog(hyperLogLogState *cState);
|
||||
|
||||
#endif /* HYPERLOGLOG_H */
|
||||
|
||||
Reference in New Issue
Block a user