Package org.apache.calcite.materialize
Class ProfilerLatticeStatisticProvider
- java.lang.Object
-
- org.apache.calcite.materialize.ProfilerLatticeStatisticProvider
-
- All Implemented Interfaces:
LatticeStatisticProvider
class ProfilerLatticeStatisticProvider extends java.lang.Object implements LatticeStatisticProvider
Implementation ofLatticeStatisticProvider
that uses aProfiler
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.materialize.LatticeStatisticProvider
LatticeStatisticProvider.Factory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static LatticeStatisticProvider.Factory
FACTORY
private java.util.function.Supplier<Profiler.Profile>
profile
-
Constructor Summary
Constructors Modifier Constructor Description private
ProfilerLatticeStatisticProvider(Lattice lattice)
Creates a ProfilerLatticeStatisticProvider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cardinality(java.util.List<Lattice.Column> columns)
Returns an estimate of the number of distinct values in a column or list of columns.
-
-
-
Field Detail
-
FACTORY
static final LatticeStatisticProvider.Factory FACTORY
-
profile
private final java.util.function.Supplier<Profiler.Profile> profile
-
-
Constructor Detail
-
ProfilerLatticeStatisticProvider
private ProfilerLatticeStatisticProvider(Lattice lattice)
Creates a ProfilerLatticeStatisticProvider.
-
-
Method Detail
-
cardinality
public double cardinality(java.util.List<Lattice.Column> columns)
Description copied from interface:LatticeStatisticProvider
Returns an estimate of the number of distinct values in a column or list of columns.- Specified by:
cardinality
in interfaceLatticeStatisticProvider
-
-