Class ClickHouseColumnInfo


  • public final class ClickHouseColumnInfo
    extends Object
    This class represents a column defined in database.
    • Method Detail

      • parse

        public static ClickHouseColumnInfo parse​(String typeInfo,
                                                 String columnName,
                                                 TimeZone serverTimeZone)
        Parse given type string.
        Parameters:
        typeInfo - type defined in database
        columnName - column name
        serverTimeZone - server time zone
        Returns:
        parsed type
      • 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()
      • getEffectiveClickHouseDataType

        public ClickHouseDataType getEffectiveClickHouseDataType()
      • getTimeZone

        public TimeZone getTimeZone()
      • getPrecision

        public int getPrecision()
      • getScale

        public int getScale()
      • getFunctionName

        public String getFunctionName()