Class ColumnDefinition
java.lang.Object
org.apache.ignite.catalog.definitions.ColumnDefinition
Definition of the column. The type of the column is defined either with the
ColumnType
or with the string representing the type.-
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnDefinition
Creates a column definition with the provided type definition.static ColumnDefinition
column
(String name, ColumnType<?> type) Creates a column definition with the provided type.@Nullable String
Returns string definition of the column type.boolean
int
hashCode()
name()
Returns column name.@Nullable ColumnType<?>
type()
Returns type of the column.
-
Method Details
-
column
Creates a column definition with the provided type.- Parameters:
name
- Column name.type
- Type of the column.- Returns:
- Constructed column definition.
-
column
Creates a column definition with the provided type definition.- Parameters:
name
- Column name.definition
- Definition of the type of the column.- Returns:
- Constructed column definition.
-
name
Returns column name.- Returns:
- Column name.
-
type
Returns type of the column.- Returns:
- Type of the column if present.
-
definition
Returns string definition of the column type.- Returns:
- String definition of the column type.
-
equals
-
hashCode
public int hashCode()
-