类 Column

    • 字段详细资料

      • format

        protected String format
      • formatLen

        protected int formatLen
    • 构造器详细资料

      • Column

        public Column()
        Constructor
      • Column

        public Column​(String name)
        Constructor
        参数:
        name - Name
      • Column

        public Column​(String name,
                      DataType dataType)
        Constructor
        参数:
        name - Name
        dataType - Data type
    • 方法详细资料

      • getName

        public String getName()
        Get name
        返回:
        Name
      • setName

        public void setName​(String value)
        Set name
        参数:
        value - Name
      • getDataType

        public DataType getDataType()
        Get data type
        返回:
        Data type
      • setDataType

        public void setDataType​(DataType value)
        Set data type
        参数:
        value - Data type
      • getFormat

        public String getFormat()
        Get format
        返回:
        Format
      • getNameFormat

        public String getNameFormat()
        Get Name format
        返回:
      • setFormat

        public void setFormat​(String value)
        Set format
        参数:
        value - Format
      • getFormatLen

        public int getFormatLen()
        Get format length
        返回:
        Format length
      • setFormatLen

        public void setFormatLen​(int value)
        Set format length
        参数:
        value - Format length
      • factory

        public static Column factory​(String name,
                                     DataType dtype)
        Factory method
        参数:
        name - Name
        dtype - Data type
        返回:
        Column
      • factory

        public static Column factory​(String name,
                                     Array array)
        Factory method
        参数:
        name - Name
        array - Data array
        返回:
        Column
      • updateFormat

        public void updateFormat()
        Update format
      • updateFormat

        public void updateFormat​(Array data)
        Update format
        参数:
        data - Data array
      • convertTo

        public Object convertTo​(Object value)
        Convert input data to current data type
        参数:
        value - Object value
        返回:
        Result object
      • convertStringTo

        public Object convertStringTo​(String s)
        Convert input data to current data type
        参数:
        s - Input string
        返回:
        Result object
      • toString

        public String toString​(Object o)
        Convert an object (same datatype with this column) to string
        参数:
        o -
        返回:
        String