All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.db.query.BoundUpdate Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
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