boolean tableExists = true;
try {
_log.info("Started checking whether table {} exists...", table);
session = _rootCluster.connect(keyspace);
session.execute(String.format("SELECT * FROM %s LIMIT 10", table));
_log.info("Finished checking whether table {} exists...", table);
_log.info("Table {} exists, nothing to do.", table);
}
// Keyspace does not exist, so we try to create it.