Java Code Examples for org.apache.calcite.sql.type.OperandTypes#VARIADIC

The following examples show how to use org.apache.calcite.sql.type.OperandTypes#VARIADIC . 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: SqlJdbcFunctionCall.java    From Bats with Apache License 2.0 5 votes vote down vote up
public SqlJdbcFunctionCall(String name) {
  super(
      "{fn " + name + "}",
      SqlKind.JDBC_FN,
      null,
      null,
      OperandTypes.VARIADIC,
      SqlFunctionCategory.SYSTEM);
  jdbcName = name;
  lookupMakeCallObj = JdbcToInternalLookupTable.INSTANCE.lookup(name);
  lookupCall = null;
}
 
Example 2
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 3
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 4
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 5
Source File: SqlJdbcFunctionCall.java    From calcite with Apache License 2.0 5 votes vote down vote up
public SqlJdbcFunctionCall(String name) {
  super(
      "{fn " + name + "}",
      SqlKind.JDBC_FN,
      null,
      null,
      OperandTypes.VARIADIC,
      SqlFunctionCategory.SYSTEM);
  jdbcName = name;
  lookupMakeCallObj = JdbcToInternalLookupTable.INSTANCE.lookup(name);
  lookupCall = null;
}
 
Example 6
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 7
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 8
Source File: SqlMultisetValueConstructor.java    From calcite 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: MockSqlOperatorTable.java    From calcite with Apache License 2.0 5 votes vote down vote up
public DedupFunction() {
  super("DEDUP",
      SqlKind.OTHER_FUNCTION,
      null,
      null,
      OperandTypes.VARIADIC,
      SqlFunctionCategory.USER_DEFINED_FUNCTION);
}
 
Example 10
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 11
Source File: SqlJsonArrayFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlJsonArrayFunction() {
  super("JSON_ARRAY", SqlKind.OTHER_FUNCTION, ReturnTypes.VARCHAR_2000, null,
      OperandTypes.VARIADIC, SqlFunctionCategory.SYSTEM);
}
 
Example 12
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 13
Source File: SqlJsonArrayFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlJsonArrayFunction() {
  super("JSON_ARRAY", SqlKind.OTHER_FUNCTION, ReturnTypes.VARCHAR_2000,
      InferTypes.ANY_NULLABLE, OperandTypes.VARIADIC, SqlFunctionCategory.SYSTEM);
}