Package com.aerospike.client.command

Examples of com.aerospike.client.command.DeleteCommand.execute()


   * @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;
  }

  //-------------------------------------------------------
  // Touch Operations
View Full Code Here


   * @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();
  }

  //-------------------------------------------------------
  // Touch Operations
View Full Code Here

   * @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();
  }

  //-------------------------------------------------------
  // Touch Operations
View Full Code Here

   * @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();
  }

  //-------------------------------------------------------
  // Touch Operations
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();
  }

  //-------------------------------------------------------
  // Touch Operations
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();
  }

  //-------------------------------------------------------
  // Touch Operations
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.