View Source Tablex.Optimizer.Helper (tablex v0.2.0-alpha.5)
Link to this section Summary
Functions
Remove all already-existing stubs in an output.
Check if a input condition covers by another.
Fix ids of rules.
Check if an output is meaningful. A meaningful output is one that does not contain all :any elements.
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
Remove all already-existing stubs in an output.
example
Example
iex> conflict_free_output([1, 2, 3], [2, 4, 6]) [:any, :any, :any]
iex> conflict_free_output([1, 2, 3], [2, :any, 6]) [:any, 2, :any]
Check if a input condition covers by another.
Fix ids of rules.
Check if an output is meaningful. A meaningful output is one that does not contain all :any elements.
@spec order_by_hit_policy( [rule()], current_order :: order(), Tablex.HitPolicy.hit_policy() ) :: [rule()]
Order an already sorted, list of rules by hit policy.
Order a list of table rules by priority, high to low.