protected void apply(RelOptRuleCall call, ProjectRelBase postProject,
final AggregateRelBase aggregate, StarTable.StarTableScan scan) {
final RelOptCluster cluster = scan.getCluster();
final RelOptTable table = scan.getTable();
final RelOptLattice lattice = call.getPlanner().getLattice(table);
final List<Lattice.Measure> measures =
lattice.lattice.toMeasures(aggregate.getAggCallList());
Pair<OptiqSchema.TableEntry, MaterializationService.TileKey> pair =
lattice.getAggregate(call.getPlanner(), aggregate.getGroupSet(),
measures);
if (pair == null) {
return;
}
final OptiqSchema.TableEntry tableEntry = pair.left;