omnisketch
data structure for on-line agg of data into approximate sketch
Repository
tvondra/omnisketch
https://github.com/tvondra/omnisketch
Source
omnisketch-1.0.2.tar.gz
omnisketch-1.0.2.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
omnisketch | 1.0.2 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4640 | omnisketch | No | Yes | No | Yes | No | Yes | - |
| Related | ddsketch count_distinct tdigest topn datasketches hll |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.2 | 1817161514 | omnisketch | - |
| RPM | PIGSTY | 1.0.2 | 1817161514 | omnisketch_$v | - |
| DEB | PIGSTY | 1.0.2 | 1817161514 | postgresql-$v-omnisketch | - |
Build
You can build the RPM / DEB packages for omnisketch using pig build:
Install
You can install omnisketch directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
omnisketch: OmniSketch data structure for multi-dimensional stream analytics
Implements OmniSketch for on-line aggregation into approximate sketches and answering count queries with arbitrary predicates on multi-dimensional data.
Functions
| Function | Description |
|---|---|
omnisketch(epsilon, delta, record) | Build a sketch from data with accuracy parameters |
omnisketch(sketch) | Combine multiple compatible sketches |
omnisketch_count(sketch) | Return total records added to the sketch |
omnisketch_estimate(sketch, record) | Estimate count of records matching predicates |
Parameters
epsilon– accuracy relative to total records, range[0,1](lower = more accurate, larger sketch)delta– accuracy, range[0,1]
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)