@Override public List<ColumnFamilyModel> getColumnFamilies() { if (keyspace == null) { getKeyspace(); } return keyspace.getColumnFamilies(); }
@Override public List<ColumnFamilyModel> getColumnFamilies() { if (keyspace == null) { mapParsedKeyspaceToModel(getParsedKeyspace()); } return keyspace.getColumnFamilies(); }
private void mapsParsedColumnFamiliesToColumnFamiliesModel(ParsedKeyspace parsedKeyspace) { if (parsedKeyspace.getColumnFamilies() != null) { /* there is column families to integrate */ for (ParsedColumnFamily parsedColumnFamily : parsedKeyspace.getColumnFamilies()) { keyspace .getColumnFamilies() .add(mapParsedColumnFamilyToColumnFamilyModel(parsedColumnFamily)); } } }
private void mapsXmlColumnFamiliesToColumnFamiliesModel( org.cassandraunit.dataset.xml.Keyspace xmlKeyspace) { if (xmlKeyspace.getColumnFamilies() != null) { /* there is column families to integrate */ for (org.cassandraunit.dataset.xml.ColumnFamily xmlColumnFamily : xmlKeyspace.getColumnFamilies().getColumnFamily()) { keyspace.getColumnFamilies().add(mapXmlColumnFamilyToColumnFamilyModel(xmlColumnFamily)); } } }