Package com.aerospike.client.command

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


   * @return            if found, return record instance.  If not found, return null.
   * @throws AerospikeException  if read fails
   */
  public final Record get(Policy policy, Key key) throws AerospikeException {
    ReadCommand command = new ReadCommand(cluster, policy, key, null);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record header and bins for specified key.
View Full Code Here


   * @return            if found, return record instance.  If not found, return null.
   * @throws AerospikeException  if read fails
   */
  public final Record get(Policy policy, Key key, String... binNames) throws AerospikeException
    ReadCommand command = new ReadCommand(cluster, policy, key, binNames);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record generation and expiration only for specified key.  Bins are not read.
View Full Code Here

  public final Record get(Policy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ReadCommand command = new ReadCommand(cluster, policy, key, null);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record header and bins for specified key.
View Full Code Here

  public final Record get(Policy policy, Key key, String... binNames) throws AerospikeException
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ReadCommand command = new ReadCommand(cluster, policy, key, binNames);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record generation and expiration only for specified key.  Bins are not read.
View Full Code Here

  public final Record get(Policy policy, Key key) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ReadCommand command = new ReadCommand(cluster, policy, key, null);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record header and bins for specified key.
View Full Code Here

  public final Record get(Policy policy, Key key, String... binNames) throws AerospikeException
    if (policy == null) {
      policy = readPolicyDefault;
    }
    ReadCommand command = new ReadCommand(cluster, policy, key, binNames);
    command.execute();
    return command.getRecord();
  }

  /**
   * Read record generation and expiration only for specified key.  Bins are not read.
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.