Delete(String keyspace, String table, List<Object> routingKeyValues, List<ColumnMetadata> partitionKey, List<Selector> columns) { super(keyspace, partitionKey, routingKeyValues); this.table = table; this.columns = columns; this.where = new Where(this); this.usings = new Options(this); this.conditions = new Conditions(this); // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent. if (!areIdempotent(columns)) { setNonIdempotentOps(); } }
Delete(String keyspace, String table, List<Object> routingKeyValues, List<ColumnMetadata> partitionKey, List<Selector> columns) { super(keyspace, partitionKey, routingKeyValues); this.table = table; this.columns = columns; this.where = new Where(this); this.usings = new Options(this); this.conditions = new Conditions(this); // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent. if (!areIdempotent(columns)) { setNonIdempotentOps(); } }
Delete(String keyspace, String table, List<Object> routingKeyValues, List<ColumnMetadata> partitionKey, List<Selector> columns) { super(keyspace, partitionKey, routingKeyValues); this.table = table; this.columns = columns; this.where = new Where(this); this.usings = new Options(this); this.conditions = new Conditions(this); // This is for JAVA-1089, if the query deletes an element in a list, the statement should be non-idempotent. if (!areIdempotent(columns)) { setNonIdempotentOps(); } }
Delete(TableMetadata table, List<Object> columnNames) { super(table); this.table = escapeId(table.getName()); this.columnNames = columnNames; this.where = new Where(this); this.usings = new Options(this); }
Delete(String keyspace, String table, List<Object> columnNames) { super(keyspace); this.table = table; this.columnNames = columnNames; this.where = new Where(this); this.usings = new Options(this); }
Delete( String keyspace, String table, List<Object> routingKeyValues, List<ColumnMetadata> partitionKey, List<Selector> columns) { super(keyspace, partitionKey, routingKeyValues); this.table = table; this.columns = columns; this.where = new Where(this); this.usings = new Options(this); this.conditions = new Conditions(this); // This is for JAVA-1089, if the query deletes an element in a list, the statement should be // non-idempotent. if (!areIdempotent(columns)) { setNonIdempotentOps(); } }