Java Code Examples for org.apache.calcite.sql.type.ReturnTypes#ARG0

The following examples show how to use org.apache.calcite.sql.type.ReturnTypes#ARG0 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlGroupedWindowFunction.java    From Bats with Apache License 2.0 5 votes vote down vote up
@Deprecated // to be removed before 2.0
public SqlGroupedWindowFunction(SqlKind kind,
    SqlGroupedWindowFunction groupFunction,
    SqlOperandTypeChecker operandTypeChecker) {
  this(kind.name(), kind, groupFunction, ReturnTypes.ARG0, null,
      operandTypeChecker, SqlFunctionCategory.SYSTEM);
}
 
Example 2
Source File: SqlLiteralChainOperator.java    From calcite with Apache License 2.0 5 votes vote down vote up
SqlLiteralChainOperator() {
  super(
      "$LiteralChain",
      SqlKind.LITERAL_CHAIN,
      80,
      true,

      // precedence tighter than the * and || operators
      ReturnTypes.ARG0,
      InferTypes.FIRST_KNOWN,
      OperandTypes.VARIADIC);
}
 
Example 3
Source File: SqlGroupedWindowFunction.java    From calcite with Apache License 2.0 5 votes vote down vote up
@Deprecated // to be removed before 2.0
public SqlGroupedWindowFunction(SqlKind kind,
    SqlGroupedWindowFunction groupFunction,
    SqlOperandTypeChecker operandTypeChecker) {
  this(kind.name(), kind, groupFunction, ReturnTypes.ARG0, null,
      operandTypeChecker, SqlFunctionCategory.SYSTEM);
}
 
Example 4
Source File: SqlGroupedWindowFunction.java    From calcite with Apache License 2.0 5 votes vote down vote up
@Deprecated // to be removed before 2.0
public SqlGroupedWindowFunction(String name, SqlKind kind,
    SqlGroupedWindowFunction groupFunction,
    SqlOperandTypeChecker operandTypeChecker) {
  this(name, kind, groupFunction, ReturnTypes.ARG0, null, operandTypeChecker,
      SqlFunctionCategory.SYSTEM);
}
 
Example 5
Source File: SqlAuxiliaryGroupAggFunction.java    From flink with Apache License 2.0 5 votes vote down vote up
public SqlAuxiliaryGroupAggFunction() {
	super("AUXILIARY_GROUP",
			null,
			SqlKind.OTHER_FUNCTION,
			ReturnTypes.ARG0,
			null,
			OperandTypes.ANY,
			SqlFunctionCategory.SYSTEM,
			false,
			false);
}
 
Example 6
Source File: SqlMultisetQueryConstructor.java    From calcite with Apache License 2.0 5 votes vote down vote up
protected SqlMultisetQueryConstructor(String name, SqlKind kind) {
  super(
      name,
      kind, MDX_PRECEDENCE,
      false,
      ReturnTypes.ARG0,
      null,
      OperandTypes.VARIADIC);
}
 
Example 7
Source File: SqlSingleValueAggFunction.java    From Bats with Apache License 2.0 5 votes vote down vote up
public SqlSingleValueAggFunction(
    RelDataType type) {
  super(
      "SINGLE_VALUE",
      null,
      SqlKind.SINGLE_VALUE,
      ReturnTypes.ARG0,
      null,
      OperandTypes.ANY,
      SqlFunctionCategory.SYSTEM,
      false,
      false,
      Optionality.FORBIDDEN);
  this.type = type;
}
 
Example 8
Source File: SqlMultisetValueConstructor.java    From Bats with Apache License 2.0 5 votes vote down vote up
protected SqlMultisetValueConstructor(String name, SqlKind kind) {
  super(
      name,
      kind, MDX_PRECEDENCE,
      false,
      ReturnTypes.ARG0,
      InferTypes.FIRST_KNOWN,
      OperandTypes.VARIADIC);
}
 
