public class CalciteUtils
extends java.lang.Object
| Constructor and Description |
|---|
CalciteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SqlTypeName |
getFieldCalciteType(RowType schema,
int index)
Get the
SqlTypeName for the specified column of a table. |
static RowType |
toBeamRowType(RelDataType tableInfo)
Generate
BeamSqlRowType from RelDataType which is used to create table. |
static RelProtoDataType |
toCalciteRowType(RowType rowType)
Create an instance of
RelDataType so it can be used to create a table. |
static SqlTypeName |
toCalciteType(SqlTypeCoder coder)
Get the corresponding Calcite's
SqlTypeName
for supported Beam SQL type coder, see SqlTypeCoder. |
static SqlTypeCoder |
toCoder(SqlTypeName typeName)
Get the Beam SQL type coder (
SqlTypeCoder) from Calcite's SqlTypeName. |
public static SqlTypeName toCalciteType(SqlTypeCoder coder)
SqlTypeName
for supported Beam SQL type coder, see SqlTypeCoder.public static SqlTypeCoder toCoder(SqlTypeName typeName)
SqlTypeCoder) from Calcite's SqlTypeName.public static SqlTypeName getFieldCalciteType(RowType schema, int index)
SqlTypeName for the specified column of a table.public static RowType toBeamRowType(RelDataType tableInfo)
BeamSqlRowType from RelDataType which is used to create table.public static RelProtoDataType toCalciteRowType(RowType rowType)
RelDataType so it can be used to create a table.