Module spring.data.cassandra
Class DropIndexSpecification
java.lang.Object
org.springframework.data.cassandra.core.cql.keyspace.IndexNameSpecification<DropIndexSpecification>
org.springframework.data.cassandra.core.cql.keyspace.DropIndexSpecification
- All Implemented Interfaces:
CqlSpecification
public class DropIndexSpecification
extends IndexNameSpecification<DropIndexSpecification>
implements CqlSpecification
Value object representing a
DROP INDEX specification.- Author:
- Matthew T. Adams, David Webb, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic DropIndexSpecificationdropIndex(com.datastax.oss.driver.api.core.CqlIdentifier indexName) Create a newDropIndexSpecificationfor the givenindexName.static DropIndexSpecificationdropIndex(com.datastax.oss.driver.api.core.CqlIdentifier keyspace, com.datastax.oss.driver.api.core.CqlIdentifier indexName) Create a newDropIndexSpecificationfor the givenindexName.static DropIndexSpecificationCreate a newDropIndexSpecificationfor the givenindexName.Methods inherited from class org.springframework.data.cassandra.core.cql.keyspace.IndexNameSpecification
getKeyspace, getName
-
Method Details
-
dropIndex
Create a newDropIndexSpecificationfor the givenindexName.- Parameters:
indexName- must not be null or empty.- Returns:
- a new
DropIndexSpecification.
-
dropIndex
public static DropIndexSpecification dropIndex(com.datastax.oss.driver.api.core.CqlIdentifier indexName) Create a newDropIndexSpecificationfor the givenindexName.- Parameters:
indexName- must not be null.- Returns:
- a new
DropIndexSpecification.
-
dropIndex
public static DropIndexSpecification dropIndex(@Nullable com.datastax.oss.driver.api.core.CqlIdentifier keyspace, com.datastax.oss.driver.api.core.CqlIdentifier indexName) Create a newDropIndexSpecificationfor the givenindexName. Uses the default keyspace ifkeyspaceis null; otherwise, of thekeyspaceis not {@link null}, then the index name is prefixed withkeyspace.- Parameters:
keyspace- can be null.indexName- must not be null.- Returns:
- a new
DropIndexSpecification.
-