public interface Lattice
The top of the lattice is the aggregate with no attributes and one row, that is, the grand total. The bottom of the lattice is the aggregate with all attributes, which is the same as the fully joined star schema with any duplicate rows removed.
| Modifier and Type | Method and Description |
|---|---|
AggregateImpl |
chooseAggregate(double maxCost,
double minCostBenefitRatio,
Cost cost)
Chooses the next un-materialized aggregate with the highest
incremental benefit.
|
Lattice |
copy()
Returns a copy of this lattice.
|
Algorithm.CostBenefit |
costBenefitOf(AggregateImpl aggregate)
Returns an object representing the cost of the given aggregate, and
benefit of adding it to the current lattice.
|
List<AggregateImpl> |
getMaterializedAggregates() |
void |
materialize(AggregateImpl aggregate)
Materializes an aggregate.
|
AggregateImpl chooseAggregate(double maxCost, double minCostBenefitRatio, Cost cost)
maxCost - minCostBenefitRatio - cost - Output parameter, is populated with the benefit and the
number of queries which will benefit by materializing the chosen
aggregatevoid materialize(AggregateImpl aggregate)
aggregate - AggregateList<AggregateImpl> getMaterializedAggregates()
Algorithm.CostBenefit costBenefitOf(AggregateImpl aggregate)
aggregate - AggregateLattice copy()
Copyright © 2006–2016 Julian Hyde. All rights reserved.