citusdata / citusdata/postgresql-hll
Support for adding pre-computed HLL entries into an HLL table
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
I have developed a framework that periodically produces several HLL entries using the [java-hll](https://github.com/aggregateknowledge/java-hll) library, and am looking for a way to insert them directly into a Postgres table so as to keep a running total, etc.
The java-hll library README has the following entry, but I am unsure how to take the generated hex output and insert it into an existing table:
"Writing an HLL to its hex representation of storage specification, v1.0.0 (for example, to be inserted into a PostgreSQL database):
```
final byte[] bytes = hll.toBytes();
final String output = "\\x" + NumberUtil.toHex(bytes, 0, bytes.length)
```
"
Any advise on how to leverage both of these technologies would be greatly appreciated, as it seems that the additive nature of the data structure makes this scenario seem plausible.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.