}
@Test
public void getKeyspaceDefinition() throws Exception {
KeyspaceDefinition def = keyspaceContext.getEntity().describeKeyspace();
Collection<String> fieldNames = def.getFieldNames();
LOG.info("Getting field names");
for (String field : fieldNames) {
LOG.info(field);
}
LOG.info(fieldNames.toString());
for (FieldMetadata field : def.getFieldsMetadata()) {
LOG.info(field.getName() + " = " + def.getFieldValue(field.getName()) + " (" + field.getType() + ")");
}
for (ColumnFamilyDefinition cfDef : def.getColumnFamilyList()) {
LOG.info("----------" );
for (FieldMetadata field : cfDef.getFieldsMetadata()) {
LOG.info(field.getName() + " = " + cfDef.getFieldValue(field.getName()) + " (" + field.getType() + ")");
}
}