Class CacheDefinition

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

public class CacheDefinition extends Object
Definition of the CREATE CACHE statement.
  • Method Details

    • builder

      public static CacheDefinition.Builder builder(String cacheName)
      Creates a builder for the cache with the specified name.
      Parameters:
      cacheName - Cache name.
      Returns:
      Builder.
    • cacheName

      public String cacheName()
      Returns cache name.
      Returns:
      Cache name.
    • schemaName

      @Nullable public @Nullable String schemaName()
      Returns schema name.
      Returns:
      Schema name or null if not specified.
    • ifNotExists

      public boolean ifNotExists()
      Returns not exists flag.
      Returns:
      true if IF NOT EXISTS clause should be added to the statement.
    • columns

      @Nullable public @Nullable List<ColumnDefinition> columns()
      Returns definitions of the columns.
      Returns:
      List of column definitions or null if columns are specified using other methods.
    • primaryKeyType

      @Nullable public @Nullable IndexType primaryKeyType()
      Returns primary key type.
      Returns:
      Primary key type or null if default should be used.
    • primaryKeyColumns

      @Nullable public @Nullable List<ColumnSorted> primaryKeyColumns()
      Returns a list of columns used in the primary key.
      Returns:
      List of columns used in the primary key or null if the primary key is not specified.
    • zoneName

      @Nullable public @Nullable String zoneName()
      Returns primary zone name.
      Returns:
      Zone name to use in the ZONE option or null if not specified.
    • colocationColumns

      public List<String> colocationColumns()
      Returns a list of colocation column names.
      Returns:
      A list of colocation column names, or null if not specified.
    • indexes

      @Nullable public @Nullable List<IndexDefinition> indexes()
      Returns a list of indexes to create on this cache.
      Returns:
      a list of index definitions to create on this cache or null if none should be created.
    • toBuilder

      public CacheDefinition.Builder toBuilder()
      Returns new builder using this definition.
      Returns:
      New builder.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object