/** * Specify the keyspace and table to create the index on. * * @param keyspaceName the keyspace name. * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String keyspaceName, String tableName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(tableName, "Table name"); validateNotKeyWord( keyspaceName, String.format( "The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord( tableName, String.format( "The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.keyspaceName = Optional.fromNullable(keyspaceName); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the table to create the index on. * * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String tableName) { validateNotEmpty(tableName, "Table name"); validateNotKeyWord( tableName, String.format( "The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the keyspace and table to create the index on. * * @param keyspaceName the keyspace name. * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String keyspaceName, String tableName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(tableName, "Table name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.keyspaceName = Optional.fromNullable(keyspaceName); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the keyspace and table to create the index on. * * @param keyspaceName the keyspace name. * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String keyspaceName, String tableName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(tableName, "Table name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.keyspaceName = Optional.fromNullable(keyspaceName); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the keyspace and table to create the index on. * * @param keyspaceName the keyspace name. * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String keyspaceName, String tableName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(tableName, "Table name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.keyspaceName = Optional.fromNullable(keyspaceName); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the table to create the index on. * * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String tableName) { validateNotEmpty(tableName, "Table name"); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the table to create the index on. * * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String tableName) { validateNotEmpty(tableName, "Table name"); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.tableName = tableName; return new CreateIndexOn(); }
/** * Specify the table to create the index on. * * @param tableName the table name. * @return a {@link CreateIndexOn} that will allow the specification of the column. */ public CreateIndexOn onTable(String tableName) { validateNotEmpty(tableName, "Table name"); validateNotKeyWord(tableName, String.format("The table name '%s' is not allowed because it is a reserved keyword", tableName)); this.tableName = tableName; return new CreateIndexOn(); }