public class SchemaBuilder extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SchemaBuilder.RowsPerPartition
Specifies the rows_per_partition configuration for table caching options. 
 | 
| Constructor and Description | 
|---|
SchemaBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
static AlterKeyspaceStart | 
alterKeyspace(CqlIdentifier keyspaceName)
Starts an ALTER KEYSPACE query. 
 | 
static AlterKeyspaceStart | 
alterKeyspace(String keyspaceName)
Shortcut for  
alterKeyspace(CqlIdentifier.fromCql(keyspaceName). | 
static AlterMaterializedViewStart | 
alterMaterializedView(CqlIdentifier viewName)
Starts an ALTER MATERIALIZED VIEW query with the given view name. 
 | 
static AlterMaterializedViewStart | 
alterMaterializedView(CqlIdentifier keyspace,
                     CqlIdentifier viewName)
Starts an ALTER MATERIALIZED VIEW query with the given view name for the given keyspace name. 
 | 
static AlterMaterializedViewStart | 
alterMaterializedView(String viewName)
 | 
static AlterMaterializedViewStart | 
alterMaterializedView(String keyspace,
                     String viewName)
 | 
static AlterTableStart | 
alterTable(CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name. 
 | 
static AlterTableStart | 
alterTable(CqlIdentifier keyspace,
          CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name for the given keyspace name. 
 | 
static AlterTableStart | 
alterTable(String tableName)
Shortcut for  
alterTable(CqlIdentifier.fromCql(tableName) | 
static AlterTableStart | 
alterTable(String keyspace,
          String tableName)
 | 
static AlterTypeStart | 
alterType(CqlIdentifier typeName)
Starts an ALTER TYPE query with the given type name. 
 | 
static AlterTypeStart | 
alterType(CqlIdentifier keyspace,
         CqlIdentifier typeName)
Starts an ALTER TYPE query with the given type name for the given keyspace name. 
 | 
static AlterTypeStart | 
alterType(String typeName)
Shortcut for  
alterType(CqlIdentifier.fromCql(typeName) | 
static AlterTypeStart | 
alterType(String keyspace,
         String typeName)
 | 
static CreateAggregateStart | 
createAggregate(CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name. 
 | 
static CreateAggregateStart | 
createAggregate(CqlIdentifier keyspace,
               CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name. 
 | 
static CreateAggregateStart | 
createAggregate(String aggregateName)
 | 
static CreateAggregateStart | 
createAggregate(String keyspace,
               String aggregateName)
 | 
static CreateFunctionStart | 
createFunction(CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name. 
 | 
static CreateFunctionStart | 
createFunction(CqlIdentifier keyspace,
              CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name. 
 | 
static CreateFunctionStart | 
createFunction(String functionName)
 | 
static CreateFunctionStart | 
createFunction(String keyspace,
              String functionName)
 | 
static CreateIndexStart | 
createIndex()
Starts a CREATE INDEX query with no name. 
 | 
static CreateIndexStart | 
createIndex(CqlIdentifier indexName)
Starts a CREATE INDEX query with the given name. 
 | 
static CreateIndexStart | 
createIndex(String indexName)
Shortcut for  
createIndex(CqlIdentifier.fromCql(indexName). | 
static CreateKeyspaceStart | 
createKeyspace(CqlIdentifier keyspaceName)
Starts a CREATE KEYSPACE query. 
 | 
static CreateKeyspaceStart | 
createKeyspace(String keyspaceName)
Shortcut for  
createKeyspace(CqlIdentifier.fromCql(keyspaceName)) | 
static CreateMaterializedViewStart | 
createMaterializedView(CqlIdentifier viewName)
Starts a CREATE MATERIALIZED VIEW query with the given view name. 
 | 
static CreateMaterializedViewStart | 
createMaterializedView(CqlIdentifier keyspace,
                      CqlIdentifier viewName)
Starts a CREATE MATERIALIZED VIEW query with the given view name for the given keyspace name. 
 | 
static CreateMaterializedViewStart | 
createMaterializedView(String viewName)
 | 
static CreateMaterializedViewStart | 
createMaterializedView(String keyspace,
                      String viewName)
 | 
static CreateTableStart | 
createTable(CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name. 
 | 
static CreateTableStart | 
createTable(CqlIdentifier keyspace,
           CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name for the given keyspace name. 
 | 
static CreateTableStart | 
createTable(String tableName)
Shortcut for  
createTable(CqlIdentifier.fromCql(tableName) | 
static CreateTableStart | 
createTable(String keyspace,
           String tableName)
 | 
static CreateTypeStart | 
createType(CqlIdentifier typeName)
Starts a CREATE TYPE query with the given type name. 
 | 
static CreateTypeStart | 
createType(CqlIdentifier keyspace,
          CqlIdentifier typeName)
Starts a CREATE TYPE query with the given type name for the given keyspace name. 
 | 
static CreateTypeStart | 
createType(String typeName)
Shortcut for  
createType(CqlIdentifier.fromCql(typeName). | 
static CreateTypeStart | 
createType(String keyspace,
          String typeName)
 | 
static Drop | 
dropAggregate(CqlIdentifier aggregateName)
Starts an DROP AGGREGATE query. 
 | 
static Drop | 
dropAggregate(CqlIdentifier keyspace,
             CqlIdentifier aggregateName)
Starts an DROP AGGREGATE query for the given aggregate name for the given keyspace name. 
 | 
static Drop | 
dropAggregate(String aggregateName)
Shortcut for  
dropAggregate(CqlIdentifier.fromCql(aggregateName). | 
static Drop | 
dropAggregate(String keyspace,
             String aggregateName)
 | 
static Drop | 
dropFunction(CqlIdentifier functionName)
Starts a DROP FUNCTION query. 
 | 
static Drop | 
dropFunction(CqlIdentifier keyspace,
            CqlIdentifier functionName)
Starts a DROP FUNCTION query for the given function name for the given keyspace name. 
 | 
static Drop | 
dropFunction(String functionName)
Shortcut for  
dropFunction(CqlIdentifier.fromCql(functionName). | 
static Drop | 
dropFunction(String keyspace,
            String functionName)
 | 
static Drop | 
dropIndex(CqlIdentifier indexName)
Starts a DROP INDEX query. 
 | 
static Drop | 
dropIndex(CqlIdentifier keyspace,
         CqlIdentifier indexName)
Starts a DROP INDEX query for the given index for the given keyspace name. 
 | 
static Drop | 
dropIndex(String indexName)
Shortcut for  
dropIndex(CqlIdentifier.fromCql(indexName). | 
static Drop | 
dropIndex(String keyspace,
         String indexName)
Shortcut for  
dropIndex(CqlIdentifier, CqlIdentifier)
 dropIndex(CqlIdentifier.fromCql(keyspace),CqlIdentifier.fromCql(indexName)}. | 
static Drop | 
dropKeyspace(CqlIdentifier keyspaceName)
Starts a DROP KEYSPACE query. 
 | 
static Drop | 
dropKeyspace(String keyspaceName)
Shortcut for  
dropKeyspace(CqlIdentifier.fromCql(keyspaceName). | 
static Drop | 
dropMaterializedView(CqlIdentifier viewName)
Starts a DROP MATERIALIZED VIEW query. 
 | 
static Drop | 
dropMaterializedView(CqlIdentifier keyspace,
                    CqlIdentifier viewName)
Starts a DROP MATERIALIZED VIEW query for the given view name for the given keyspace name. 
 | 
static Drop | 
dropMaterializedView(String viewName)
Shortcut for  
dropMaterializedView(CqlIdentifier.fromCql(viewName). | 
static Drop | 
dropMaterializedView(String keyspace,
                    String viewName)
 | 
static Drop | 
dropTable(CqlIdentifier tableName)
Starts a DROP TABLE query. 
 | 
static Drop | 
dropTable(CqlIdentifier keyspace,
         CqlIdentifier tableName)
Starts a DROP TABLE query for the given table name for the given keyspace name. 
 | 
static Drop | 
dropTable(String tableName)
Shortcut for  
dropTable(CqlIdentifier.fromCql(tableName). | 
static Drop | 
dropTable(String keyspace,
         String tableName)
 | 
static Drop | 
dropType(CqlIdentifier typeName)
Starts a DROP TYPE query. 
 | 
static Drop | 
dropType(CqlIdentifier keyspace,
        CqlIdentifier typeName)
Starts a DROP TYPE query for the given view name for the given type name. 
 | 
static Drop | 
dropType(String typeName)
Shortcut for  
dropType(CqlIdentifier.fromCql(typeName). | 
static Drop | 
dropType(String keyspace,
        String typeName)
 | 
static LeveledCompactionStrategy | 
leveledCompactionStrategy()
Compaction options for Leveled Compaction Strategy (LCS). 
 | 
static SizeTieredCompactionStrategy | 
sizeTieredCompactionStrategy()
Compaction options for Size Tiered Compaction Strategy (STCS). 
 | 
static TimeWindowCompactionStrategy | 
timeWindowCompactionStrategy()
Compaction options for Time Window Compaction Strategy (TWCS). 
 | 
static UserDefinedType | 
udt(CqlIdentifier name,
   boolean frozen)
Shortcut for creating a user-defined  
DataType for use in UDT and Table builder
 definitions, such as CreateTable.withColumn(CqlIdentifier, DataType). | 
static UserDefinedType | 
udt(String name,
   boolean frozen)
Shortcut for  
udt(CqlIdentifier.fromCql(name),frozen). | 
@NonNull public static CreateKeyspaceStart createKeyspace(@NonNull CqlIdentifier keyspaceName)
@NonNull public static CreateKeyspaceStart createKeyspace(@NonNull String keyspaceName)
createKeyspace(CqlIdentifier.fromCql(keyspaceName))@NonNull public static AlterKeyspaceStart alterKeyspace(@NonNull CqlIdentifier keyspaceName)
@NonNull public static AlterKeyspaceStart alterKeyspace(@NonNull String keyspaceName)
alterKeyspace(CqlIdentifier.fromCql(keyspaceName).@NonNull public static Drop dropKeyspace(@NonNull CqlIdentifier keyspaceName)
@NonNull public static Drop dropKeyspace(@NonNull String keyspaceName)
dropKeyspace(CqlIdentifier.fromCql(keyspaceName).@NonNull public static CreateTableStart createTable(@NonNull CqlIdentifier tableName)
@NonNull public static CreateTableStart createTable(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier tableName)
@NonNull public static CreateTableStart createTable(@NonNull String tableName)
createTable(CqlIdentifier.fromCql(tableName)@NonNull public static CreateTableStart createTable(@Nullable String keyspace, @NonNull String tableName)
@NonNull public static AlterTableStart alterTable(@NonNull CqlIdentifier tableName)
@NonNull public static AlterTableStart alterTable(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier tableName)
@NonNull public static AlterTableStart alterTable(@NonNull String tableName)
alterTable(CqlIdentifier.fromCql(tableName)@NonNull public static AlterTableStart alterTable(@Nullable String keyspace, @NonNull String tableName)
@NonNull public static Drop dropTable(@NonNull CqlIdentifier tableName)
@NonNull public static Drop dropTable(@NonNull String tableName)
dropTable(CqlIdentifier.fromCql(tableName).@NonNull public static Drop dropTable(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier tableName)
@NonNull public static Drop dropTable(@Nullable String keyspace, @NonNull String tableName)
@NonNull public static CreateMaterializedViewStart createMaterializedView(@NonNull CqlIdentifier viewName)
@NonNull public static CreateMaterializedViewStart createMaterializedView(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier viewName)
@NonNull public static CreateMaterializedViewStart createMaterializedView(@NonNull String viewName)
@NonNull public static CreateMaterializedViewStart createMaterializedView(@Nullable String keyspace, @NonNull String viewName)
@NonNull public static AlterMaterializedViewStart alterMaterializedView(@NonNull CqlIdentifier viewName)
@NonNull public static AlterMaterializedViewStart alterMaterializedView(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier viewName)
@NonNull public static AlterMaterializedViewStart alterMaterializedView(@NonNull String viewName)
@NonNull public static AlterMaterializedViewStart alterMaterializedView(@Nullable String keyspace, @NonNull String viewName)
@NonNull public static Drop dropMaterializedView(@NonNull CqlIdentifier viewName)
@NonNull public static Drop dropMaterializedView(@NonNull String viewName)
dropMaterializedView(CqlIdentifier.fromCql(viewName).@NonNull public static Drop dropMaterializedView(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier viewName)
@NonNull public static Drop dropMaterializedView(@Nullable String keyspace, @NonNull String viewName)
@NonNull public static CreateTypeStart createType(@NonNull CqlIdentifier typeName)
@NonNull public static CreateTypeStart createType(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier typeName)
@NonNull public static CreateTypeStart createType(@NonNull String typeName)
createType(CqlIdentifier.fromCql(typeName).@NonNull public static CreateTypeStart createType(@Nullable String keyspace, @NonNull String typeName)
@NonNull public static AlterTypeStart alterType(@NonNull CqlIdentifier typeName)
@NonNull public static AlterTypeStart alterType(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier typeName)
@NonNull public static AlterTypeStart alterType(@NonNull String typeName)
alterType(CqlIdentifier.fromCql(typeName)@NonNull public static AlterTypeStart alterType(@Nullable String keyspace, @NonNull String typeName)
@NonNull public static Drop dropType(@NonNull CqlIdentifier typeName)
@NonNull public static Drop dropType(@NonNull String typeName)
dropType(CqlIdentifier.fromCql(typeName).@NonNull public static Drop dropType(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier typeName)
@NonNull public static CreateIndexStart createIndex()
tableName_idx_columnName.@NonNull public static CreateIndexStart createIndex(@Nullable CqlIdentifier indexName)
@NonNull public static CreateIndexStart createIndex(@Nullable String indexName)
createIndex(CqlIdentifier.fromCql(indexName).@NonNull public static Drop dropIndex(@NonNull CqlIdentifier indexName)
@NonNull public static Drop dropIndex(@NonNull String indexName)
dropIndex(CqlIdentifier.fromCql(indexName).@NonNull public static Drop dropIndex(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier indexName)
@NonNull public static Drop dropIndex(@Nullable String keyspace, @NonNull String indexName)
dropIndex(CqlIdentifier, CqlIdentifier)
 dropIndex(CqlIdentifier.fromCql(keyspace),CqlIdentifier.fromCql(indexName)}.@NonNull public static CreateFunctionStart createFunction(@NonNull CqlIdentifier functionName)
@NonNull public static CreateFunctionStart createFunction(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier functionName)
@NonNull public static CreateFunctionStart createFunction(@NonNull String functionName)
@NonNull public static CreateFunctionStart createFunction(@Nullable String keyspace, @NonNull String functionName)
@NonNull public static Drop dropFunction(@NonNull CqlIdentifier functionName)
@NonNull public static Drop dropFunction(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier functionName)
@NonNull public static Drop dropFunction(@NonNull String functionName)
dropFunction(CqlIdentifier.fromCql(functionName).@NonNull public static Drop dropFunction(@Nullable String keyspace, @NonNull String functionName)
@NonNull public static CreateAggregateStart createAggregate(@NonNull CqlIdentifier aggregateName)
@NonNull public static CreateAggregateStart createAggregate(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier aggregateName)
@NonNull public static CreateAggregateStart createAggregate(@NonNull String aggregateName)
@NonNull public static CreateAggregateStart createAggregate(@Nullable String keyspace, @NonNull String aggregateName)
@NonNull public static Drop dropAggregate(@NonNull CqlIdentifier aggregateName)
@NonNull public static Drop dropAggregate(@Nullable CqlIdentifier keyspace, @NonNull CqlIdentifier aggregateName)
@NonNull public static Drop dropAggregate(@NonNull String aggregateName)
dropAggregate(CqlIdentifier.fromCql(aggregateName).@NonNull public static Drop dropAggregate(@Nullable String keyspace, @NonNull String aggregateName)
@NonNull public static SizeTieredCompactionStrategy sizeTieredCompactionStrategy()
@NonNull public static LeveledCompactionStrategy leveledCompactionStrategy()
@NonNull public static TimeWindowCompactionStrategy timeWindowCompactionStrategy()
@NonNull public static UserDefinedType udt(@NonNull CqlIdentifier name, boolean frozen)
DataType for use in UDT and Table builder
 definitions, such as CreateTable.withColumn(CqlIdentifier, DataType).@NonNull public static UserDefinedType udt(@NonNull String name, boolean frozen)
udt(CqlIdentifier.fromCql(name),frozen).Copyright © 2017–2020. All rights reserved.