List of usage examples for org.apache.cassandra.service StorageProxy truncateBlocking
public static void truncateBlocking(String keyspace, String cfname) throws UnavailableException, TimeoutException
From source file:org.usergrid.vx.experimental.CassandraRunner.java
License:Apache License
private void maybeTruncateSafely(RequiresColumnFamily rcf) { if (rcf != null && rcf.truncateExisting()) { try {/* w ww. ja v a2 s. com*/ StorageProxy.truncateBlocking(rcf.ksName(), rcf.cfName()); } catch (Exception ex) { throw new RuntimeException("Could not truncate column family: " + rcf.cfName(), ex); } } }