Package org.apache.calcite.profile
Class SimpleProfiler.Run
- java.lang.Object
-
- org.apache.calcite.profile.SimpleProfiler.Run
-
- Enclosing class:
- SimpleProfiler
static class SimpleProfiler.Run extends java.lang.Object
A run of the profiler.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Profiler.Column>
columns
private java.util.List<ImmutableBitSet>
keyOrdinalLists
(package private) PartiallyOrderedSet<SimpleProfiler.Space>
keyResults
(package private) PartiallyOrderedSet.Ordering<SimpleProfiler.Space>
ordering
(package private) PartiallyOrderedSet<SimpleProfiler.Space>
results
(package private) java.util.List<SimpleProfiler.Space>
singletonSpaces
(package private) java.util.List<SimpleProfiler.Space>
spaces
(package private) java.util.List<Profiler.Statistic>
statistics
-
Constructor Summary
Constructors Constructor Description Run(java.util.List<Profiler.Column> columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
containsKey(ImmutableBitSet ordinals, boolean strict)
Returns whether a set of column ordinals matches or contains a unique key.private boolean
hasNull(ImmutableBitSet columnOrdinals)
(package private) Profiler.Profile
profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows)
private com.google.common.collect.ImmutableSortedSet<Profiler.Column>
toColumns(java.lang.Iterable<java.lang.Integer> ordinals)
-
-
-
Field Detail
-
columns
private final java.util.List<Profiler.Column> columns
-
spaces
final java.util.List<SimpleProfiler.Space> spaces
-
singletonSpaces
final java.util.List<SimpleProfiler.Space> singletonSpaces
-
statistics
final java.util.List<Profiler.Statistic> statistics
-
ordering
final PartiallyOrderedSet.Ordering<SimpleProfiler.Space> ordering
-
results
final PartiallyOrderedSet<SimpleProfiler.Space> results
-
keyResults
final PartiallyOrderedSet<SimpleProfiler.Space> keyResults
-
keyOrdinalLists
private final java.util.List<ImmutableBitSet> keyOrdinalLists
-
-
Constructor Detail
-
Run
Run(java.util.List<Profiler.Column> columns)
-
-
Method Detail
-
profile
Profiler.Profile profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows)
-
containsKey
private boolean containsKey(ImmutableBitSet ordinals, boolean strict)
Returns whether a set of column ordinals matches or contains a unique key. Ifstrict
, it must contain a unique key.
-
hasNull
private boolean hasNull(ImmutableBitSet columnOrdinals)
-
toColumns
private com.google.common.collect.ImmutableSortedSet<Profiler.Column> toColumns(java.lang.Iterable<java.lang.Integer> ordinals)
-
-