public class CalciteUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Schema.FieldType |
BIG_INT |
static Schema.FieldType |
BOOLEAN |
static Schema.FieldType |
CHAR |
static Schema.FieldType |
DATE |
static Schema.FieldType |
DECIMAL |
static Schema.FieldType |
DOUBLE |
static Schema.FieldType |
FLOAT |
static Schema.FieldType |
INTEGER |
static Schema.FieldType |
SMALL_INT |
static Schema.FieldType |
TIME |
static Schema.FieldType |
TIMESTAMP |
static Schema.FieldType |
TINY_INT |
static Schema.FieldType |
VARCHAR |
Constructor and Description |
---|
CalciteUtils() |
Modifier and Type | Method and Description |
---|---|
static Schema |
toBeamSchema(org.apache.calcite.rel.type.RelDataType tableInfo)
Generate
Schema from RelDataType which is used to create table. |
static Schema.Field |
toBeamSchemaField(org.apache.calcite.rel.type.RelDataTypeField calciteField) |
static org.apache.calcite.rel.type.RelDataType |
toCalciteRowType(Schema schema,
org.apache.calcite.rel.type.RelDataTypeFactory dataTypeFactory)
Create an instance of
RelDataType so it can be used to create a table. |
static Schema.FieldType |
toFieldType(org.apache.calcite.rel.type.RelDataType calciteType) |
static Schema.FieldType |
toFieldType(org.apache.calcite.sql.type.SqlTypeName sqlTypeName) |
static org.apache.calcite.sql.type.SqlTypeName |
toSqlTypeName(Schema.FieldType type) |
public static final Schema.FieldType TINY_INT
public static final Schema.FieldType SMALL_INT
public static final Schema.FieldType INTEGER
public static final Schema.FieldType BIG_INT
public static final Schema.FieldType FLOAT
public static final Schema.FieldType DOUBLE
public static final Schema.FieldType DECIMAL
public static final Schema.FieldType BOOLEAN
public static final Schema.FieldType CHAR
public static final Schema.FieldType VARCHAR
public static final Schema.FieldType TIME
public static final Schema.FieldType DATE
public static final Schema.FieldType TIMESTAMP
public static Schema toBeamSchema(org.apache.calcite.rel.type.RelDataType tableInfo)
Schema
from RelDataType
which is used to create table.public static org.apache.calcite.sql.type.SqlTypeName toSqlTypeName(Schema.FieldType type)
public static Schema.FieldType toFieldType(org.apache.calcite.sql.type.SqlTypeName sqlTypeName)
public static Schema.FieldType toFieldType(org.apache.calcite.rel.type.RelDataType calciteType)
public static Schema.Field toBeamSchemaField(org.apache.calcite.rel.type.RelDataTypeField calciteField)
public static org.apache.calcite.rel.type.RelDataType toCalciteRowType(Schema schema, org.apache.calcite.rel.type.RelDataTypeFactory dataTypeFactory)
RelDataType
so it can be used to create a table.