Package com.aerospike.client.command

Examples of com.aerospike.client.command.WriteCommand


   * @param key          unique record identifier
   * @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, key);
    command.setWrite(policy, Operation.Type.WRITE, key, bins);
    command.execute(policy);
  }
View Full Code Here


   * @param key          unique record identifier
   * @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, key);
    command.setWrite(policy, Operation.Type.APPEND, key, bins);
    command.execute(policy);
  }
View Full Code Here

   * @param key          unique record identifier
   * @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, key);
    command.setWrite(policy, Operation.Type.PREPEND, key, bins);
    command.execute(policy);
  }
View Full Code Here

   * @param key          unique record identifier
   * @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, key);
    command.setWrite(policy, Operation.Type.ADD, key, bins);
    command.execute(policy);
  }
View Full Code Here

   * @param policy        write configuration parameters, pass in null for defaults
   * @param key          unique record identifier
   * @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);
  }
View Full Code Here

   * @param key          unique record identifier
   * @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();
  }
View Full Code Here

   * @param key          unique record identifier
   * @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();
  }
View Full Code Here

   * @param key          unique record identifier
   * @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();
  }
View Full Code Here

   * @param key          unique record identifier
   * @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();
  }
View Full Code Here

   * @param key          unique record identifier
   * @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();
  }
View Full Code Here

TOP

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

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.