Java Code Examples for org.apache.calcite.sql.type.SqlOperandCountRanges#between()

The following examples show how to use org.apache.calcite.sql.type.SqlOperandCountRanges#between() . 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: SqlSubstringFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 3);
}
 
Example 2
Source File: SqlLikeOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(2, 3);
}
 
Example 3
Source File: SqlJsonValueFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(5, 6);
}
 
Example 4
Source File: SqlStdOperatorTable.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(1, 2);
}
 
Example 5
Source File: Checker.java    From Bats with Apache License 2.0 4 votes vote down vote up
private Checker(int min, int max) {
  range = SqlOperandCountRanges.between(min, max);
}
 
Example 6
Source File: Checker.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
private Checker(int min, int max) {
  range = SqlOperandCountRanges.between(min, max);
}
 
Example 7
Source File: DremioArgChecker.java    From dremio-oss with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.between(0, checkers.size());
}
 
Example 8
Source File: Checker.java    From samza with Apache License 2.0 4 votes vote down vote up
private Checker(int min, int max, UdfMetadata udfMetadata) {
  this.range = SqlOperandCountRanges.between(min, max);
  this.udfMetadataOptional = Optional.of(udfMetadata);
}
 
Example 9
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 10
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 11
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 12
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 13
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 14
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);
}