public void createKeyspace ( String keyspace ) { Map < String , String > replicationSimpleOneExtra = new HashMap <> ( ) ; replicationSimpleOneExtra . put ( "'class'" , "'SimpleStrategy'" ) ; replicationSimpleOneExtra . put ( "'replication_factor'" , "1" ) ; String query = this . cassandraqueryUtils . createKeyspaceQuery ( true , keyspace , this . cassandraqueryUtils . createKeyspaceReplication ( replicationSimpleOneExtra ) , "" ) ; LOGGER . debug ( query ) ; executeQuery ( query ) ; }
Create a keyspace in Cassandra .