public class org.apache.cassandra.cql3.statements.TruncateStatement extends org.apache.cassandra.cql3.statements.CFStatement implements org.apache.cassandra.cql3.CQLStatement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.TruncateStatement
super_class: org.apache.cassandra.cql3.statements.CFStatement
{
public void <init>(org.apache.cassandra.cql3.CFName);
descriptor: (Lorg/apache/cassandra/cql3/CFName;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.apache.cassandra.cql3.statements.CFStatement.<init>:(Lorg/apache/cassandra/cql3/CFName;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 2 1 name Lorg/apache/cassandra/cql3/CFName;
MethodParameters:
Name Flags
name
public int getBoundTerms();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
public org.apache.cassandra.cql3.statements.ParsedStatement$Prepared prepare(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)Lorg/apache/cassandra/cql3/statements/ParsedStatement$Prepared;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.cql3.statements.ParsedStatement$Prepared
dup
aload 0
invokespecial org.apache.cassandra.cql3.statements.ParsedStatement$Prepared.<init>:(Lorg/apache/cassandra/cql3/CQLStatement;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 1 1 clientState Lorg/apache/cassandra/service/ClientState;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
clientState
public void checkAccess(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.columnFamily:()Ljava/lang/String;
getstatic org.apache.cassandra.auth.Permission.MODIFY:Lorg/apache/cassandra/auth/Permission;
invokevirtual org.apache.cassandra.service.ClientState.hasColumnFamilyAccess:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/auth/Permission;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 2 1 state Lorg/apache/cassandra/service/ClientState;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.UnauthorizedException
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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 2 1 state Lorg/apache/cassandra/service/ClientState;
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException
MethodParameters:
Name Flags
state
public org.apache.cassandra.transport.messages.ResultMessage execute(org.apache.cassandra.service.QueryState, org.apache.cassandra.cql3.QueryOptions, long);
descriptor: (Lorg/apache/cassandra/service/QueryState;Lorg/apache/cassandra/cql3/QueryOptions;J)Lorg/apache/cassandra/transport/messages/ResultMessage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.columnFamily:()Ljava/lang/String;
invokevirtual org.apache.cassandra.config.Schema.getCFMetaData:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
astore 5
start local 5 1: aload 5
invokevirtual org.apache.cassandra.config.CFMetaData.isView:()Z
ifeq 3
2: new org.apache.cassandra.exceptions.InvalidRequestException
dup
ldc "Cannot TRUNCATE materialized view directly; must truncate base table instead"
invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.cassandra.config.CFMetaData
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.keyspace:()Ljava/lang/String;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.columnFamily:()Ljava/lang/String;
invokestatic org.apache.cassandra.service.StorageProxy.truncateBlocking:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 4: goto 7
5: StackMap locals: org.apache.cassandra.cql3.statements.TruncateStatement org.apache.cassandra.service.QueryState org.apache.cassandra.cql3.QueryOptions long
StackMap stack: java.lang.Exception
astore 5
start local 5 6: new org.apache.cassandra.exceptions.TruncateException
dup
aload 5
invokespecial org.apache.cassandra.exceptions.TruncateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 8 1 state Lorg/apache/cassandra/service/QueryState;
0 8 2 options Lorg/apache/cassandra/cql3/QueryOptions;
0 8 3 queryStartNanoTime J
1 4 5 metaData Lorg/apache/cassandra/config/CFMetaData;
6 7 5 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class org.apache.cassandra.exceptions.UnavailableException
0 4 5 Class java.util.concurrent.TimeoutException
Exceptions:
throws org.apache.cassandra.exceptions.InvalidRequestException, org.apache.cassandra.exceptions.TruncateException
MethodParameters:
Name Flags
state
options
queryStartNanoTime
public org.apache.cassandra.transport.messages.ResultMessage executeInternal(org.apache.cassandra.service.QueryState, org.apache.cassandra.cql3.QueryOptions);
descriptor: (Lorg/apache/cassandra/service/QueryState;Lorg/apache/cassandra/cql3/QueryOptions;)Lorg/apache/cassandra/transport/messages/ResultMessage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.keyspace:()Ljava/lang/String;
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
aload 0
invokevirtual org.apache.cassandra.cql3.statements.TruncateStatement.columnFamily:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/lang/String;)Lorg/apache/cassandra/db/ColumnFamilyStore;
astore 3
start local 3 1: aload 3
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.truncateBlocking:()V
end local 3 2: goto 5
3: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 4: new org.apache.cassandra.exceptions.TruncateException
dup
aload 3
invokespecial org.apache.cassandra.exceptions.TruncateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/cql3/statements/TruncateStatement;
0 6 1 state Lorg/apache/cassandra/service/QueryState;
0 6 2 options Lorg/apache/cassandra/cql3/QueryOptions;
1 2 3 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
4 5 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
state
options
}
SourceFile: "TruncateStatement.java"
InnerClasses:
public Prepared = org.apache.cassandra.cql3.statements.ParsedStatement$Prepared of org.apache.cassandra.cql3.statements.ParsedStatement