gravitino.api.rel.table_change.First

final class gravitino.api.rel.table_change.First

Bases: ColumnPosition

Column position FIRST.

It means the specified column should be the first column. Note that, the specified column may be a nested field, and then FIRST means this field should be the first one within the struct.

__init__() None

Methods

__init__()

after(column)

Returns the position after the given column.

default_pos()

Returns the default position of ColumnPosition instance.

first()

The first position of ColumnPosition instance.

static after(column: str) After

Returns the position after the given column.

Args:
column:

The name of the reference column to place the new column after.

Returns:
After:

The position after the given column.

static default_pos() Default

Returns the default position of ColumnPosition instance.

Returns:
Default:

The default position of ColumnPosition instance.

static first() First

The first position of ColumnPosition instance.

Returns:
First:

The first position of ColumnPosition instance.