public Event.SchemaChange changeEvent() { return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, keyspace()); } }
public final AlterKeyspaceStatement alterKeyspaceStatement() throws RecognitionException { AlterKeyspaceStatement expr = null; String ks =null; KSPropDefs attrs = new KSPropDefs(); try { // /tmp/tmp.qQwo4YQbPT/cassandra/src/java/org/apache/cassandra/cql3/Cql.g:614:5: ( K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] ) // /tmp/tmp.qQwo4YQbPT/cassandra/src/java/org/apache/cassandra/cql3/Cql.g:614:7: K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] { match(input,K_ALTER,FOLLOW_K_ALTER_in_alterKeyspaceStatement3108); match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement3110); pushFollow(FOLLOW_keyspaceName_in_alterKeyspaceStatement3114); ks=keyspaceName(); state._fsp--; match(input,K_WITH,FOLLOW_K_WITH_in_alterKeyspaceStatement3124); pushFollow(FOLLOW_properties_in_alterKeyspaceStatement3126); properties(attrs); state._fsp--; expr = new AlterKeyspaceStatement(ks, attrs); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return expr; } // $ANTLR end "alterKeyspaceStatement"
public final AlterKeyspaceStatement alterKeyspaceStatement() throws RecognitionException { AlterKeyspaceStatement expr = null; String ks =null; KeyspaceAttributes attrs = new KeyspaceAttributes(); try { // Parser.g:788:5: ( K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] ) // Parser.g:788:7: K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] { match(input,K_ALTER,FOLLOW_K_ALTER_in_alterKeyspaceStatement4989); match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement4991); pushFollow(FOLLOW_keyspaceName_in_alterKeyspaceStatement4995); ks=keyspaceName(); state._fsp--; match(input,K_WITH,FOLLOW_K_WITH_in_alterKeyspaceStatement5005); pushFollow(FOLLOW_properties_in_alterKeyspaceStatement5007); properties(attrs); state._fsp--; expr = new AlterKeyspaceStatement(ks, attrs); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return expr; } // $ANTLR end "alterKeyspaceStatement"
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws RequestValidationException { KeyspaceMetadata oldKsm = Schema.instance.getKSMetaData(name); // In the (very) unlikely case the keyspace was dropped since validate() if (oldKsm == null) throw new InvalidRequestException("Unknown keyspace " + name); KeyspaceMetadata newKsm = oldKsm.withSwapped(attrs.asAlteredKeyspaceParams(oldKsm.params)); MigrationManager.announceKeyspaceUpdate(newKsm, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, keyspace()); } }
public final AlterKeyspaceStatement alterKeyspaceStatement() throws RecognitionException { AlterKeyspaceStatement expr = null; String ks =null; KeyspaceAttributes attrs = new KeyspaceAttributes(); try { // Parser.g:788:5: ( K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] ) // Parser.g:788:7: K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] { match(input,K_ALTER,FOLLOW_K_ALTER_in_alterKeyspaceStatement4989); match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement4991); pushFollow(FOLLOW_keyspaceName_in_alterKeyspaceStatement4995); ks=keyspaceName(); state._fsp--; match(input,K_WITH,FOLLOW_K_WITH_in_alterKeyspaceStatement5005); pushFollow(FOLLOW_properties_in_alterKeyspaceStatement5007); properties(attrs); state._fsp--; expr = new AlterKeyspaceStatement(ks, attrs); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return expr; } // $ANTLR end "alterKeyspaceStatement"
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws RequestValidationException { KeyspaceMetadata oldKsm = Schema.instance.getKSMetaData(name); // In the (very) unlikely case the keyspace was dropped since validate() if (oldKsm == null) throw new InvalidRequestException("Unknown keyspace " + name); KeyspaceMetadata newKsm = oldKsm.withSwapped(attrs.asAlteredKeyspaceParams(oldKsm.params)); MigrationManager.announceKeyspaceUpdate(newKsm, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, keyspace()); } }
public final AlterKeyspaceStatement alterKeyspaceStatement() throws RecognitionException { AlterKeyspaceStatement expr = null; String ks =null; KeyspaceAttributes attrs = new KeyspaceAttributes(); try { // Parser.g:788:5: ( K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] ) // Parser.g:788:7: K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] { match(input,K_ALTER,FOLLOW_K_ALTER_in_alterKeyspaceStatement4989); match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement4991); pushFollow(FOLLOW_keyspaceName_in_alterKeyspaceStatement4995); ks=keyspaceName(); state._fsp--; match(input,K_WITH,FOLLOW_K_WITH_in_alterKeyspaceStatement5005); pushFollow(FOLLOW_properties_in_alterKeyspaceStatement5007); properties(attrs); state._fsp--; expr = new AlterKeyspaceStatement(ks, attrs); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving } return expr; } // $ANTLR end "alterKeyspaceStatement"
public Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws RequestValidationException { KeyspaceMetadata oldKsm = Schema.instance.getKSMetaData(name); // In the (very) unlikely case the keyspace was dropped since validate() if (oldKsm == null) throw new InvalidRequestException("Unknown keyspace " + name); KeyspaceMetadata newKsm = oldKsm.withSwapped(attrs.asAlteredKeyspaceParams(oldKsm.params)); MigrationManager.announceKeyspaceUpdate(newKsm, isLocalOnly); return new Event.SchemaChange(Event.SchemaChange.Change.UPDATED, keyspace()); } }