Package com.aerospike.client.task

Examples of com.aerospike.client.task.IndexTask


    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.equals("FAIL:208:ERR FOUND")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here


    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.startsWith("FAIL:200")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here

    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.startsWith("FAIL:200")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here

    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.startsWith("FAIL:200")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here

    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.startsWith("FAIL:200")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here

    // Send index command to one node. That node will distribute the command to other nodes.
    String response = sendInfoCommand(policy, sb.toString());
   
    if (response.equalsIgnoreCase("OK")) {
      // Return task that could optionally be polled for completion.
      return new IndexTask(cluster, namespace, indexName);
    }
   
    if (response.startsWith("FAIL:200")) {
      // Index has already been created.  Do not need to poll for completion.
      return new IndexTask();
    }
     
    throw new AerospikeException("Create index failed: " + response);
  }
View Full Code Here

TOP

Related Classes of com.aerospike.client.task.IndexTask

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.