io.stargate.db.query.BoundUpdate Maven / Gradle / Ivy
package io.stargate.db.query;
import java.util.List;
public interface BoundUpdate extends BoundDMLQueryWithConditions {
/**
* As range updates are not supported by CQL, an UPDATE {@link #rowsUpdated()} is necessarily a
* list of primary keys (only 1 in most case, but potentially more than one with a IN). This
* method just returns those primary keys.
*/
default List primaryKeys() {
assert !rowsUpdated().isRanges();
return rowsUpdated().asKeys().primaryKeys();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy