public class CacheDefinition
extends Object
Definition of the CREATE CACHE
statement.
-
Nested Class Summary
Nested Classes
static class
Builder for the cache definition.
-
Method Summary
Creates a builder for the cache with the specified name.
Returns a list of colocation column names.
Returns definitions of the columns.
boolean
int
boolean
Returns a list of indexes to create on this cache.
Returns a list of columns used in the primary key.
Returns primary key type.
Returns new builder using this definition.
Returns primary zone name.
-
Method Details
-
builder
Creates a builder for the cache with the specified name.
- Parameters:
cacheName
- Cache name.
- Returns:
- Builder.
-
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
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
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
Returns a list of colocation column names.
- Returns:
- A list of colocation column names, or
null
if not specified.
-
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
Returns new builder using this definition.
- Returns:
- New builder.
-
-