本文整理汇总了Java中org.apache.calcite.plan.RelOptCluster.getTypeFactory方法的典型用法代码示例。如果您正苦于以下问题:Java RelOptCluster.getTypeFactory方法的具体用法?Java RelOptCluster.getTypeFactory怎么用?Java RelOptCluster.getTypeFactory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.calcite.plan.RelOptCluster
的用法示例。
在下文中一共展示了RelOptCluster.getTypeFactory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: asNodes
import org.apache.calcite.plan.RelOptCluster; //导入方法依赖的package包/类
private static List<RexInputRef> asNodes(final RelOptCluster cluster, Iterable<Integer> indices){
final RexBuilder builder = cluster.getRexBuilder();
final RelDataTypeFactory factory = cluster.getTypeFactory();
return FluentIterable.from(indices).transform(new Function<Integer, RexInputRef>(){
@Override
public RexInputRef apply(Integer input) {
return builder.makeInputRef(factory.createTypeWithNullability(factory.createSqlType(SqlTypeName.ANY), true), input);
}}).toList();
}
示例2: RexVisitorComplexExprSplitter
import org.apache.calcite.plan.RelOptCluster; //导入方法依赖的package包/类
public RexVisitorComplexExprSplitter(RelOptCluster cluster, FunctionImplementationRegistry funcReg, int firstUnused) {
super(true);
this.factory = cluster.getTypeFactory();
this.builder = cluster.getRexBuilder();
this.funcReg = funcReg;
this.complexExprs = new ArrayList<>();
this.lastUsedIndex = firstUnused;
}
示例3: ConvertFromJsonConverter
import org.apache.calcite.plan.RelOptCluster; //导入方法依赖的package包/类
public ConvertFromJsonConverter(QueryContext context, RelOptCluster cluster) {
this.context = context;
this.query = cluster.getMetadataQuery();
this.factory = cluster.getTypeFactory();
}