Class ColumnDefinition

java.lang.Object
org.apache.ignite.catalog.definitions.ColumnDefinition

public class ColumnDefinition extends Object
Definition of the column. The type of the column is defined either with the ColumnType or with the string representing the type.
  • Method Details

    • column

      public static ColumnDefinition column(String name, ColumnType<?> type)
      Creates a column definition with the provided type.
      Parameters:
      name - Column name.
      type - Type of the column.
      Returns:
      Constructed column definition.
    • column

      public static ColumnDefinition column(String name, String definition)
      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

      public String name()
      Returns column name.
      Returns:
      Column name.
    • type

      @Nullable public @Nullable ColumnType<?> type()
      Returns type of the column.
      Returns:
      Type of the column if present.
    • definition

      @Nullable public @Nullable String definition()
      Returns string definition of the column type.
      Returns:
      String definition of the column type.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object