Package org.apache.calcite.profile
Interface Profiler
-
- All Known Implementing Classes:
ProfilerImpl
,SimpleProfiler
public interface Profiler
Analyzes data sets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Profiler.Column
Column.static class
Profiler.Distribution
Value distribution, including cardinality and optionally values, of a column or set of columns.static class
Profiler.FunctionalDependency
Functional dependency.static class
Profiler.Profile
The result of profiling, contains various statistics about the data in a table.static class
Profiler.RowCount
Whole data set.static interface
Profiler.Statistic
Statistic produced by the profiler.static class
Profiler.Unique
Unique key.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Profiler.Profile
profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows, java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Creates a profile of a data set.
-
-
-
Method Detail
-
profile
Profiler.Profile profile(java.lang.Iterable<java.util.List<java.lang.Comparable>> rows, java.util.List<Profiler.Column> columns, java.util.Collection<ImmutableBitSet> initialGroups)
Creates a profile of a data set.- 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
-
-