public interface SqlTypeMappingRule
Each instance should define a type mapping matrix which actually defines the rules that indicate whether one type can apply the rule to another.
Typically, the "rule" can be type assignment or type coercion.
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canApplyFrom(SqlTypeName to,
SqlTypeName from)
Returns whether it is valid to apply the defined rules from type
from to
type to. |
Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>> |
getTypeMapping()
Returns the type mappings of this rule instance.
|
Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>> getTypeMapping()
The mappings should be immutable.
default boolean canApplyFrom(SqlTypeName to, SqlTypeName from)
from to
type to.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.