@InterfaceAudience.Public @InterfaceStability.Stable public class ColumnType extends Object
Constructor and Description |
---|
ColumnType() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areColTypesCompatible(String from,
String to) |
static String |
getListType(String t) |
static String |
getTypeName(String typeString)
Given a type string return the type name.
|
static String |
typeToThriftType(String type)
Convert type to ThriftType.
|
public static final String VOID_TYPE_NAME
public static final String BOOLEAN_TYPE_NAME
public static final String TINYINT_TYPE_NAME
public static final String SMALLINT_TYPE_NAME
public static final String INT_TYPE_NAME
public static final String BIGINT_TYPE_NAME
public static final String FLOAT_TYPE_NAME
public static final String DOUBLE_TYPE_NAME
public static final String STRING_TYPE_NAME
public static final String CHAR_TYPE_NAME
public static final String VARCHAR_TYPE_NAME
public static final String DATE_TYPE_NAME
public static final String DATETIME_TYPE_NAME
public static final String TIMESTAMP_TYPE_NAME
public static final String DECIMAL_TYPE_NAME
public static final String BINARY_TYPE_NAME
public static final String INTERVAL_YEAR_MONTH_TYPE_NAME
public static final String INTERVAL_DAY_TIME_TYPE_NAME
public static final String TIMESTAMPTZ_TYPE_NAME
public static final String LIST_TYPE_NAME
public static final String MAP_TYPE_NAME
public static final String STRUCT_TYPE_NAME
public static final String UNION_TYPE_NAME
public static final String LIST_COLUMNS
public static final String LIST_COLUMN_TYPES
public static final String COLUMN_NAME_DELIMITER
public static final String SERIALIZATION_FORMAT
public static final String SERIALIZATION_LIB
public static final String SERIALIZATION_DDL
public static final char COLUMN_COMMENTS_DELIMITER
public static String getTypeName(String typeString)
typeString
- Type stringpublic static String typeToThriftType(String type)
Copyright © 2019 The Apache Software Foundation. All rights reserved.