Liking cljdoc? Tell your friends :D

automaton-optimization.time-based.impl.aggregate

An aggregate is a value object used to define a group of buckets that is homogeneously aggregated in bucket-aggregate.

  • start-bucket is the first bucket of the aggregate (start-bucket ∈ ℕ).
  • end-bucket is the last bucket concerned with that aggregate - end-bucket is excluded - (end-bucket ∈ ℕ or nil).
  • step is the number of buckets gathered in that aggregate, step ∈ ℕ*

Note that without knowing the other aggregate in the aggregates, the targeted bucket-aggregate are not fully defined.

Aggregate entity diagram

An `aggregate` is a value object used to define a group of `bucket`s that is homogeneously aggregated in `bucket-aggregate`.

* `start-bucket` is the first `bucket` of the aggregate (`start-bucket ∈ ℕ`).
* `end-bucket` is the last `bucket` concerned with that aggregate - `end-bucket` is excluded - (`end-bucket ∈ ℕ` or `nil`).
* `step` is the number of `bucket`s gathered in that `aggregate`, `step  ∈ ℕ*`

Note that without knowing the other `aggregate` in the `aggregates`, the targeted  `bucket-aggregate` are not fully defined.

![Aggregate entity diagram](archi/time_based/aggregate.png)
raw docstring

defaultclj/s

(default {:automaton-optimization.time-based/keys [step] :as aggregate})

Default step to 1.

Default `step` to `1`.
raw docstring

schemaclj/s


set-end-bucketclj/s

(set-end-bucket
  {:automaton-optimization.time-based/keys [end-bucket] :as aggregate}
  {:automaton-optimization.time-based/keys [start-bucket] :as _next-aggregate})

For an aggregate, its end-bucket is :

  • not modified is already set,
  • defaulted to start-bucket of the next-aggregate if set.
For an `aggregate`, its `end-bucket` is :
* not modified is already set,
* defaulted to `start-bucket` of the `next-aggregate` if set.
raw docstring

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

× close