Package com.aerospike.client.command

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


   * @throws AerospikeException  if write fails
   */
  public final void put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setWrite(policy, Operation.Type.WRITE, key, bins);
    command.execute(policy);
  }

  //-------------------------------------------------------
  // String Operations
  //-------------------------------------------------------
View Full Code Here


   * @throws AerospikeException  if append fails
   */
  public final void append(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setWrite(policy, Operation.Type.APPEND, key, bins);
    command.execute(policy);
  }
 
  /**
   * Prepend bin string values to existing record bin values.
   * The policy specifies the transaction timeout, record expiration and how the transaction is
View Full Code Here

   * @throws AerospikeException  if prepend fails
   */
  public final void prepend(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setWrite(policy, Operation.Type.PREPEND, key, bins);
    command.execute(policy);
  }

  //-------------------------------------------------------
  // Arithmetic Operations
  //-------------------------------------------------------
View Full Code Here

   * @throws AerospikeException  if add fails
   */
  public final void add(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setWrite(policy, Operation.Type.ADD, key, bins);
    command.execute(policy);
  }

  //-------------------------------------------------------
  // Delete Operations
  //-------------------------------------------------------
View Full Code Here

   * @throws AerospikeException  if touch fails
   */
  public final void touch(WritePolicy policy, Key key) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setTouch(policy, key);
    command.execute(policy);
  }

  //-------------------------------------------------------
  // Existence-Check Operations
  //-------------------------------------------------------
View Full Code Here

   * @param bins          array of bin name/value pairs
   * @throws AerospikeException  if write fails
   */
  public final void put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.WRITE);
    command.execute();
  }

  //-------------------------------------------------------
  // String Operations
  //-------------------------------------------------------
View Full Code Here

   * @param bins          array of bin name/value pairs
   * @throws AerospikeException  if append fails
   */
  public final void append(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.APPEND);
    command.execute();
  }
 
  /**
   * Prepend bin string values to existing record bin values.
   * The policy specifies the transaction timeout, record expiration and how the transaction is
View Full Code Here

   * @param bins          array of bin name/value pairs
   * @throws AerospikeException  if prepend fails
   */
  public final void prepend(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.PREPEND);
    command.execute();
  }

  //-------------------------------------------------------
  // Arithmetic Operations
  //-------------------------------------------------------
View Full Code Here

   * @param bins          array of bin name/value pairs
   * @throws AerospikeException  if add fails
   */
  public final void add(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.ADD);
    command.execute();
  }

  //-------------------------------------------------------
  // Delete Operations
  //-------------------------------------------------------
View Full Code Here

   * @param bins          array of bin name/value pairs
   * @throws AerospikeException  if write fails
   */
  public final void put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.WRITE);
    command.execute();
  }

  //-------------------------------------------------------
  // String 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.