use of com.datastax.dse.driver.api.core.metadata.schema.DseTableMetadata in project java-driver by datastax.
the class DseSchemaParser method parseTables.
private Map<CqlIdentifier, TableMetadata> parseTables(CqlIdentifier keyspaceId, Map<CqlIdentifier, UserDefinedType> types) {
ImmutableMap.Builder<CqlIdentifier, TableMetadata> tablesBuilder = ImmutableMap.builder();
Multimap<CqlIdentifier, AdminRow> vertices = rows.vertices().get(keyspaceId);
Multimap<CqlIdentifier, AdminRow> edges = rows.edges().get(keyspaceId);
for (AdminRow tableRow : rows.tables().get(keyspaceId)) {
DseTableMetadata table = tableParser.parseTable(tableRow, keyspaceId, types, vertices, edges);
if (table != null) {
tablesBuilder.put(table.getName(), table);
}
}
return tablesBuilder.build();
}
Aggregations