View Source Tablex.Optimizer.Helper (tablex v0.2.0-alpha.1)

Link to this section Summary

Functions

Fix ids of rules.

Order an already sorted, list of rules by hit policy.

Order a list of table rules by priority, high to low.

Link to this section Types

@type order() :: :h2l | :l2h
@type rule() :: Tablex.Table.rule()

Link to this section Functions

@spec fix_ids([rule()]) :: [rule()]

Fix ids of rules.

Link to this function

order_by_hit_policy(rules, arg2, arg3)

View Source
@spec order_by_hit_policy(
  [rule()],
  current_order :: order(),
  Tablex.HitPolicy.hit_policy()
) :: [rule()]

Order an already sorted, list of rules by hit policy.

Link to this function

order_by_priority_high_to_lower(rules, arg2)

View Source

Order a list of table rules by priority, high to low.