Package org.apache.calcite.profile
Class SimpleProfiler.Space
- java.lang.Object
-
- org.apache.calcite.profile.SimpleProfiler.Space
-
- All Implemented Interfaces:
java.lang.Comparable<SimpleProfiler.Space>
- Enclosing class:
- SimpleProfiler
static class SimpleProfiler.Space extends java.lang.Object implements java.lang.Comparable<SimpleProfiler.Space>
Work space for a particular combination of columns.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ImmutableBitSet
columnOrdinals
(package private) com.google.common.collect.ImmutableSortedSet<Profiler.Column>
columns
(package private) java.util.BitSet
dependencies
(package private) java.util.Set<ImmutableBitSet>
dependents
(package private) int
nullCount
(package private) boolean
unique
(package private) java.util.SortedSet<FlatLists.ComparableList<java.lang.Comparable>>
values
-
Constructor Summary
Constructors Constructor Description Space(ImmutableBitSet columnOrdinals, java.lang.Iterable<Profiler.Column> columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cardinality()
Number of distinct values.int
compareTo(SimpleProfiler.Space o)
boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
columnOrdinals
final ImmutableBitSet columnOrdinals
-
columns
final com.google.common.collect.ImmutableSortedSet<Profiler.Column> columns
-
nullCount
int nullCount
-
values
final java.util.SortedSet<FlatLists.ComparableList<java.lang.Comparable>> values
-
unique
boolean unique
-
dependencies
final java.util.BitSet dependencies
-
dependents
final java.util.Set<ImmutableBitSet> dependents
-
-
Constructor Detail
-
Space
Space(ImmutableBitSet columnOrdinals, java.lang.Iterable<Profiler.Column> columns)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(@Nonnull SimpleProfiler.Space o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SimpleProfiler.Space>
-
cardinality
public double cardinality()
Number of distinct values. Null is counted as a value, if present.
-
-