Class ConstantArgumentCount
java.lang.Object
org.apache.flink.table.types.inference.ConstantArgumentCount
- All Implemented Interfaces:
ArgumentCount
Helper class for
ArgumentCount with constant boundaries.
Note: All boundaries of this class are inclusive. All indices are 0-based.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantArgumentCountany()static ConstantArgumentCountbetween(int minCount, int maxCount) booleanstatic ConstantArgumentCountfrom(int minCount) Returns the maximum number of argument (inclusive) that a function can take.Returns the minimum number of argument (inclusive) that a function can take.inthashCode()booleanisValidCount(int count) Enables custom validation of argument counts afterArgumentCount.getMinCount()andArgumentCount.getMaxCount()have been validated.static ConstantArgumentCountof(int count) static ConstantArgumentCountto(int maxCount)
-
Method Details
-
of
-
between
-
from
-
to
-
any
-
isValidCount
public boolean isValidCount(int count) Description copied from interface:ArgumentCountEnables custom validation of argument counts afterArgumentCount.getMinCount()andArgumentCount.getMaxCount()have been validated.- Specified by:
isValidCountin interfaceArgumentCount- Parameters:
count- total number of arguments including each argument for a vararg function call
-
getMinCount
Description copied from interface:ArgumentCountReturns the minimum number of argument (inclusive) that a function can take.Optional.empty()if such a lower bound is not defined.- Specified by:
getMinCountin interfaceArgumentCount
-
getMaxCount
Description copied from interface:ArgumentCountReturns the maximum number of argument (inclusive) that a function can take.Optional.empty()if such an upper bound is not defined.- Specified by:
getMaxCountin interfaceArgumentCount
-
equals
-
hashCode
public int hashCode()
-