buildUserTypes(keyspace, rows.udts.get(keyspace.getName()), cassandraVersion, cluster); for (UserType userType : userTypes.values()) { keyspace.add(userType); cluster); for (TableMetadata table : tables.values()) { keyspace.add(table); keyspace, rows.functions.get(keyspace.getName()), cassandraVersion, cluster); for (FunctionMetadata function : functions.values()) { keyspace.add(function); keyspace, rows.aggregates.get(keyspace.getName()), cassandraVersion, cluster); for (AggregateMetadata aggregate : aggregates.values()) { keyspace.add(aggregate); cluster); for (MaterializedViewMetadata view : views.values()) { keyspace.add(view); cluster); for (TableMetadata table : tables.values()) { keyspace.add(table);
private Map<String, KeyspaceMetadata> buildKeyspaces(SystemRows rows, VersionNumber cassandraVersion, Cluster cluster) { Map<String, KeyspaceMetadata> keyspaces = new LinkedHashMap<String, KeyspaceMetadata>(); for (Row keyspaceRow : rows.keyspaces) { KeyspaceMetadata keyspace = KeyspaceMetadata.build(keyspaceRow, cassandraVersion); Map<String, UserType> userTypes = buildUserTypes(keyspace, rows.udts.get(keyspace.getName()), cassandraVersion, cluster); for (UserType userType : userTypes.values()) { keyspace.add(userType); } Map<String, TableMetadata> tables = buildTables(keyspace, rows.tables.get(keyspace.getName()), rows.columns.get(keyspace.getName()), rows.indexes.get(keyspace.getName()), cassandraVersion, cluster); for (TableMetadata table : tables.values()) { keyspace.add(table); } Map<String, FunctionMetadata> functions = buildFunctions(keyspace, rows.functions.get(keyspace.getName()), cassandraVersion, cluster); for (FunctionMetadata function : functions.values()) { keyspace.add(function); } Map<String, AggregateMetadata> aggregates = buildAggregates(keyspace, rows.aggregates.get(keyspace.getName()), cassandraVersion, cluster); for (AggregateMetadata aggregate : aggregates.values()) { keyspace.add(aggregate); } Map<String, MaterializedViewMetadata> views = buildViews(keyspace, rows.views.get(keyspace.getName()), rows.columns.get(keyspace.getName()), cassandraVersion, cluster); for (MaterializedViewMetadata view : views.values()) { keyspace.add(view); } keyspaces.put(keyspace.getName(), keyspace); } return keyspaces; }
private Map<String, KeyspaceMetadata> buildKeyspaces(SystemRows rows, VersionNumber cassandraVersion, Cluster cluster) { Map<String, KeyspaceMetadata> keyspaces = new LinkedHashMap<String, KeyspaceMetadata>(); for (Row keyspaceRow : rows.keyspaces) { KeyspaceMetadata keyspace = KeyspaceMetadata.build(keyspaceRow, cassandraVersion); Map<String, UserType> userTypes = buildUserTypes(keyspace, rows.udts.get(keyspace.getName()), cassandraVersion, cluster); for (UserType userType : userTypes.values()) { keyspace.add(userType); } Map<String, TableMetadata> tables = buildTables(keyspace, rows.tables.get(keyspace.getName()), rows.columns.get(keyspace.getName()), rows.indexes.get(keyspace.getName()), cassandraVersion, cluster); for (TableMetadata table : tables.values()) { keyspace.add(table); } Map<String, FunctionMetadata> functions = buildFunctions(keyspace, rows.functions.get(keyspace.getName()), cassandraVersion, cluster); for (FunctionMetadata function : functions.values()) { keyspace.add(function); } Map<String, AggregateMetadata> aggregates = buildAggregates(keyspace, rows.aggregates.get(keyspace.getName()), cassandraVersion, cluster); for (AggregateMetadata aggregate : aggregates.values()) { keyspace.add(aggregate); } Map<String, MaterializedViewMetadata> views = buildViews(keyspace, rows.views.get(keyspace.getName()), rows.columns.get(keyspace.getName()), cassandraVersion, cluster); for (MaterializedViewMetadata view : views.values()) { keyspace.add(view); } keyspaces.put(keyspace.getName(), keyspace); } return keyspaces; }
private Map<String, KeyspaceMetadata> buildKeyspaces(SystemRows rows, VersionNumber cassandraVersion, Cluster cluster) { Map<String, KeyspaceMetadata> keyspaces = new LinkedHashMap<String, KeyspaceMetadata>(); for (Row keyspaceRow : rows.keyspaces) { KeyspaceMetadata keyspace = KeyspaceMetadata.build(keyspaceRow, cassandraVersion); Map<String, UserType> userTypes = buildUserTypes(keyspace, rows.udts.get(keyspace.getName()), cassandraVersion, cluster); for (UserType userType : userTypes.values()) { keyspace.add(userType); } Map<String, TableMetadata> tables = buildTables(keyspace, rows.tables.get(keyspace.getName()), rows.columns.get(keyspace.getName()), rows.indexes.get(keyspace.getName()), cassandraVersion, cluster); for (TableMetadata table : tables.values()) { keyspace.add(table); } Map<String, FunctionMetadata> functions = buildFunctions(keyspace, rows.functions.get(keyspace.getName()), cassandraVersion, cluster); for (FunctionMetadata function : functions.values()) { keyspace.add(function); } Map<String, AggregateMetadata> aggregates = buildAggregates(keyspace, rows.aggregates.get(keyspace.getName()), cassandraVersion, cluster); for (AggregateMetadata aggregate : aggregates.values()) { keyspace.add(aggregate); } Map<String, MaterializedViewMetadata> views = buildViews(keyspace, rows.views.get(keyspace.getName()), rows.columns.get(keyspace.getName()), cassandraVersion, cluster); for (MaterializedViewMetadata view : views.values()) { keyspace.add(view); } keyspaces.put(keyspace.getName(), keyspace); } return keyspaces; }
columns.put(c.getName(), c); ksm.add(tm); return tm;