public String columnFamily() { CFMetaData cfm = lookupIndexedTable(); return cfm == null ? null : cfm.cfName; }
public String columnFamily() { CFMetaData cfm = lookupIndexedTable(); return cfm == null ? null : cfm.cfName; }
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException { CFMetaData cfm = lookupIndexedTable(); if (cfm == null) return; state.hasColumnFamilyAccess(cfm.ksName, cfm.cfName, Permission.ALTER); }
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException { CFMetaData cfm = lookupIndexedTable(); if (cfm == null) return; state.hasColumnFamilyAccess(cfm.ksName, cfm.cfName, Permission.ALTER); }
public String columnFamily() { CFMetaData cfm = lookupIndexedTable(Schema.instance.getKSMetaData(keyspace())); return cfm == null ? null : cfm.cfName; }
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException { CFMetaData cfm = lookupIndexedTable(Schema.instance.getKSMetaData(keyspace())); if (cfm == null) return; state.hasColumnFamilyAccess(cfm.ksName, cfm.cfName, Permission.ALTER); }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { CFMetaData cfm = lookupIndexedTable(Schema.instance.getKSMetaData(keyspace())); if (cfm == null) return null; CFMetaData updatedCfm = dropIndex(cfm); MigrationManager.announceColumnFamilyUpdate(updatedCfm, isLocalOnly); // Dropping an index is akin to updating the CF // Note that we shouldn't call columnFamily() at this point because the index has been dropped and the call to lookupIndexedTable() // in that method would now throw. return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, Event.SchemaChange.Target.TABLE, updatedCfm.ksName, cfm.cfName); }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { CFMetaData cfm = lookupIndexedTable(); if (cfm == null) return null; CFMetaData updatedCfm = cfm.copy(); updatedCfm.indexes(updatedCfm.getIndexes().without(indexName)); MigrationManager.announceColumnFamilyUpdate(updatedCfm, isLocalOnly); // Dropping an index is akin to updating the CF // Note that we shouldn't call columnFamily() at this point because the index has been dropped and the call to lookupIndexedTable() // in that method would now throw. return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, Event.SchemaChange.Target.TABLE, cfm.ksName, cfm.cfName); }
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException { CFMetaData cfm = lookupIndexedTable(); if (cfm == null) return null; CFMetaData updatedCfm = cfm.copy(); updatedCfm.indexes(updatedCfm.getIndexes().without(indexName)); MigrationManager.announceColumnFamilyUpdate(updatedCfm, isLocalOnly); // Dropping an index is akin to updating the CF // Note that we shouldn't call columnFamily() at this point because the index has been dropped and the call to lookupIndexedTable() // in that method would now throw. return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, Event.SchemaChange.Target.TABLE, cfm.ksName, cfm.cfName); }