private static Row serializedColumnFamilies(DecoratedKey ksNameKey) { ColumnFamilyStore cfsStore = SystemKeyspace.schemaCFS(SystemKeyspace.SCHEMA_COLUMNFAMILIES_CF); return new Row(ksNameKey, cfsStore.getColumnFamily(QueryFilter.getIdentityFilter(ksNameKey, SystemKeyspace.SCHEMA_COLUMNFAMILIES_CF, System.currentTimeMillis()))); }
private static Row serializedUserTypes(DecoratedKey ksNameKey) { ColumnFamilyStore cfsStore = SystemKeyspace.schemaCFS(SystemKeyspace.SCHEMA_USER_TYPES_CF); return new Row(ksNameKey, cfsStore.getColumnFamily(QueryFilter.getIdentityFilter(ksNameKey, SystemKeyspace.SCHEMA_USER_TYPES_CF, System.currentTimeMillis()))); }
/** * Fetches a subset of schema (table data, columns metadata or triggers) for the keyspace. * * @param schemaCfName the schema table to get the data from (schema_keyspaces, schema_columnfamilies, schema_columns or schema_triggers) * @param ksName the keyspace of the tables we are interested in * @return a Row containing the schema data of a particular type for the keyspace */ public static Row readSchemaRow(String schemaCfName, String ksName) { DecoratedKey key = StorageService.getPartitioner().decorateKey(getSchemaKSKey(ksName)); ColumnFamilyStore schemaCFS = SystemKeyspace.schemaCFS(schemaCfName); ColumnFamily result = schemaCFS.getColumnFamily(QueryFilter.getIdentityFilter(key, schemaCfName, System.currentTimeMillis())); return new Row(key, result); }
data = getTopLevelColumns(QueryFilter.getIdentityFilter(filter.key, name, filter.timestamp), Integer.MIN_VALUE); toCache = data; Tracing.trace("Populating row cache with the whole partition");