Java Code Examples for org.apache.calcite.rel.core.Aggregate#deriveRowType()
The following examples show how to use
org.apache.calcite.rel.core.Aggregate#deriveRowType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MutableAggregate.java From Bats with Apache License 2.0 | 5 votes |
/** * Creates a MutableAggregate. * * @param input Input relational expression * @param groupSet Bit set of grouping fields * @param groupSets List of all grouping sets; null for just {@code groupSet} * @param aggCalls Collection of calls to aggregate functions */ public static MutableAggregate of(MutableRel input, ImmutableBitSet groupSet, ImmutableList<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls) { RelDataType rowType = Aggregate.deriveRowType(input.cluster.getTypeFactory(), input.rowType, false, groupSet, groupSets, aggCalls); return new MutableAggregate(input, rowType, groupSet, groupSets, aggCalls); }
Example 2
Source File: MutableAggregate.java From calcite with Apache License 2.0 | 5 votes |
/** * Creates a MutableAggregate. * * @param input Input relational expression * @param groupSet Bit set of grouping fields * @param groupSets List of all grouping sets; null for just {@code groupSet} * @param aggCalls Collection of calls to aggregate functions */ public static MutableAggregate of(MutableRel input, ImmutableBitSet groupSet, ImmutableList<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls) { RelDataType rowType = Aggregate.deriveRowType(input.cluster.getTypeFactory(), input.rowType, false, groupSet, groupSets, aggCalls); return new MutableAggregate(input, rowType, groupSet, groupSets, aggCalls); }