Package ru.yandex.clickhouse.response
Class ClickHouseColumnInfo
- java.lang.Object
-
- ru.yandex.clickhouse.response.ClickHouseColumnInfo
-
public final class ClickHouseColumnInfo extends Object
This class represents a column defined in database.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClickHouseDataTypegetArrayBaseType()intgetArrayLevel()StringgetCleanTypeName()Get the type name returned from the database, without modifiers, i.e.ClickHouseDataTypegetClickHouseDataType()StringgetColumnName()ClickHouseDataTypegetEffectiveClickHouseDataType()StringgetFunctionName()ClickHouseColumnInfogetKeyInfo()StringgetOriginalTypeName()intgetPrecision()intgetScale()TimeZonegetTimeZone()ClickHouseColumnInfogetValueInfo()booleanisArray()booleanisNullable()static ClickHouseColumnInfoparse(String typeInfo, String columnName)Deprecated.static ClickHouseColumnInfoparse(String typeInfo, String columnName, TimeZone serverTimeZone)Parse given type string.
-
-
-
Method Detail
-
parse
@Deprecated public static ClickHouseColumnInfo parse(String typeInfo, String columnName)
Deprecated.
-
parse
public static ClickHouseColumnInfo parse(String typeInfo, String columnName, TimeZone serverTimeZone)
Parse given type string.- Parameters:
typeInfo- type defined in databasecolumnName- column nameserverTimeZone- server time zone- Returns:
- parsed type
-
getClickHouseDataType
public ClickHouseDataType getClickHouseDataType()
-
getOriginalTypeName
public String getOriginalTypeName()
-
getCleanTypeName
public String getCleanTypeName()
Get the type name returned from the database, without modifiers, i.e. Nullable or LowCardinality.- Returns:
- the type name returned from the database
-
getColumnName
public String getColumnName()
-
isNullable
public boolean isNullable()
-
getArrayLevel
public int getArrayLevel()
-
isArray
public boolean isArray()
-
getArrayBaseType
public ClickHouseDataType getArrayBaseType()
-
getEffectiveClickHouseDataType
public ClickHouseDataType getEffectiveClickHouseDataType()
-
getTimeZone
public TimeZone getTimeZone()
-
getPrecision
public int getPrecision()
-
getScale
public int getScale()
-
getKeyInfo
public ClickHouseColumnInfo getKeyInfo()
-
getValueInfo
public ClickHouseColumnInfo getValueInfo()
-
getFunctionName
public String getFunctionName()
-
-