Package org.apache.calcite.profile
Class ProfilerImpl
java.lang.Object
org.apache.calcite.profile.ProfilerImpl
- All Implemented Interfaces:
Profiler
Implementation of
Profiler
that only investigates "interesting"
combinations of columns.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.profile.Profiler
Profiler.Column, Profiler.Distribution, Profiler.FunctionalDependency, Profiler.Profile, Profiler.RowCount, Profiler.Statistic, Profiler.Unique
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfilerImpl.Builder
builder()
profile
(Iterable<List<Comparable>> rows, List<Profiler.Column> columns, Collection<ImmutableBitSet> initialGroups) Creates a profile of a data set.
-
Method Details
-
builder
-
profile
public Profiler.Profile profile(Iterable<List<Comparable>> rows, List<Profiler.Column> columns, Collection<ImmutableBitSet> initialGroups) Description copied from interface:Profiler
Creates a profile of a data set.- Specified by:
profile
in interfaceProfiler
- Parameters:
rows
- List of rows. Can be iterated over more than once (maybe not cheaply)columns
- Column definitionsinitialGroups
- List of combinations of columns that should be profiled early, because they may be interesting- Returns:
- A profile describing relationships within the data set
-