org.apache.calcite.rel.core.Aggregate.deriveRowType()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.apache.calcite.rel.core.Aggregate.deriveRowType()方法的一些代码示例,展示了Aggregate.deriveRowType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Aggregate.deriveRowType()方法的具体详情如下:
包路径:org.apache.calcite.rel.core.Aggregate
类名称:Aggregate
方法名:deriveRowType

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);
}

相关文章