|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | POW_2_32 (4294967296.0) |
| #define | NEG_POW_2_32 (-4294967296.0) |
| #define NEG_POW_2_32 (-4294967296.0) |
Definition at line 55 of file hyperloglog.c.
| #define POW_2_32 (4294967296.0) |
Definition at line 54 of file hyperloglog.c.
| void addHyperLogLog | ( | hyperLogLogState * | cState, |
| uint32 | hash | ||
| ) |
Definition at line 167 of file hyperloglog.c.
References BITS_PER_BYTE, fb(), hash(), Max, and rho().
Referenced by bytea_abbrev_convert(), hashagg_spill_tuple(), macaddr_abbrev_convert(), network_abbrev_convert(), numeric_abbrev_convert_var(), uuid_abbrev_convert(), and varstr_abbrev_convert().
| double estimateHyperLogLog | ( | hyperLogLogState * | cState | ) |
Definition at line 186 of file hyperloglog.c.
References fb(), i, NEG_POW_2_32, and POW_2_32.
Referenced by bytea_abbrev_abort(), hashagg_spill_finish(), macaddr_abbrev_abort(), network_abbrev_abort(), numeric_abbrev_abort(), uuid_abbrev_abort(), and varstr_abbrev_abort().
| void freeHyperLogLog | ( | hyperLogLogState * | cState | ) |
Definition at line 151 of file hyperloglog.c.
References Assert, fb(), and pfree().
Referenced by hashagg_spill_finish().
| void initHyperLogLog | ( | hyperLogLogState * | cState, |
| uint8 | bwidth | ||
| ) |
Definition at line 66 of file hyperloglog.c.
References elog, ERROR, fb(), and palloc0().
Referenced by bytea_sortsupport(), hashagg_spill_init(), initHyperLogLogError(), macaddr_sortsupport(), network_sortsupport(), numeric_sortsupport(), uuid_sortsupport(), and varstr_sortsupport().
| void initHyperLogLogError | ( | hyperLogLogState * | cState, |
| double | error | ||
| ) |
Definition at line 128 of file hyperloglog.c.
References error(), fb(), and initHyperLogLog().
Definition at line 242 of file hyperloglog.c.
References b, j, pg_leftmost_one_pos32(), and x.
Referenced by addHyperLogLog().