cluster.truncate(keyspaceName, columnFamily);
}
@Override
public void createColumnFamily(QxJsonColumnFamilyDefinition qxDef) {
ColumnFamilyDefinition cfDef = new ThriftCfDef(qxDef.getKeyspaceName(), qxDef.getName());
cfDef.setGcGraceSeconds(qxDef.getGcGraceSeconds());
cfDef.setComment(qxDef.getComment());
cfDef.setColumnType(ColumnType.getFromValue(qxDef.getColumnType()));
cfDef.setComparatorType(ComparatorType.getByClassName(qxDef.getComparatorType()));
if (qxDef.getColumnType().equals(ColumnType.SUPER.getValue())) {
cfDef.setSubComparatorType(ComparatorType.getByClassName(qxDef.getSubComparatorType()));
}
cfDef.setKeyValidationClass(qxDef.getKeyValidationclass());
cfDef.setDefaultValidationClass(qxDef.getDefaultValidationclass());
cluster.addColumnFamily(cfDef, true);
}