public boolean keyspaceExists ( DBConn dbConn , String keyspace ) { try { dbConn . getClientSession ( ) . describe_keyspace ( keyspace ) ; return true ; } catch ( Exception e ) { return false ; // Notfound } }
Return true if a keyspace with the given name exists . This method can be used with any DB connection .