Enclosing class:
CacheDefinition
public static class CacheDefinition.Builder
extends Object
Builder for the cache definition.
Method Summary
All Methods Instance Methods Concrete Methods
Builds the cache definition.
Sets definitions of the columns.
Sets definitions of the columns.
Adds an index on this cache using specified columns with sort order and index type.
Adds an index on this cache using specified columns with sort order and index type.
Adds an index on this cache using specified columns and default index type and sort order.
Sets primary key columns using default index type.
Sets primary key columns.
Sets primary key columns.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
schema
Sets schema name.
Parameters:
schemaName
- Schema name.
Returns:
This builder instance.
ifNotExists
Sets not exists flag.
Returns:
This builder instance.
columns
Sets definitions of the columns.
Parameters:
columns
- An array of column definitions.
Returns:
This builder instance.
columns
Sets definitions of the columns.
Parameters:
columns
- A list of column definitions.
Returns:
This builder instance.
colocateBy
Sets colocation columns.
Parameters:
colocationColumns
- An array of colocation column names.
Returns:
This builder instance.
colocateBy
Sets colocation columns.
Parameters:
colocationColumns
- An array of colocation column names.
Returns:
This builder instance.
zone
Sets primary zone name.
Parameters:
zoneName
- Primary zone name.
Returns:
This builder instance.
primaryKey
Sets primary key columns using default index type.
Parameters:
columnNames
- Column names to use in the primary key.
Returns:
This builder instance.
primaryKey
Sets primary key columns.
Parameters:
type
- Type of the index.
columns
- An array of columns to use in the primary key.
Returns:
This builder instance.
primaryKey
Sets primary key columns.
Parameters:
type
- Type of the index.
columns
- A list of columns to use in the primary key.
Returns:
This builder instance.
index
Adds an index on this cache using specified columns and default index type and sort order. The name of the index will be
autogenerated from the column names.
Parameters:
columnNames
- An array of column names to use to create index.
Returns:
This builder instance.
index
Adds an index on this cache using specified columns with sort order and index type.
Parameters:
indexName
- Name of the index or null
to autogenerate the name.
type
- Index type.
columns
- An array of columns to use to create index.
Returns:
This builder instance.
index
Adds an index on this cache using specified columns with sort order and index type.
Parameters:
indexName
- Name of the index or null
to autogenerate the name.
type
- Index type.
columns
- A list of columns to use to create index.
Returns:
This builder instance.
build
Builds the cache definition.
Returns:
Cache definition.