• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SqlReturnTypeInference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.calcite.sql.type.SqlReturnTypeInference的典型用法代码示例。如果您正苦于以下问题:Java SqlReturnTypeInference类的具体用法?Java SqlReturnTypeInference怎么用?Java SqlReturnTypeInference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SqlReturnTypeInference类属于org.apache.calcite.sql.type包,在下文中一共展示了SqlReturnTypeInference类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: SqlSpecialOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlSpecialOperator(
    String name,
    SqlKind kind,
    int prec,
    boolean leftAssoc,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      prec,
      leftAssoc,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:18,代码来源:SqlSpecialOperator.java


示例2: SqlSetOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlSetOperator(
    String name,
    SqlKind kind,
    int prec,
    boolean all,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      prec,
      true,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
  this.all = all;
}
 
开发者ID:apache,项目名称:calcite,代码行数:19,代码来源:SqlSetOperator.java


示例3: SqlInternalOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlInternalOperator(
    String name,
    SqlKind kind,
    int prec,
    boolean isLeftAssoc,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      prec,
      isLeftAssoc,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:18,代码来源:SqlInternalOperator.java


示例4: SqlPostfixOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlPostfixOperator(
    String name,
    SqlKind kind,
    int prec,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      leftPrec(prec, true),
      rightPrec(prec, true),
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:17,代码来源:SqlPostfixOperator.java


示例5: SqlBinaryOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/**
 * Creates a SqlBinaryOperator.
 *
 * @param name                 Name of operator
 * @param kind                 Kind
 * @param prec                 Precedence
 * @param leftAssoc            Left-associativity
 * @param returnTypeInference  Strategy to infer return type
 * @param operandTypeInference Strategy to infer operand types
 * @param operandTypeChecker   Validator for operand types
 */
public SqlBinaryOperator(
    String name,
    SqlKind kind,
    int prec,
    boolean leftAssoc,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      leftPrec(prec, leftAssoc),
      rightPrec(prec, leftAssoc),
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:29,代码来源:SqlBinaryOperator.java


示例6: SqlInfixOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
protected SqlInfixOperator(
    String[] names,
    SqlKind kind,
    int precedence,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      names[0],
      kind,
      precedence,
      true,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
  assert names.length > 1;
  this.names = names;
}
 
开发者ID:apache,项目名称:calcite,代码行数:19,代码来源:SqlInfixOperator.java


示例7: SqlMonotonicBinaryOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlMonotonicBinaryOperator(
    String name,
    SqlKind kind,
    int prec,
    boolean isLeftAssoc,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      prec,
      isLeftAssoc,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:18,代码来源:SqlMonotonicBinaryOperator.java


示例8: SqlPrefixOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlPrefixOperator(
    String name,
    SqlKind kind,
    int prec,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      leftPrec(prec, true),
      rightPrec(prec, true),
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:17,代码来源:SqlPrefixOperator.java


示例9: SqlAggFunction

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/** Creates a built-in or user-defined SqlAggFunction or window function.
 *
 * <p>A user-defined function will have a value for {@code sqlIdentifier}; for
 * a built-in function it will be null. */
protected SqlAggFunction(
    String name,
    SqlIdentifier sqlIdentifier,
    SqlKind kind,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker,
    SqlFunctionCategory funcType,
    boolean requiresOrder,
    boolean requiresOver) {
  super(name, sqlIdentifier, kind, returnTypeInference, operandTypeInference,
      operandTypeChecker, null, funcType);
  this.requiresOrder = requiresOrder;
  this.requiresOver = requiresOver;
}
 
开发者ID:apache,项目名称:calcite,代码行数:20,代码来源:SqlAggFunction.java


示例10: SqlFunction

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/**
 * Creates a new SqlFunction for a call to a builtin function.
 *
 * @param name                 Name of builtin function
 * @param kind                 kind of operator implemented by function
 * @param returnTypeInference  strategy to use for return type inference
 * @param operandTypeInference strategy to use for parameter type inference
 * @param operandTypeChecker   strategy to use for parameter type checking
 * @param category             categorization for function
 */
public SqlFunction(
    String name,
    SqlKind kind,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker,
    SqlFunctionCategory category) {
  // We leave sqlIdentifier as null to indicate
  // that this is a builtin.  Same for paramTypes.
  this(name, null, kind, returnTypeInference, operandTypeInference,
      operandTypeChecker, null, category);

  assert !((category == SqlFunctionCategory.USER_DEFINED_CONSTRUCTOR)
      && (returnTypeInference == null));
}
 
开发者ID:apache,项目名称:calcite,代码行数:26,代码来源:SqlFunction.java


示例11: SqlOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/**
 * Creates an operator.
 */
protected SqlOperator(
    String name,
    SqlKind kind,
    int leftPrecedence,
    int rightPrecedence,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  assert kind != null;
  this.name = name;
  this.kind = kind;
  this.leftPrec = leftPrecedence;
  this.rightPrec = rightPrecedence;
  this.returnTypeInference = returnTypeInference;
  this.operandTypeInference = operandTypeInference;
  this.operandTypeChecker = operandTypeChecker;
}
 
开发者ID:apache,项目名称:calcite,代码行数:21,代码来源:SqlOperator.java


示例12: SqlFunctionalOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlFunctionalOperator(
    String name,
    SqlKind kind,
    int pred,
    boolean isLeftAssoc,
    SqlReturnTypeInference returnTypeInference,
    SqlOperandTypeInference operandTypeInference,
    SqlOperandTypeChecker operandTypeChecker) {
  super(
      name,
      kind,
      pred,
      isLeftAssoc,
      returnTypeInference,
      operandTypeInference,
      operandTypeChecker);
}
 
开发者ID:apache,项目名称:calcite,代码行数:18,代码来源:SqlFunctionalOperator.java


示例13: SqlAggOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlAggOperator(String name, int argCountMin, int argCountMax, SqlReturnTypeInference sqlReturnTypeInference) {
  super(name,
      new SqlIdentifier(name, SqlParserPos.ZERO),
      SqlKind.OTHER_FUNCTION,
      sqlReturnTypeInference,
      null,
      Checker.getChecker(argCountMin, argCountMax),
      SqlFunctionCategory.USER_DEFINED_FUNCTION);
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:10,代码来源:SqlAggOperator.java


示例14: SqlOperatorImpl

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlOperatorImpl(String name, int argCountMin, int argCountMax, boolean isDeterministic,
    SqlReturnTypeInference sqlReturnTypeInference) {
  this(name,
      argCountMin,
      argCountMax,
      isDeterministic,
      DynamicReturnType.INSTANCE,
      SqlSyntax.FUNCTION);
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:10,代码来源:SqlOperatorImpl.java


示例15: getSqlReturnTypeInference

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/**
 * Give the name and BaseFunctionHolder list, return the inference mechanism.
 */
public static SqlReturnTypeInference getSqlReturnTypeInference(
    final String name,
    final List<BaseFunctionHolder> functions) {

  final String nameCap = name.toUpperCase();
  if(funcNameToInference.containsKey(nameCap)) {
    return funcNameToInference.get(nameCap);
  } else {
    return new DefaultSqlReturnTypeInference(functions);
  }
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:15,代码来源:TypeInferenceUtils.java


示例16: getColumnMappings

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
private Set<RelColumnMapping> getColumnMappings(SqlOperator op) {
	SqlReturnTypeInference rti = op.getReturnTypeInference();
	if (rti == null) {
		return null;
	}
	if (rti instanceof TableFunctionReturnTypeInference) {
		TableFunctionReturnTypeInference tfrti =
			(TableFunctionReturnTypeInference) rti;
		return tfrti.getColumnMappings();
	} else {
		return null;
	}
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:14,代码来源:SqlToRelConverter.java


示例17: SqlUserDefinedAggFunction

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
public SqlUserDefinedAggFunction(SqlIdentifier opName,
                                 SqlReturnTypeInference returnTypeInference,
                                 SqlOperandTypeInference operandTypeInference,
                                 SqlOperandTypeChecker operandTypeChecker,
                                 AggregateFunction function,
                                 Boolean requestsOver) {
    super(Util.last(opName.names), opName, SqlKind.OTHER_FUNCTION,
          returnTypeInference, operandTypeInference, operandTypeChecker,
          SqlFunctionCategory.USER_DEFINED_FUNCTION, false, requestsOver);
    this.function = function;
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:12,代码来源:SqlUserDefinedAggFunction.java


示例18: SqlGroupFunction

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/** Creates a SqlGroupFunction.
*
* @param name Function name
* @param kind Kind
* @param groupFunction Group function, if this is an auxiliary;
*                      null, if this is a group function
* @param returnTypeInference Inference of the functions return type
* @param operandTypeChecker Operand type checker
*/
public SqlGroupFunction(String name, SqlKind kind, SqlGroupFunction groupFunction,
    SqlReturnTypeInference returnTypeInference, SqlOperandTypeChecker operandTypeChecker) {
  super(name, kind, returnTypeInference, null, operandTypeChecker,
    SqlFunctionCategory.SYSTEM);
  this.groupFunction = groupFunction;
  if (groupFunction != null) {
    assert groupFunction.groupFunction == null;
  }
}
 
开发者ID:axbaretto,项目名称:flink,代码行数:19,代码来源:SqlGroupFunction.java


示例19: DrillSqlOperator

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
/**
 * This constructor exists for the legacy reason.
 *
 * It is because Drill cannot access to DrillOperatorTable at the place where this constructor is being called.
 * In principle, if Drill needs a DrillSqlOperator, it is supposed to go to DrillOperatorTable for pickup.
 */
@Deprecated
public DrillSqlOperator(final String name, final int argCount, final boolean isDeterministic,
    final SqlReturnTypeInference sqlReturnTypeInference, final boolean isNiladic) {
  this(name,
      new ArrayList<DrillFuncHolder>(),
      argCount,
      argCount,
      isDeterministic,
      sqlReturnTypeInference,
      isNiladic);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:18,代码来源:DrillSqlOperator.java


示例20: DrillCalciteSqlAggFunctionWrapper

import org.apache.calcite.sql.type.SqlReturnTypeInference; //导入依赖的package包/类
private DrillCalciteSqlAggFunctionWrapper(
    SqlAggFunction sqlAggFunction,
    SqlReturnTypeInference sqlReturnTypeInference) {
  super(sqlAggFunction.getName(),
      sqlAggFunction.getSqlIdentifier(),
      sqlAggFunction.getKind(),
      sqlReturnTypeInference,
      sqlAggFunction.getOperandTypeInference(),
      Checker.ANY_CHECKER,
      sqlAggFunction.getFunctionType(),
      sqlAggFunction.requiresOrder(),
      sqlAggFunction.requiresOver());
  this.operator = sqlAggFunction;
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:15,代码来源:DrillCalciteSqlAggFunctionWrapper.java



注:本文中的org.apache.calcite.sql.type.SqlReturnTypeInference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IBundleGroupProvider类代码示例发布时间:2022-05-22
下一篇:
Java XmlErrorHandler类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap