public class SqlTypeExplicitPrecedenceList extends Object implements RelDataTypePrecedenceList
RelDataTypePrecedenceList interface via an explicit list of
SqlTypeName entries.| Constructor and Description |
|---|
SqlTypeExplicitPrecedenceList(List<SqlTypeName> typeNames) |
| Modifier and Type | Method and 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.
|
public SqlTypeExplicitPrecedenceList(List<SqlTypeName> typeNames)
public boolean containsType(RelDataType type)
RelDataTypePrecedenceListcontainsType in interface RelDataTypePrecedenceListtype - type to checkpublic int compareTypePrecedence(RelDataType type1, RelDataType type2)
RelDataTypePrecedenceListThe list must contain both types.
compareTypePrecedence in interface RelDataTypePrecedenceListtype1 - first type to comparetype2 - second type to compareCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.