Package org.apache.calcite.test
Class FoodMartLatticeStatisticProvider
- java.lang.Object
-
- org.apache.calcite.materialize.DelegatingLatticeStatisticProvider
-
- org.apache.calcite.test.FoodMartLatticeStatisticProvider
-
- All Implemented Interfaces:
org.apache.calcite.materialize.LatticeStatisticProvider
public class FoodMartLatticeStatisticProvider extends org.apache.calcite.materialize.DelegatingLatticeStatisticProvider
Implementation ofLatticeStatisticProvider
that has hard-coded values for various attributes in the FoodMart lattice.This makes testing faster.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,java.lang.Integer>
CARDINALITY_MAP
static org.apache.calcite.materialize.LatticeStatisticProvider.Factory
FACTORY
private org.apache.calcite.materialize.Lattice
lattice
-
Constructor Summary
Constructors Modifier Constructor Description private
FoodMartLatticeStatisticProvider(org.apache.calcite.materialize.Lattice lattice, org.apache.calcite.materialize.LatticeStatisticProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cardinality(java.util.List<org.apache.calcite.materialize.Lattice.Column> columns)
private int
cardinality(org.apache.calcite.materialize.Lattice.Column column)
-
-
-
Method Detail
-
cardinality
private int cardinality(org.apache.calcite.materialize.Lattice.Column column)
-
cardinality
public double cardinality(java.util.List<org.apache.calcite.materialize.Lattice.Column> columns)
- Specified by:
cardinality
in interfaceorg.apache.calcite.materialize.LatticeStatisticProvider
- Overrides:
cardinality
in classorg.apache.calcite.materialize.DelegatingLatticeStatisticProvider
-
-