Skip to content

ColumnType

The type of a column in a table.

Use the static factory methods to create instances of this class.

Stub code in ColumnType.sdsstub

class ColumnType {
    /**
     * Whether the column type is a floating point type.
     */
    @PythonName("is_float") attr isFloat: Boolean
    /**
     * Whether the column type is an integer type (signed or unsigned).
     */
    @PythonName("is_int") attr isInt: Boolean
    /**
     * Whether the column type is a numeric type.
     */
    @PythonName("is_numeric") attr isNumeric: Boolean
    /**
     * Whether the column type is a signed integer type.
     */
    @PythonName("is_signed_int") attr isSignedInt: Boolean
    /**
     * Whether the column type is a temporal type.
     */
    @PythonName("is_temporal") attr isTemporal: Boolean
    /**
     * Whether the column type is an unsigned integer type.
     */
    @PythonName("is_unsigned_int") attr isUnsignedInt: Boolean

    /**
     * Create a `float32` column type (32-bit floating point number).
     */
    @Pure
    static fun float32() -> result1: ColumnType

    /**
     * Create a `float64` column type (64-bit floating point number).
     */
    @Pure
    static fun float64() -> result1: ColumnType

    /**
     * Create an `int8` column type (8-bit signed integer).
     */
    @Pure
    static fun int8() -> result1: ColumnType

    /**
     * Create an `int16` column type (16-bit signed integer).
     */
    @Pure
    static fun int16() -> result1: ColumnType

    /**
     * Create an `int32` column type (32-bit signed integer).
     */
    @Pure
    static fun int32() -> result1: ColumnType

    /**
     * Create an `int64` column type (64-bit signed integer).
     */
    @Pure
    static fun int64() -> result1: ColumnType

    /**
     * Create a `uint8` column type (8-bit unsigned integer).
     */
    @Pure
    static fun uint8() -> result1: ColumnType

    /**
     * Create a `uint16` column type (16-bit unsigned integer).
     */
    @Pure
    static fun uint16() -> result1: ColumnType

    /**
     * Create a `uint32` column type (32-bit unsigned integer).
     */
    @Pure
    static fun uint32() -> result1: ColumnType

    /**
     * Create a `uint64` column type (64-bit unsigned integer).
     */
    @Pure
    static fun uint64() -> result1: ColumnType

    /**
     * Create a `date` column type.
     */
    @Pure
    static fun date() -> result1: ColumnType

    /**
     * Create a `datetime` column type.
     *
     * @param timeZone The time zone. If None, values are assumed to be in local time. This is different from setting the time zone
     * to `"UTC"`. Any TZ identifier defined in the
     * [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) is valid.
     */
    @Pure
    static fun datetime(
        @PythonName("time_zone") timeZone: String? = null
    ) -> result1: ColumnType

    /**
     * Create a `duration` column type.
     */
    @Pure
    static fun duration() -> result1: ColumnType

    /**
     * Create a `time` column type.
     */
    @Pure
    static fun time() -> result1: ColumnType

    /**
     * Create a `string` column type.
     */
    @Pure
    static fun string() -> result1: ColumnType

    /**
     * Create a `binary` column type.
     */
    @Pure
    static fun binary() -> result1: ColumnType

    /**
     * Create a `boolean` column type.
     */
    @Pure
    static fun boolean() -> result1: ColumnType

    /**
     * Create a `null` column type.
     */
    @Pure
    static fun ^null() -> result1: ColumnType
}

isFloat

Whether the column type is a floating point type.

Type: Boolean

isInt

Whether the column type is an integer type (signed or unsigned).

Type: Boolean

isNumeric

Whether the column type is a numeric type.

Type: Boolean

isSignedInt

Whether the column type is a signed integer type.

Type: Boolean

isTemporal

Whether the column type is a temporal type.

Type: Boolean

isUnsignedInt

Whether the column type is an unsigned integer type.

Type: Boolean

binary

Create a binary column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun binary() -> result1: ColumnType

boolean

Create a boolean column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun boolean() -> result1: ColumnType

date

Create a date column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun date() -> result1: ColumnType

datetime

Create a datetime column type.

Parameters:

Name Type Description Default
timeZone String? The time zone. If None, values are assumed to be in local time. This is different from setting the time zone to "UTC". Any TZ identifier defined in the tz database is valid. null

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun datetime(
    @PythonName("time_zone") timeZone: String? = null
) -> result1: ColumnType

duration

Create a duration column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun duration() -> result1: ColumnType

float32

Create a float32 column type (32-bit floating point number).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun float32() -> result1: ColumnType

float64

Create a float64 column type (64-bit floating point number).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun float64() -> result1: ColumnType

int16

Create an int16 column type (16-bit signed integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun int16() -> result1: ColumnType

int32

Create an int32 column type (32-bit signed integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun int32() -> result1: ColumnType

int64

Create an int64 column type (64-bit signed integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun int64() -> result1: ColumnType

int8

Create an int8 column type (8-bit signed integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun int8() -> result1: ColumnType

null

Create a null column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun ^null() -> result1: ColumnType

string

Create a string column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun string() -> result1: ColumnType

time

Create a time column type.

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun time() -> result1: ColumnType

uint16

Create a uint16 column type (16-bit unsigned integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun uint16() -> result1: ColumnType

uint32

Create a uint32 column type (32-bit unsigned integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun uint32() -> result1: ColumnType

uint64

Create a uint64 column type (64-bit unsigned integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun uint64() -> result1: ColumnType

uint8

Create a uint8 column type (8-bit unsigned integer).

Results:

Name Type Description
result1 ColumnType -
Stub code in ColumnType.sdsstub

@Pure
static fun uint8() -> result1: ColumnType