Package io.deephaven.api.agg
Class AggregationOptimizer
java.lang.Object
io.deephaven.api.agg.AggregationOptimizer
- All Implemented Interfaces:
Aggregation.Visitor
Optimizes a collection of
aggregations
by grouping like-specced aggregations together.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static List<Aggregation>
of
(Collection<? extends Aggregation> aggregations) Optimizes a collection ofaggregations
by grouping like-specced aggregations together.void
visit
(Aggregations aggregations) Visit acompound aggregation
.void
visit
(ColumnAggregation columnAgg) Visit acolumn aggregation
.void
visit
(ColumnAggregations columnAggs) Visit acompound column aggregation
.void
Visit acount aggregation
.void
visit
(FirstRowKey firstRowKey) Visit afirst row key aggregation
.void
visit
(LastRowKey lastRowKey) Visit alast row key aggregation
.void
Visit apartition aggregation
.
-
Constructor Details
-
AggregationOptimizer
public AggregationOptimizer()
-
-
Method Details
-
of
Optimizes a collection ofaggregations
by grouping like-specced aggregations together. The input order will be preserved based on the spec-encountered order.- Parameters:
aggregations
- the aggregations- Returns:
- the optimized aggregations
-
build
-
visit
Description copied from interface:Aggregation.Visitor
Visit acompound aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
aggregations
- The compound aggregation to visit
-
visit
Description copied from interface:Aggregation.Visitor
Visit acolumn aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
columnAgg
- The column aggregation to visit
-
visit
Description copied from interface:Aggregation.Visitor
Visit acompound column aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
columnAggs
- The compound column aggregation to visit
-
visit
Description copied from interface:Aggregation.Visitor
Visit acount aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
count
- The count aggregation
-
visit
Description copied from interface:Aggregation.Visitor
Visit afirst row key aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
firstRowKey
- The first row key aggregation
-
visit
Description copied from interface:Aggregation.Visitor
Visit alast row key aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
lastRowKey
- The last row key aggregation
-
visit
Description copied from interface:Aggregation.Visitor
Visit apartition aggregation
.- Specified by:
visit
in interfaceAggregation.Visitor
- Parameters:
partition
- The partition aggregation
-