Package org.apache.calcite.sql.type
Class SqlOperandCountRanges.RangeImpl
- java.lang.Object
-
- org.apache.calcite.sql.type.SqlOperandCountRanges.RangeImpl
-
- All Implemented Interfaces:
SqlOperandCountRange
- Enclosing class:
- SqlOperandCountRanges
private static class SqlOperandCountRanges.RangeImpl extends java.lang.Object implements SqlOperandCountRange
Implementation ofSqlOperandCountRange
.
-
-
Constructor Summary
Constructors Constructor Description RangeImpl(int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMax()
Returns an upper bound.int
getMin()
Returns an lower bound.boolean
isValidCount(int count)
Returns whethercount
is a valid number of operands.
-
-
-
Method Detail
-
isValidCount
public boolean isValidCount(int count)
Description copied from interface:SqlOperandCountRange
Returns whethercount
is a valid number of operands.- Specified by:
isValidCount
in interfaceSqlOperandCountRange
-
getMin
public int getMin()
Description copied from interface:SqlOperandCountRange
Returns an lower bound. -1 if there is no lower bound.- Specified by:
getMin
in interfaceSqlOperandCountRange
-
getMax
public int getMax()
Description copied from interface:SqlOperandCountRange
Returns an upper bound. -1 if there is no upper bound.- Specified by:
getMax
in interfaceSqlOperandCountRange
-
-