Package org.apache.calcite.sql.type
Interface SqlTypeTransform
public interface SqlTypeTransform
Strategy to transform one type to another. The transformation is dependent on
the implemented strategy object and in the general case is a function of the
type and the other operands. Can not be used by itself. Must be used in an
object of type
SqlTypeTransformCascade.
This class is an example of the
strategy pattern.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault SqlOperatorBindingapply(SqlOperatorBinding operatorBinding) Creates an operand type transform.transformType(SqlOperatorBinding opBinding, RelDataType typeToTransform) Transforms a type.
-
Method Details
-
transformType
Transforms a type.- Parameters:
opBinding- call context in which transformation is being performedtypeToTransform- type to be transformed, never null- Returns:
- transformed type, never null
-
apply
Creates an operand type transform.
-