当前位置: 首页>>代码示例>>Java>>正文


Java OperandTypes.ANY属性代码示例

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


在下文中一共展示了OperandTypes.ANY属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SqlHllAggFunction

public SqlHllAggFunction() {
  super("HLL",
    null,
    SqlKind.OTHER_FUNCTION,
    ReturnTypes.explicit(SqlTypeName.BINARY),
    null,
    OperandTypes.ANY,
    SqlFunctionCategory.USER_DEFINED_FUNCTION,
    false,
    false
  );
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:12,代码来源:AggPrelBase.java

示例2: SqlFirstLastValueAggFunction

public SqlFirstLastValueAggFunction(SqlKind kind) {
  super(
      kind.name(),
      null,
      kind,
      ReturnTypes.ARG0_NULLABLE_IF_EMPTY,
      null,
      OperandTypes.ANY,
      SqlFunctionCategory.NUMERIC,
      false,
      true);
  Preconditions.checkArgument(kind == SqlKind.FIRST_VALUE
      || kind == SqlKind.LAST_VALUE);
}
 
开发者ID:apache,项目名称:calcite,代码行数:14,代码来源:SqlFirstLastValueAggFunction.java

示例3: SqlCountAggFunction

public SqlCountAggFunction(String name) {
  super(name, null, SqlKind.COUNT, ReturnTypes.BIGINT, null,
      SqlValidator.STRICT
          ? OperandTypes.ANY
          : OperandTypes.ONE_OR_MORE,
      SqlFunctionCategory.NUMERIC, false, false);
}
 
开发者ID:apache,项目名称:calcite,代码行数:7,代码来源:SqlCountAggFunction.java

示例4: SqlCursorConstructor

public SqlCursorConstructor() {
  super(
      "CURSOR",
      SqlKind.CURSOR, MDX_PRECEDENCE,
      false,
      ReturnTypes.CURSOR,
      null,
      OperandTypes.ANY);
}
 
开发者ID:apache,项目名称:calcite,代码行数:9,代码来源:SqlCursorConstructor.java

示例5: SqlSingleValueAggFunction

public SqlSingleValueAggFunction(
    RelDataType type) {
  super(
      "SINGLE_VALUE",
      null,
      SqlKind.SINGLE_VALUE,
      ReturnTypes.ARG0,
      null,
      OperandTypes.ANY,
      SqlFunctionCategory.SYSTEM,
      false,
      false);
  this.type = type;
}
 
开发者ID:apache,项目名称:calcite,代码行数:14,代码来源:SqlSingleValueAggFunction.java

示例6: SqlColumnListConstructor

public SqlColumnListConstructor() {
  super(
      "COLUMN_LIST",
      SqlKind.COLUMN_LIST, MDX_PRECEDENCE,
      false,
      ReturnTypes.COLUMN_LIST,
      null,
      OperandTypes.ANY);
}
 
开发者ID:apache,项目名称:calcite,代码行数:9,代码来源:SqlColumnListConstructor.java

示例7: SqlFlattenOperator

public SqlFlattenOperator(int index) {
  super(new SqlIdentifier("FLATTEN", SqlParserPos.ZERO), DynamicReturnType.INSTANCE, null, OperandTypes.ANY, null, SqlFunctionCategory.USER_DEFINED_FUNCTION);
  this.index = index;
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:4,代码来源:SqlFlattenOperator.java

示例8: apply

public RexNode apply(RexBuilderContext context) {
	RelOptCluster cluster = context.getCluster();
	RelDataTypeFactory typeFactory = cluster.getTypeFactory();
	final SqlFunction UDF =
			new SqlUserDefinedFunction(
					new SqlIdentifier("TO_REFERENCE", SqlParserPos.ZERO),
					ReturnTypes.explicit(typeFactory.createJavaType(HeapReference.class)),
					null,
					OperandTypes.ANY,
					ImmutableList.of(typeFactory.createTypeWithNullability(typeFactory.createJavaType(IObject.class), false)),
					ScalarFunctionImpl.create(ISnapshotMethods.class, "toReference")
			);
	return context.getBuilder().makeCall(UDF, context.getIObject());
}
 
开发者ID:vlsi,项目名称:mat-calcite-plugin,代码行数:14,代码来源:ClassRowTypeCache.java

示例9: SqlCollectionTableOperator

public SqlCollectionTableOperator(String name, SqlModality modality) {
  super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null,
      OperandTypes.ANY);
  this.modality = modality;
}
 
开发者ID:apache,项目名称:calcite,代码行数:5,代码来源:SqlCollectionTableOperator.java

示例10: SqlLateralOperator

public SqlLateralOperator(SqlKind kind) {
  super(kind.name(), kind, 200, true, ReturnTypes.ARG0, null,
      OperandTypes.ANY);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:SqlLateralOperator.java

示例11: MyCountAggFunction

public MyCountAggFunction() {
  super("MY_COUNT", null, SqlKind.OTHER_FUNCTION, ReturnTypes.BIGINT, null,
      OperandTypes.ANY, SqlFunctionCategory.NUMERIC, false, false);
}
 
开发者ID:apache,项目名称:calcite,代码行数:4,代码来源:PlannerTest.java


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