Example 9
Source File: SqlMultisetQueryConstructor.java    From Bats with Apache License 2.0 5 votes vote down vote up
protected SqlMultisetQueryConstructor(String name, SqlKind kind) {
  super(
      name,
      kind, MDX_PRECEDENCE,
      false,
      ReturnTypes.ARG0,
      null,
      OperandTypes.VARIADIC);
}
 
Example 10
Source File: SqlLiteralChainOperator.java    From Bats with Apache License 2.0 5 votes vote down vote up
SqlLiteralChainOperator() {
  super(
      "$LiteralChain",
      SqlKind.LITERAL_CHAIN,
      80,
      true,

      // precedence tighter than the * and || operators
      ReturnTypes.ARG0,
      InferTypes.FIRST_KNOWN,
      OperandTypes.VARIADIC);
}
 
Example 11
Source File: SqlGroupedWindowFunction.java    From Bats with Apache License 2.0 5 votes vote down vote up
@Deprecated // to be removed before 2.0
public SqlGroupedWindowFunction(String name, SqlKind kind,
    SqlGroupedWindowFunction groupFunction,
    SqlOperandTypeChecker operandTypeChecker) {
  this(name, kind, groupFunction, ReturnTypes.ARG0, null, operandTypeChecker,
      SqlFunctionCategory.SYSTEM);
}
 
Example 12
Source File: SqlCollectionTableOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlCollectionTableOperator(String name, SqlModality modality) {
  super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null,
      OperandTypes.ANY);
  this.modality = modality;
}
 
Example 13
Source File: SqlNullTreatmentOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlNullTreatmentOperator(SqlKind kind) {
  super(kind.sql, kind, 20, true, ReturnTypes.ARG0, null, OperandTypes.ANY);
  Preconditions.checkArgument(kind == SqlKind.RESPECT_NULLS
      || kind == SqlKind.IGNORE_NULLS);
}
 
Example 14
Source File: SqlWithinGroupOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlWithinGroupOperator() {
  super("WITHIN GROUP", SqlKind.WITHIN_GROUP, 100, true, ReturnTypes.ARG0,
      null, OperandTypes.ANY_ANY);
}
 
Example 15
Source File: SqlLateralOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlLateralOperator(SqlKind kind) {
  super(kind.name(), kind, 200, true, ReturnTypes.ARG0, null,
      OperandTypes.ANY);
}
 
Example 16
Source File: SqlWithinGroupOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlWithinGroupOperator() {
  super("WITHIN GROUP", SqlKind.WITHIN_GROUP, 100, true, ReturnTypes.ARG0,
      null, OperandTypes.ANY_ANY);
}
 
Example 17
Source File: SqlInternalOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlInternalOperator(
    String name,
    SqlKind kind,
    int prec) {
  this(name, kind, prec, true, ReturnTypes.ARG0, null, OperandTypes.VARIADIC);
}
 
Example 18
Source File: SqlInternalOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlInternalOperator(
    String name,
    SqlKind kind,
    int prec) {
  this(name, kind, prec, true, ReturnTypes.ARG0, null, OperandTypes.VARIADIC);
}
 
Example 19
Source File: SqlCollectionTableOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlCollectionTableOperator(String name, SqlModality modality) {
  super(name, SqlKind.COLLECTION_TABLE, 200, true, ReturnTypes.ARG0, null,
      OperandTypes.ANY);
  this.modality = modality;
}
 
Example 20
Source File: SqlGroupedWindowFunction.java    From Bats with Apache License 2.0 2 votes vote down vote up
/** Creates an auxiliary function from this grouped window function.
 *
 * @param name Function name
 * @param kind Kind
 */
public SqlGroupedWindowFunction auxiliary(String name, SqlKind kind) {
  return new SqlGroupedWindowFunction(name, kind, this, ReturnTypes.ARG0,
      null, getOperandTypeChecker(), SqlFunctionCategory.SYSTEM);
}