|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.type.SqlTypeTransforms
public abstract class SqlTypeTransforms
SqlTypeTransforms defines a number of reusable instances of SqlTypeTransform.
NOTE: avoid anonymous inner classes here except for unique, non-generalizable strategies; anything else belongs in a reusable top-level class. If you find yourself copying and pasting an existing strategy's anonymous inner class, you're making a mistake.
| Field Summary | |
|---|---|
static SqlTypeTransform |
forceNullable
Parameter type-inference transform strategy where a derived type is transformed into the same type with nulls allowed. |
static SqlTypeTransform |
onlyColumn
Parameter type-inference transform strategy where a derived type must be a struct type with precisely one field and the returned type is the type of that field. |
static SqlTypeTransform |
toMultisetElementType
Parameter type-inference transform strategy where a derived type must be a multiset type and the returned type is the multiset's element type. |
static SqlTypeTransform |
toNullable
Parameter type-inference transform strategy where a derived type is transformed into the same type but nullable if any of a calls operands is nullable |
static SqlTypeTransform |
toVarying
Type-inference strategy whereby the result type of a call is VARYING the type given. |
| Constructor Summary | |
|---|---|
SqlTypeTransforms()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SqlTypeTransform toNullable
public static final SqlTypeTransform forceNullable
public static final SqlTypeTransform toVarying
public static final SqlTypeTransform toMultisetElementType
MultisetSqlType.getComponentType()public static final SqlTypeTransform onlyColumn
| Constructor Detail |
|---|
public SqlTypeTransforms()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||