public class TypeConverter extends Object
Constructor and Description |
---|
TypeConverter() |
Modifier and Type | Method and Description |
---|---|
static org.apache.calcite.rel.type.RelDataType |
convert(ListTypeInfo lstType,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static org.apache.calcite.rel.type.RelDataType |
convert(MapTypeInfo mapType,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static org.apache.calcite.rel.type.RelDataType |
convert(PrimitiveTypeInfo type,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static TypeInfo |
convert(org.apache.calcite.rel.type.RelDataType rType) |
static org.apache.calcite.rel.type.RelDataType |
convert(StructTypeInfo structType,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static org.apache.calcite.rel.type.RelDataType |
convert(TypeInfo type,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static org.apache.calcite.rel.type.RelDataType |
convert(UnionTypeInfo unionType,
org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) |
static TypeInfo |
convertListType(org.apache.calcite.rel.type.RelDataType rType) |
static TypeInfo |
convertMapType(org.apache.calcite.rel.type.RelDataType rType) |
static TypeInfo |
convertPrimitiveType(org.apache.calcite.rel.type.RelDataType rType) |
static TypeInfo |
convertStructType(org.apache.calcite.rel.type.RelDataType rType) |
static org.apache.calcite.rel.type.RelDataType |
getType(org.apache.calcite.plan.RelOptCluster cluster,
List<ColumnInfo> cInfoLst)
Convert Hive Types To Calcite Types
|
static org.apache.calcite.rel.type.RelDataType |
getType(org.apache.calcite.plan.RelOptCluster cluster,
RowResolver rr,
List<String> neededCols) |
static org.apache.hadoop.hive.ql.optimizer.calcite.translator.SqlFunctionConverter.HiveToken |
hiveToken(org.apache.calcite.rel.type.RelDataType calciteType)
Convert Calcite Types To Hive Types
|
public static org.apache.calcite.rel.type.RelDataType getType(org.apache.calcite.plan.RelOptCluster cluster, List<ColumnInfo> cInfoLst) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType getType(org.apache.calcite.plan.RelOptCluster cluster, RowResolver rr, List<String> neededCols) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType convert(TypeInfo type, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType convert(PrimitiveTypeInfo type, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory)
public static org.apache.calcite.rel.type.RelDataType convert(ListTypeInfo lstType, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType convert(MapTypeInfo mapType, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType convert(StructTypeInfo structType, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) throws CalciteSemanticException
CalciteSemanticException
public static org.apache.calcite.rel.type.RelDataType convert(UnionTypeInfo unionType, org.apache.calcite.rel.type.RelDataTypeFactory dtFactory) throws CalciteSemanticException
CalciteSemanticException
public static TypeInfo convert(org.apache.calcite.rel.type.RelDataType rType)
public static TypeInfo convertStructType(org.apache.calcite.rel.type.RelDataType rType)
public static TypeInfo convertMapType(org.apache.calcite.rel.type.RelDataType rType)
public static TypeInfo convertListType(org.apache.calcite.rel.type.RelDataType rType)
public static TypeInfo convertPrimitiveType(org.apache.calcite.rel.type.RelDataType rType)
public static org.apache.hadoop.hive.ql.optimizer.calcite.translator.SqlFunctionConverter.HiveToken hiveToken(org.apache.calcite.rel.type.RelDataType calciteType)
Copyright © 2016 The Apache Software Foundation. All rights reserved.