Class ColumnDefinition

    • Method Detail

      • dataType

        public final ColumnDataType dataType()

        Data type of a column.

        • STRING – A String data type.

          CHAR – A char data type.

          INTEGER – An integer data type.

          TINYINT – A tinyint data type.

          SMALLINT – A smallint data type.

          BIGINT – A bigint data type.

          FLOAT – A float data type.

          DOUBLE – A double data type.

          DATE – A date data type.

          DATETIME – A datetime data type.

          BOOLEAN – A boolean data type.

          BINARY – A binary data type.

        If the service returns an enum value that is not available in the current SDK version, dataType will return ColumnDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from dataTypeAsString().

        Returns:
        Data type of a column.

        • STRING – A String data type.

          CHAR – A char data type.

          INTEGER – An integer data type.

          TINYINT – A tinyint data type.

          SMALLINT – A smallint data type.

          BIGINT – A bigint data type.

          FLOAT – A float data type.

          DOUBLE – A double data type.

          DATE – A date data type.

          DATETIME – A datetime data type.

          BOOLEAN – A boolean data type.

          BINARY – A binary data type.

        See Also:
        ColumnDataType
      • dataTypeAsString

        public final String dataTypeAsString()

        Data type of a column.

        • STRING – A String data type.

          CHAR – A char data type.

          INTEGER – An integer data type.

          TINYINT – A tinyint data type.

          SMALLINT – A smallint data type.

          BIGINT – A bigint data type.

          FLOAT – A float data type.

          DOUBLE – A double data type.

          DATE – A date data type.

          DATETIME – A datetime data type.

          BOOLEAN – A boolean data type.

          BINARY – A binary data type.

        If the service returns an enum value that is not available in the current SDK version, dataType will return ColumnDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from dataTypeAsString().

        Returns:
        Data type of a column.

        • STRING – A String data type.

          CHAR – A char data type.

          INTEGER – An integer data type.

          TINYINT – A tinyint data type.

          SMALLINT – A smallint data type.

          BIGINT – A bigint data type.

          FLOAT – A float data type.

          DOUBLE – A double data type.

          DATE – A date data type.

          DATETIME – A datetime data type.

          BOOLEAN – A boolean data type.

          BINARY – A binary data type.

        See Also:
        ColumnDataType
      • columnName

        public final String columnName()

        The name of a column.

        Returns:
        The name of a column.
      • columnDescription

        public final String columnDescription()

        Description for a column.

        Returns:
        Description for a column.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)