本文整理了Java中org.apache.calcite.rel.core.Aggregate.deriveRowType()
方法的一些代码示例,展示了Aggregate.deriveRowType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Aggregate.deriveRowType()
方法的具体详情如下:
包路径:org.apache.calcite.rel.core.Aggregate
类名称:Aggregate
方法名:deriveRowType
[英]Computes the row type of an Aggregate before it exists.
[中]计算聚合存在之前的行类型。
代码示例来源:origin: apache/drill
static MutableAggregate of(MutableRel input, boolean indicator,
ImmutableBitSet groupSet, ImmutableList<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls) {
RelDataType rowType =
Aggregate.deriveRowType(input.cluster.getTypeFactory(),
input.getRowType(), indicator, groupSet, groupSets, aggCalls);
return new MutableAggregate(input, rowType, indicator, groupSet,
groupSets, aggCalls);
}
代码示例来源:origin: Qihoo360/Quicksql
/**
* 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);
}
代码示例来源:origin: org.apache.calcite/calcite-core
/**
* 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);
}
代码示例来源:origin: Qihoo360/Quicksql
protected RelDataType deriveRowType() {
return deriveRowType(getCluster().getTypeFactory(), getInput().getRowType(),
indicator, groupSet, groupSets, aggCalls);
}
代码示例来源:origin: org.apache.calcite/calcite-core
protected RelDataType deriveRowType() {
return deriveRowType(getCluster().getTypeFactory(), getInput().getRowType(),
indicator, groupSet, groupSets, aggCalls);
}
内容来源于网络,如有侵权,请联系作者删除!