code: public static KeyspaceDefinition createKeyspaceDefinition(
        String keyspaceName, String strategyClass, int replicationFactor,
        List<ColumnFamilyDefinition> cfDefs) {
      return new ThriftKsDef(keyspaceName, strategyClass, replicationFactor,
          cfDefs);
    }
docs: Use createKeyspaceDefinition to add a new Keyspace to cluster. Example:
  
  String testKeyspace = "testKeyspace"; KeyspaceDefinition newKeyspace =
  HFactory.createKeyspaceDefinition(testKeyspace);
  cluster.addKeyspace(newKeyspace);
  
  @param keyspaceName
  @param strategyClass
  - example:
  org.apache.cassandra.locator.SimpleStrategy.class.getName()
  @param replicationFactor
  - http://wiki.apache.org/cassandra/Operations