Package com.aerospike.client.command

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


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

  //-------------------------------------------------------
  // Batch Read Operations
View Full Code Here


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

  //-------------------------------------------------------
  // Batch Read Operations
View Full Code Here

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

  //-------------------------------------------------------
  // Batch Read Operations
View Full Code Here

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

  //-------------------------------------------------------
  // Batch Read Operations
View Full Code Here

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

  //-------------------------------------------------------
  // Batch Read 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.