Package org.apache.gora.cassandra.client

Examples of org.apache.gora.cassandra.client.SimpleCassandraClient


  private CassandraClient createClient() throws IOException {
    String serverStr =
      DataStoreFactory.findPropertyOrDie(properties, this, "servers");
    String[] server1Parts = serverStr.split(",")[0].split(":");
    try {
      return new SimpleCassandraClient(server1Parts[0],
          Integer.parseInt(server1Parts[1]), mapping.getKeySpace());
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.gora.cassandra.client.SimpleCassandraClient

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.