Package com.aerospike.client.policy

Examples of com.aerospike.client.policy.ScanPolicy


      this.queryPolicyDefault = policy.queryPolicyDefault;
    }
    else {
      this.readPolicyDefault = new Policy();
      this.writePolicyDefault = new WritePolicy();
      this.scanPolicyDefault = new ScanPolicy();
      this.queryPolicyDefault = new QueryPolicy();
    }
  }
View Full Code Here


      this.batchPolicyDefault = policy.batchPolicyDefault;
    }
    else {
      this.readPolicyDefault = new Policy();
      this.writePolicyDefault = new WritePolicy();
      this.scanPolicyDefault = new ScanPolicy();
      this.queryPolicyDefault = new QueryPolicy();
      this.batchPolicyDefault = new BatchPolicy();
    }
  }
View Full Code Here

   * @throws AerospikeException  if scan fails
   */
  public final void scanAll(ScanPolicy policy, String namespace, String setName, ScanCallback callback, String... binNames)
    throws AerospikeException
    if (policy == null) {
      policy = new ScanPolicy();
    }
    // Retry policy must be one-shot for scans.
    policy.maxRetries = 0;
   
    Node[] nodes = cluster.getNodes();   
View Full Code Here

   * @throws AerospikeException  if transaction fails
   */
  public final void scanNode(ScanPolicy policy, Node node, String namespace, String setName, ScanCallback callback, String... binNames)
    throws AerospikeException {
    if (policy == null) {
      policy = new ScanPolicy();
    }
    // Retry policy must be one-shot for scans.
    policy.maxRetries = 0;

    ScanCommand command = new ScanCommand(node, policy, namespace, setName, callback, binNames);
View Full Code Here

TOP

Related Classes of com.aerospike.client.policy.ScanPolicy

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.