Package org.apache.cassandra.thrift.Cassandra

Examples of org.apache.cassandra.thrift.Cassandra.Client.system_add_keyspace()


   
    KsDef ksDef = new KsDef(name, strategyClass, new ArrayList<CfDef>());
    Map<String, String> strategyOptions = new HashMap<String, String>();
    strategyOptions.put("replication_factor", String.valueOf(replicationFactor));
    ksDef.setStrategy_options(strategyOptions);
    client.system_add_keyspace(ksDef);
   
    model.clear();
    return "redirect:/keyspace/" + name + "/";
  }
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.