public abstract class SqlTypeTransforms extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
static SqlTypeTransform |
FORCE_NULLABLE
Parameter type-inference transform strategy where a derived type is
transformed into the same type with nulls allowed.
|
static SqlTypeTransform |
ONLY_COLUMN
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 |
TO_MULTISET_ELEMENT_TYPE
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 |
TO_NOT_NULLABLE
Parameter type-inference transform strategy where a derived type is
transformed into the same type but not nullable.
|
static SqlTypeTransform |
TO_NULLABLE
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 |
TO_VARYING
Type-inference strategy whereby the result type of a call is VARYING the
type given.
|
| Constructor and Description |
|---|
SqlTypeTransforms() |
public static final SqlTypeTransform TO_NULLABLE
public static final SqlTypeTransform TO_NOT_NULLABLE
public static final SqlTypeTransform FORCE_NULLABLE
public static final SqlTypeTransform TO_VARYING
public static final SqlTypeTransform TO_MULTISET_ELEMENT_TYPE
MultisetSqlType.getComponentType()public static final SqlTypeTransform ONLY_COLUMN
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.