Liking cljdoc? Tell your friends :D

automaton-optimization.time-based.impl.storage-strategy

Strategies to store data in tb-var.

Note: get-exact and get-measures are redundant functionaly but are here to optimize performance.

Strategies to store data in `tb-var`.

Note: `get-exact` and `get-measures` are redundant functionaly but are here to optimize performance.
raw docstring

BucketDataclj/sprotocol

get-exactclj/s

(get-exact this bucket)

Get the value at bucket

Get the value at `bucket`

update-dateclj/s

(update-date this bucket f args)

Updates the value at bucket with function f, args is a collection of supplementary data passed to f

Updates the value at `bucket` with function `f`,  `args` is a collection of supplementary data passed to `f`

capacityclj/s

(capacity _)

Returns the size of the capacity.

Returns the size of the capacity.

assoc-dateclj/s

(assoc-date this bucket v)

Associates value v to date bucket

Associates value `v` to date `bucket`

get-beforeclj/s

(get-before this bucket)

Returns the first value before bucket

Returns the first value before `bucket`

range-datesclj/s

(range-dates _)

Returns the range of the dataset

Returns the range of the dataset

get-measuresclj/s

(get-measures this buckets)

A subset of values between [bucket-start;bucket-end[.

A subset of values between `[bucket-start;bucket-end[`.

nb-setclj/s

(nb-set _)

Returns the number of data assoced in the datastructure

Returns the number of data assoced in the datastructure

get-afterclj/s

(get-after this bucket)

Returns the first value after bucket

Returns the first value after `bucket`

occupation-rateclj/s

(occupation-rate storage)

Calculates the occupation rate of storage.

Calculates the occupation rate of `storage`.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close