Map<String, Map<String, ColumnDefinition>> columnFamilies = schema.getFamilies();
if (columnFamilies != null) {
for (Map.Entry<String, Map<String, ColumnDefinition>> schemaEntry : columnFamilies.entrySet()) {
Family family = new Family(schemaEntry.getKey());
for (ColumnDefinition def : schemaEntry.getValue().values()) {
Column column = new Column(def.getColumnName());
column.setFullText(def.isFieldLessIndexed());
//TODO: Rename this type
column.setAnalyzer(def.getFieldType());
//TODO: Do anything with subcolumns?
family.getColumns().add(column);
}
columnDefs.add(family);