org.apache.calcite.sql.type.SqlOperandCountRanges Java Examples

The following examples show how to use org.apache.calcite.sql.type.SqlOperandCountRanges. 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: NumericExceptFirstOperandChecker.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public SqlOperandCountRange getOperandCountRange() {
	if (nOperands == -1) {
		return SqlOperandCountRanges.any();
	} else {
		return SqlOperandCountRanges.of(nOperands);
	}
}
 
Example #2
Source File: SqlUnnestOperator.java    From Bats with Apache License 2.0 5 votes vote down vote up
public SqlUnnestOperator(boolean withOrdinality) {
  super(
      "UNNEST",
      SqlKind.UNNEST,
      200,
      true,
      null,
      null,
      OperandTypes.repeat(SqlOperandCountRanges.from(1),
          OperandTypes.SCALAR_OR_RECORD_COLLECTION_OR_MAP));
  this.withOrdinality = withOrdinality;
}
 
Example #3
Source File: SqlUnnestOperator.java    From calcite with Apache License 2.0 5 votes vote down vote up
public SqlUnnestOperator(boolean withOrdinality) {
  super(
      "UNNEST",
      SqlKind.UNNEST,
      200,
      true,
      null,
      null,
      OperandTypes.repeat(SqlOperandCountRanges.from(1),
          OperandTypes.SCALAR_OR_RECORD_COLLECTION_OR_MAP));
  this.withOrdinality = withOrdinality;
}
 
Example #4
Source File: NumericExceptFirstOperandChecker.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public SqlOperandCountRange getOperandCountRange() {
	if (nOperands == -1) {
		return SqlOperandCountRanges.any();
	} else {
		return SqlOperandCountRanges.of(nOperands);
	}
}
 
Example #5
Source File: SqlJsonArrayFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.from(1);
}
 
Example #6
Source File: SqlTumbleTableFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(3);
}
 
Example #7
Source File: SqlHopTableFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(4);
}
 
Example #8
Source File: SqlSessionTableFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(4);
}
 
Example #9
Source File: SqlDescriptorOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.from(1);
}
 
Example #10
Source File: SqlMultisetMemberOfOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #11
Source File: SqlJsonDepthFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example #12
Source File: SqlSubstringFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 3);
}
 
Example #13
Source File: SqlDatePartFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example #14
Source File: SqlLikeOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 3);
}
 
Example #15
Source File: Checker.java    From samza with Apache License 2.0 4 votes vote down vote up
private Checker() {
  this.range = SqlOperandCountRanges.any();
  this.udfMetadataOptional = Optional.empty();
}
 
Example #16
Source File: SqlRegexpReplaceFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(3, 6);
}
 
Example #17
Source File: SqlCaseOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.any();
}
 
Example #18
Source File: SqlItemOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #19
Source File: SqlCastFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #20
Source File: SqlJsonRemoveFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.from(2);
}
 
Example #21
Source File: SqlJsonObjectFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.from(1);
}
 
Example #22
Source File: SqlJsonPrettyFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example #23
Source File: SqlDotOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #24
Source File: SqlJsonValueFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 10);
}
 
Example #25
Source File: SqlOverlapsOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #26
Source File: SqlStdOperatorTable.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(1, 2);
}
 
Example #27
Source File: SqlPosixRegexOperator.java    From calcite with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 3);
}
 
Example #28
Source File: SqlJsonTypeFunction.java    From calcite with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example #29
Source File: SqlDotOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example #30
Source File: SqlMultisetMemberOfOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}