/
githubmirror
/
redis
Обзор
Документация
Войти
/
githubmirror
/
redis
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
unstable
src/hyperloglog.h
24 строки
661 B
hristostaykov-del
Implement sunioncard command (#14893)
12 июн 2026, 10:48
Не верифицирован
12 июн 2026, 10:48
f6ffa00
Код
Авторство
О чём код?
/* hyperloglog.h -- Redis HyperLogLog probabilistic cardinality approximation. * * Copyright (c) 2026-Present, Redis Ltd. * All rights reserved. * * Licensed under your choice of (a) the Redis Source Available License 2.0 * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the * GNU Affero General Public License v3 (AGPLv3). */ #ifndef HYPERLOGLOG_H #define HYPERLOGLOG_H #include <stdint.h> #include <stddef.h> #include "object.h" typedef struct hllhdr hllhdr; robj *createHLLObject(void); int hllAdd(robj *o, unsigned char *ele, size_t elesize); uint64_t hllCount(struct hllhdr *hdr, int *invalid); #endif /* HYPERLOGLOG_H */