public class org.apache.cassandra.cql3.statements.AlterViewStatement extends org.apache.cassandra.cql3.statements.SchemaAlteringStatement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.AlterViewStatement
super_class: org.apache.cassandra.cql3.statements.SchemaAlteringStatement
{
private final org.apache.cassandra.cql3.statements.TableAttributes attrs;
descriptor: Lorg/apache/cassandra/cql3/statements/TableAttributes;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.apache.cassandra.cql3.CFName, org.apache.cassandra.cql3.statements.TableAttributes);
descriptor: (Lorg/apache/cassandra/cql3/CFName;Lorg/apache/cassandra/cql3/statements/TableAttributes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.apache.cassandra.cql3.statements.SchemaAlteringStatement.<init>:(Lorg/apache/cassandra/cql3/CFName;)V
1: aload 0
aload 2
putfield org.apache.cassandra.cql3.statements.AlterViewStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cql3/statements/AlterViewStatement;
0 3 1 name Lorg/apache/cassandra/cql3/CFName;
0 3 2 attrs Lorg/apache/cassandra/cql3/statements/TableAttributes;
MethodParameters:
Name Flags
name
attrs
public void checkAccess(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.db.view.View.findBaseTable:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.keyspace:()Ljava/lang/String;
aload 2
getfield org.apache.cassandra.config.CFMetaData.cfName:Ljava/lang/String;
getstatic org.apache.cassandra.auth.Permission.ALTER:Lorg/apache/cassandra/auth/Permission;
invokevirtual org.apache.cassandra.service.ClientState.hasColumnFamilyAccess:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/auth/Permission;)V
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/cql3/statements/AlterViewStatement;
0 4 1 state Lorg/apache/cassandra/service/ClientState;
1 4 2 baseTable Lorg/apache/cassandra/config/CFMetaData;
Exceptions:
throws org.apache.cassandra.exceptions.UnauthorizedException, org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
state
public void validate(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/AlterViewStatement;
0 1 1 state Lorg/apache/cassandra/service/ClientState;
MethodParameters:
Name Flags
state
public org.apache.cassandra.transport.Event$SchemaChange announceMigration(org.apache.cassandra.service.QueryState, boolean);
descriptor: (Lorg/apache/cassandra/service/QueryState;Z)Lorg/apache/cassandra/transport/Event$SchemaChange;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 3
start local 3 1: aload 3
invokevirtual org.apache.cassandra.config.CFMetaData.isView:()Z
ifne 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot use ALTER MATERIALIZED VIEW on Table"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.columnFamily:()Ljava/lang/String;
invokevirtual org.apache.cassandra.config.Schema.getView:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/ViewDefinition;
invokevirtual org.apache.cassandra.config.ViewDefinition.copy:()Lorg/apache/cassandra/config/ViewDefinition;
astore 4
start local 4 4: aload 0
getfield org.apache.cassandra.cql3.statements.AlterViewStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
ifnonnull 6
5: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "ALTER MATERIALIZED VIEW WITH invoked, but no parameters found"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.apache.cassandra.config.ViewDefinition
StackMap stack:
aload 0
getfield org.apache.cassandra.cql3.statements.AlterViewStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
invokevirtual org.apache.cassandra.cql3.statements.TableAttributes.validate:()V
7: aload 0
getfield org.apache.cassandra.cql3.statements.AlterViewStatement.attrs:Lorg/apache/cassandra/cql3/statements/TableAttributes;
aload 4
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.params:Lorg/apache/cassandra/schema/TableParams;
invokevirtual org.apache.cassandra.cql3.statements.TableAttributes.asAlteredTableParams:(Lorg/apache/cassandra/schema/TableParams;)Lorg/apache/cassandra/schema/TableParams;
astore 5
start local 5 8: aload 5
getfield org.apache.cassandra.schema.TableParams.gcGraceSeconds:I
ifne 10
9: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot alter gc_grace_seconds of a materialized view to 0, since this value is used to TTL undelivered updates. Setting gc_grace_seconds too low might cause undelivered updates to expire before being replayed."
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: org.apache.cassandra.schema.TableParams
StackMap stack:
aload 5
getfield org.apache.cassandra.schema.TableParams.defaultTimeToLive:I
ifle 12
11: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot set or alter default_time_to_live for a materialized view. Data in a materialized view always expire at the same time than the corresponding data in the parent table."
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 4
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 5
invokevirtual org.apache.cassandra.config.CFMetaData.params:(Lorg/apache/cassandra/schema/TableParams;)Lorg/apache/cassandra/config/CFMetaData;
pop
13: aload 4
iload 2
invokestatic org.apache.cassandra.service.MigrationManager.announceViewUpdate:(Lorg/apache/cassandra/config/ViewDefinition;Z)V
14: new org.apache.cassandra.transport.Event$SchemaChange
dup
getstatic org.apache.cassandra.transport.Event$SchemaChange$Change.UPDATED:Lorg/apache/cassandra/transport/Event$SchemaChange$Change;
getstatic org.apache.cassandra.transport.Event$SchemaChange$Target.TABLE:Lorg/apache/cassandra/transport/Event$SchemaChange$Target;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.AlterViewStatement.columnFamily:()Ljava/lang/String;
invokespecial org.apache.cassandra.transport.Event$SchemaChange.<init>:(Lorg/apache/cassandra/transport/Event$SchemaChange$Change;Lorg/apache/cassandra/transport/Event$SchemaChange$Target;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/cql3/statements/AlterViewStatement;
0 15 1 queryState Lorg/apache/cassandra/service/QueryState;
0 15 2 isLocalOnly Z
1 15 3 meta Lorg/apache/cassandra/config/CFMetaData;
4 15 4 viewCopy Lorg/apache/cassandra/config/ViewDefinition;
8 15 5 params Lorg/apache/cassandra/schema/TableParams;
Exceptions:
throws org.apache.cassandra.exceptions.RequestValidationException
MethodParameters:
Name Flags
queryState
isLocalOnly
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "AlterViewStatement(name=%s)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.cql3.statements.AlterViewStatement.cfName:Lorg/apache/cassandra/cql3/CFName;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/AlterViewStatement;
}
SourceFile: "AlterViewStatement.java"
InnerClasses:
public SchemaChange = org.apache.cassandra.transport.Event$SchemaChange of org.apache.cassandra.transport.Event
public final Change = org.apache.cassandra.transport.Event$SchemaChange$Change of org.apache.cassandra.transport.Event$SchemaChange
public final Target = org.apache.cassandra.transport.Event$SchemaChange$Target of org.apache.cassandra.transport.Event$SchemaChange