Skip to content

StoreFactory

Defined in: packages/distillate/src/ddsketch/store.ts:30

Builds the stores a sketch keeps, one per sign, both with the same policy. Passed to DDSketch.create as store. Built by this module’s factories only: a sketch serializes its store by kind and maxBins, so a custom one would be read back as the built-in store of that kind.

readonly kind: StoreKind

Defined in: packages/distillate/src/ddsketch/store.ts:32

Which store this builds.


readonly maxBins: number

Defined in: packages/distillate/src/ddsketch/store.ts:34

The most bins a store keeps, or 0 when unbounded.

create(): Store

Defined in: packages/distillate/src/ddsketch/store.ts:36

A new, empty store.

Store