Package org.apache.calcite.rel.type
Interface RelDataTypePrecedenceList
-
- All Known Implementing Classes:
SqlTypeExplicitPrecedenceList
public interface RelDataTypePrecedenceList
RelDataTypePrecedenceList defines a type precedence list for a particular type.- See Also:
SQL:1999 Part 2 Section 9.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compareTypePrecedence(RelDataType type1, RelDataType type2)
Compares the precedence of two types.boolean
containsType(RelDataType type)
Determines whether a type appears in this precedence list.
-
-
-
Method Detail
-
containsType
boolean containsType(RelDataType type)
Determines whether a type appears in this precedence list.- Parameters:
type
- type to check- Returns:
- true iff this list contains type
-
compareTypePrecedence
int compareTypePrecedence(RelDataType type1, RelDataType type2)
Compares the precedence of two types.The list must contain both types.
- Parameters:
type1
- first type to comparetype2
- second type to compare- Returns:
- positive if type1 has higher precedence; negative if type2 has higher precedence; 0 if types have equal precedence
-
-