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 typeSqlTypeTransformCascade
.This class is an example of the
strategy pattern
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RelDataType
transformType(SqlOperatorBinding opBinding, RelDataType typeToTransform)
Transforms a type.
-
-
-
Method Detail
-
transformType
RelDataType transformType(SqlOperatorBinding opBinding, RelDataType typeToTransform)
Transforms a type.- Parameters:
opBinding
- call context in which transformation is being performedtypeToTransform
- type to be transformed, never null- Returns:
- transformed type, never null
-
-