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 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

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

   */
  public final void put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    if (policy == null) {
      policy = writePolicyDefault;
    }
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.WRITE);
    command.execute();
  }
View Full Code Here

   */
  public final void append(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    if (policy == null) {
      policy = writePolicyDefault;
    }
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.APPEND);
    command.execute();
  }
View Full Code Here

   */
  public final void prepend(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    if (policy == null) {
      policy = writePolicyDefault;
    }
    WriteCommand command = new WriteCommand(cluster, policy, key, bins, Operation.Type.PREPEND);
    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.