Package org.apache.druid.catalog.model
Class Columns
- java.lang.Object
-
- org.apache.druid.catalog.model.Columns
-
public class Columns extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOUBLEstatic Map<org.apache.druid.segment.column.ColumnType,String>DRUID_TO_SQL_TYPESstatic StringFLOATstatic StringLONGstatic StringSQL_BIGINTstatic StringSQL_BIGINT_ARRAYstatic StringSQL_DOUBLEstatic StringSQL_DOUBLE_ARRAYstatic StringSQL_FLOATstatic StringSQL_FLOAT_ARRAYstatic StringSQL_TIMESTAMPstatic Map<String,org.apache.druid.segment.column.ColumnType>SQL_TO_DRUID_TYPESstatic StringSQL_VARCHARstatic StringSQL_VARCHAR_ARRAYstatic StringSTRINGstatic StringTIME_COLUMN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.druid.segment.column.RowSignatureconvertSignature(List<ColumnSpec> columns)static org.apache.druid.segment.column.ColumnTypedruidType(ColumnSpec spec)static booleanisTimeColumn(String name)static StringsqlType(ColumnSpec spec)static StringsqlType(org.apache.druid.segment.column.ColumnType druidType)
-
-
-
Field Detail
-
TIME_COLUMN
public static final String TIME_COLUMN
- See Also:
- Constant Field Values
-
STRING
public static final String STRING
-
LONG
public static final String LONG
-
FLOAT
public static final String FLOAT
-
DOUBLE
public static final String DOUBLE
-
SQL_VARCHAR
public static final String SQL_VARCHAR
- See Also:
- Constant Field Values
-
SQL_BIGINT
public static final String SQL_BIGINT
- See Also:
- Constant Field Values
-
SQL_FLOAT
public static final String SQL_FLOAT
- See Also:
- Constant Field Values
-
SQL_DOUBLE
public static final String SQL_DOUBLE
- See Also:
- Constant Field Values
-
SQL_VARCHAR_ARRAY
public static final String SQL_VARCHAR_ARRAY
- See Also:
- Constant Field Values
-
SQL_BIGINT_ARRAY
public static final String SQL_BIGINT_ARRAY
- See Also:
- Constant Field Values
-
SQL_FLOAT_ARRAY
public static final String SQL_FLOAT_ARRAY
- See Also:
- Constant Field Values
-
SQL_DOUBLE_ARRAY
public static final String SQL_DOUBLE_ARRAY
- See Also:
- Constant Field Values
-
SQL_TIMESTAMP
public static final String SQL_TIMESTAMP
- See Also:
- Constant Field Values
-
SQL_TO_DRUID_TYPES
public static final Map<String,org.apache.druid.segment.column.ColumnType> SQL_TO_DRUID_TYPES
-
-
Method Detail
-
druidType
public static org.apache.druid.segment.column.ColumnType druidType(ColumnSpec spec)
-
sqlType
public static String sqlType(ColumnSpec spec)
-
isTimeColumn
public static boolean isTimeColumn(String name)
-
convertSignature
public static org.apache.druid.segment.column.RowSignature convertSignature(List<ColumnSpec> columns)
-
sqlType
public static String sqlType(org.apache.druid.segment.column.ColumnType druidType)
-
-