Package org.apache.calcite.profile
Class Profiler.Distribution
java.lang.Object
org.apache.calcite.profile.Profiler.Distribution
- All Implemented Interfaces:
Profiler.Statistic
- Enclosing interface:
Profiler
Value distribution, including cardinality and optionally values, of a
column or set of columns. If the set of columns is empty, it describes
the number of rows in the entire data set.
-
Constructor Summary
ConstructorDescriptionDistribution
(SortedSet<Profiler.Column> columns, @Nullable SortedSet<Comparable> values, double cardinality, int nullCount, double expectedCardinality, boolean minimal) Creates a Distribution. -
Method Summary
-
Constructor Details
-
Distribution
public Distribution(SortedSet<Profiler.Column> columns, @Nullable SortedSet<Comparable> values, double cardinality, int nullCount, double expectedCardinality, boolean minimal) Creates a Distribution.- Parameters:
columns
- Column or columns being describedvalues
- Values of columns, or null if there are too manycardinality
- Number of distinct valuesnullCount
- Number of rows where this column had a null value;expectedCardinality
- Expected cardinalityminimal
- Whether the distribution is not implied by a unique or functional dependency
-
-
Method Details
-
toMap
- Specified by:
toMap
in interfaceProfiler.Statistic
-