本文整理汇总了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
);
}
示例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);
}
示例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);
}
示例4: SqlCursorConstructor
public SqlCursorConstructor() {
super(
"CURSOR",
SqlKind.CURSOR, MDX_PRECEDENCE,
false,
ReturnTypes.CURSOR,
null,
OperandTypes.ANY);
}
示例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;
}
示例6: SqlColumnListConstructor
public SqlColumnListConstructor() {
super(
"COLUMN_LIST",
SqlKind.COLUMN_LIST, MDX_PRECEDENCE,
false,
ReturnTypes.COLUMN_LIST,
null,
OperandTypes.ANY);
}
示例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;
}
示例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());
}
示例9: SqlCollectionTableOperator
public SqlCollectionTableOperator(String name, SqlModality modality) {
super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null,
OperandTypes.ANY);
this.modality = modality;
}
示例10: SqlLateralOperator
public SqlLateralOperator(SqlKind kind) {
super(kind.name(), kind, 200, true, ReturnTypes.ARG0, null,
OperandTypes.ANY);
}
示例11: MyCountAggFunction
public MyCountAggFunction() {
super("MY_COUNT", null, SqlKind.OTHER_FUNCTION, ReturnTypes.BIGINT, null,
OperandTypes.ANY, SqlFunctionCategory.NUMERIC, false, false);
}