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

The following examples show how to use org.apache.calcite.sql.type.SqlOperandCountRanges#of() . 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: 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 3
Source File: Checker.java    From samza with Apache License 2.0 4 votes vote down vote up
private Checker(int size, UdfMetadata udfMetadata) {
  this.range = SqlOperandCountRanges.of(size);
  this.udfMetadataOptional = Optional.of(udfMetadata);
}
 
Example 4
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 5
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 6
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 7
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 8
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 9
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 10
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 11
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 12
Source File: SqlMultisetMemberOfOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example 13
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 14
Source File: SqlOverlapsOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example 15
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 16
Source File: SqlJsonPrettyFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example 17
Source File: SqlCastFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example 18
Source File: SqlItemOperator.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(2);
}
 
Example 19
Source File: SqlDatePartFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}
 
Example 20
Source File: SqlJsonDepthFunction.java    From Bats with Apache License 2.0 4 votes vote down vote up
@Override public SqlOperandCountRange getOperandCountRange() {
  return SqlOperandCountRanges.of(1);
}