| Package | Description |
|---|---|
| org.springframework.cassandra.core |
CQL core support.
|
| org.springframework.cassandra.core.cql |
CQL support.
|
| org.springframework.cassandra.core.keyspace |
Keyspace object action specifications such as
CREATE TABLE, DROP INDEX. |
| Modifier and Type | Method and Description |
|---|---|
long |
CqlTemplate.count(CqlIdentifier tableName) |
long |
CqlOperations.count(CqlIdentifier tableName)
Counts all rows for given table
|
void |
CqlTemplate.truncate(CqlIdentifier tableName) |
void |
CqlOperations.truncate(CqlIdentifier tableName)
Delete all rows in the table
|
| Modifier and Type | Method and Description |
|---|---|
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier)
Factory method for
CqlIdentifier. |
static CqlIdentifier |
CqlIdentifier.cqlId(CharSequence identifier,
boolean forceQuote)
Factory method for
CqlIdentifier. |
static CqlIdentifier |
CqlIdentifier.quotedCqlId(CharSequence identifier)
Factory method for a force-quoted
CqlIdentifier. |
| Modifier and Type | Method and Description |
|---|---|
int |
CqlIdentifier.compareTo(CqlIdentifier identifier)
Unquoted identifiers sort before quoted ones.
|
| Modifier and Type | Field and Description |
|---|---|
protected CqlIdentifier |
ColumnChangeSpecification.name |
| Modifier and Type | Method and Description |
|---|---|
CqlIdentifier |
CreateIndexSpecification.getColumnName() |
CqlIdentifier |
IndexDescriptor.getColumnName() |
CqlIdentifier |
TableNameSpecification.getName() |
CqlIdentifier |
TableDescriptor.getName()
Returns the name of the table.
|
CqlIdentifier |
ColumnSpecification.getName() |
CqlIdentifier |
IndexDescriptor.getName()
Returns the name of the index.
|
CqlIdentifier |
UserTypeNameSpecification.getName() |
CqlIdentifier |
ColumnChangeSpecification.getName() |
CqlIdentifier |
IndexNameSpecification.getName() |
CqlIdentifier |
CreateIndexSpecification.getTableName() |
CqlIdentifier |
IndexDescriptor.getTableName()
Returns the table name for the index
|
CqlIdentifier |
RenameColumnSpecification.getTargetName() |
| Modifier and Type | Method and Description |
|---|---|
AlterUserTypeSpecification |
AlterUserTypeSpecification.add(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
AlterUserTypeSpecification |
AlterUserTypeSpecification.alter(CqlIdentifier field,
com.datastax.driver.core.DataType type)
Adds an ALTER to the list of field changes.
|
static AlterTableSpecification |
AlterTableSpecification.alterTable(CqlIdentifier tableName)
Entry point into the
AlterTableSpecification's fluent API to alter a table. |
static AlterUserTypeSpecification |
AlterUserTypeSpecification.alterType(CqlIdentifier typeName)
Entry point into the
AlterUserTypeSpecification's fluent API to alter a type. |
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
T |
TableSpecification.clusteredKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type,
Ordering ordering) |
T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
protected T |
TableSpecification.column(CqlIdentifier name,
com.datastax.driver.core.DataType type,
PrimaryKeyType keyType,
Ordering ordering) |
CreateIndexSpecification |
CreateIndexSpecification.columnName(CqlIdentifier columnName) |
static CreateIndexSpecification |
CreateIndexSpecification.createIndex(CqlIdentifier name)
Entry point into the
CreateIndexSpecification's fluent API to create a index. |
static CreateTableSpecification |
CreateTableSpecification.createTable(CqlIdentifier name)
Entry point into the
CreateTableSpecification's fluent API to create a table. |
static CreateUserTypeSpecification |
CreateUserTypeSpecification.createType(CqlIdentifier name)
Entry point into the
CreateUserTypeSpecification's fluent API to create a type. |
static DropColumnSpecification |
DropColumnSpecification.dropColumn(CqlIdentifier name) |
static DropTableSpecification |
DropTableSpecification.dropTable(CqlIdentifier tableName)
Entry point into the
DropTableSpecification's fluent API to drop a table. |
static DropUserTypeSpecification |
DropUserTypeSpecification.dropType(CqlIdentifier typeName)
Entry point into the
DropUserTypeSpecification's fluent API to drop a type. |
T |
UserTypeSpecification.field(CqlIdentifier name,
com.datastax.driver.core.DataType type)
Adds an ADD to the list of field changes.
|
T |
TableNameSpecification.name(CqlIdentifier name) |
ColumnSpecification |
ColumnSpecification.name(CqlIdentifier name) |
T |
UserTypeNameSpecification.name(CqlIdentifier name)
Sets the type name.
|
FieldSpecification |
FieldSpecification.name(CqlIdentifier name)
Sets the field name.
|
CreateTableSpecification |
CreateTableSpecification.name(CqlIdentifier name) |
T |
TableOptionsSpecification.name(CqlIdentifier name) |
T |
IndexNameSpecification.name(CqlIdentifier name) |
T |
TableSpecification.partitionKeyColumn(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
AlterUserTypeSpecification |
AlterUserTypeSpecification.rename(CqlIdentifier from,
CqlIdentifier to)
Adds an RENAME to the list of field changes.
|
protected void |
ColumnChangeSpecification.setName(CqlIdentifier name)
Sets the column name.
|
CreateIndexSpecification |
CreateIndexSpecification.tableName(CqlIdentifier tableName) |
| Constructor and Description |
|---|
AddColumnSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
AlterColumnSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type) |
ColumnChangeSpecification(CqlIdentifier name)
Creates a new
ColumnChangeSpecification. |
ColumnTypeChangeSpecification(CqlIdentifier name,
com.datastax.driver.core.DataType type)
|
DropColumnSpecification(CqlIdentifier name) |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.