Package com.aerospike.client.command

Examples of com.aerospike.client.command.DeleteCommand


   * @param key          unique record identifier
   * @return            whether record existed on server before deletion
   * @throws AerospikeException  if delete fails
   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    DeleteCommand command = new DeleteCommand(cluster, key);
    command.setDelete(policy, key);   
    command.execute(policy);
    return command.getResultCode() == ResultCode.OK;
  }
View Full Code Here


   * @param key          unique record identifier
   * @return            whether record existed on server before deletion
   * @throws AerospikeException  if delete fails
   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    DeleteCommand command = new DeleteCommand(cluster, policy, key);
    command.execute();
    return command.existed();
  }
View Full Code Here

   * @param key          unique record identifier
   * @return            whether record existed on server before deletion
   * @throws AerospikeException  if delete fails
   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    DeleteCommand command = new DeleteCommand(cluster, policy, key);
    command.execute();
    return command.existed();
  }
View Full Code Here

   * @param key          unique record identifier
   * @return            whether record existed on server before deletion
   * @throws AerospikeException  if delete fails
   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    DeleteCommand command = new DeleteCommand(cluster, policy, key);
    command.execute();
    return command.existed();
  }
View Full Code Here

   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = writePolicyDefault;
    }
    DeleteCommand command = new DeleteCommand(cluster, policy, key);
    command.execute();
    return command.existed();
  }
View Full Code Here

   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = writePolicyDefault;
    }
    DeleteCommand command = new DeleteCommand(cluster, policy, key);
    command.execute();
    return command.existed();
  }
View Full Code Here

TOP

Related Classes of com.aerospike.client.command.DeleteCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.