public class org.apache.cassandra.cql3.statements.ListUsersStatement extends org.apache.cassandra.cql3.statements.ListRolesStatement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.ListUsersStatement
super_class: org.apache.cassandra.cql3.statements.ListRolesStatement
{
private static final java.lang.String KS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "system_auth"
private static final java.lang.String CF;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "users"
private static final java.util.List<org.apache.cassandra.cql3.ColumnSpecification> metadata;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/apache/cassandra/cql3/ColumnSpecification;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=0, args_size=0
0: new org.apache.cassandra.cql3.ColumnSpecification
dup
ldc "system_auth"
ldc "users"
new org.apache.cassandra.cql3.ColumnIdentifier
dup
ldc "name"
iconst_1
invokespecial org.apache.cassandra.cql3.ColumnIdentifier.<init>:(Ljava/lang/String;Z)V
getstatic org.apache.cassandra.db.marshal.UTF8Type.instance:Lorg/apache/cassandra/db/marshal/UTF8Type;
invokespecial org.apache.cassandra.cql3.ColumnSpecification.<init>:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/db/marshal/AbstractType;)V
1: new org.apache.cassandra.cql3.ColumnSpecification
dup
ldc "system_auth"
ldc "users"
new org.apache.cassandra.cql3.ColumnIdentifier
dup
ldc "super"
iconst_1
invokespecial org.apache.cassandra.cql3.ColumnIdentifier.<init>:(Ljava/lang/String;Z)V
getstatic org.apache.cassandra.db.marshal.BooleanType.instance:Lorg/apache/cassandra/db/marshal/BooleanType;
invokespecial org.apache.cassandra.cql3.ColumnSpecification.<init>:(Ljava/lang/String;Ljava/lang/String;Lorg/apache/cassandra/cql3/ColumnIdentifier;Lorg/apache/cassandra/db/marshal/AbstractType;)V
2: invokestatic com.google.common.collect.ImmutableList.of:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
3: putstatic org.apache.cassandra.cql3.statements.ListUsersStatement.metadata:Ljava/util/List;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.cassandra.cql3.statements.ListRolesStatement.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cql3/statements/ListUsersStatement;
protected org.apache.cassandra.transport.messages.ResultMessage formatResults(java.util.List<org.apache.cassandra.auth.RoleResource>);
descriptor: (Ljava/util/List;)Lorg/apache/cassandra/transport/messages/ResultMessage;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.cql3.ResultSet
dup
getstatic org.apache.cassandra.cql3.statements.ListUsersStatement.metadata:Ljava/util/List;
invokespecial org.apache.cassandra.cql3.ResultSet.<init>:(Ljava/util/List;)V
astore 2
start local 2 1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
astore 3
start local 3 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: org.apache.cassandra.cql3.statements.ListUsersStatement java.util.List org.apache.cassandra.cql3.ResultSet org.apache.cassandra.auth.IRoleManager top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.auth.RoleResource
astore 4
start local 4 4: aload 3
aload 4
invokeinterface org.apache.cassandra.auth.IRoleManager.canLogin:(Lorg/apache/cassandra/auth/RoleResource;)Z
ifne 6
5: goto 8
6: StackMap locals: org.apache.cassandra.cql3.statements.ListUsersStatement java.util.List org.apache.cassandra.cql3.ResultSet org.apache.cassandra.auth.IRoleManager org.apache.cassandra.auth.RoleResource java.util.Iterator
StackMap stack:
aload 2
getstatic org.apache.cassandra.db.marshal.UTF8Type.instance:Lorg/apache/cassandra/db/marshal/UTF8Type;
aload 4
invokevirtual org.apache.cassandra.auth.RoleResource.getRoleName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.marshal.UTF8Type.decompose:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.cql3.ResultSet.addColumnValue:(Ljava/nio/ByteBuffer;)V
7: aload 2
getstatic org.apache.cassandra.db.marshal.BooleanType.instance:Lorg/apache/cassandra/db/marshal/BooleanType;
aload 4
invokestatic org.apache.cassandra.auth.Roles.hasSuperuserStatus:(Lorg/apache/cassandra/auth/RoleResource;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual org.apache.cassandra.db.marshal.BooleanType.decompose:(Ljava/lang/Object;)Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.cql3.ResultSet.addColumnValue:(Ljava/nio/ByteBuffer;)V
end local 4 8: StackMap locals: org.apache.cassandra.cql3.statements.ListUsersStatement java.util.List org.apache.cassandra.cql3.ResultSet org.apache.cassandra.auth.IRoleManager top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: new org.apache.cassandra.transport.messages.ResultMessage$Rows
dup
aload 2
invokespecial org.apache.cassandra.transport.messages.ResultMessage$Rows.<init>:(Lorg/apache/cassandra/cql3/ResultSet;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/cql3/statements/ListUsersStatement;
0 10 1 sortedRoles Ljava/util/List<Lorg/apache/cassandra/auth/RoleResource;>;
1 10 2 result Lorg/apache/cassandra/cql3/ResultSet;
2 10 3 roleManager Lorg/apache/cassandra/auth/IRoleManager;
4 8 4 role Lorg/apache/cassandra/auth/RoleResource;
Signature: (Ljava/util/List<Lorg/apache/cassandra/auth/RoleResource;>;)Lorg/apache/cassandra/transport/messages/ResultMessage;
MethodParameters:
Name Flags
sortedRoles
}
SourceFile: "ListUsersStatement.java"
InnerClasses:
public Rows = org.apache.cassandra.transport.messages.ResultMessage$Rows of org.apache.cassandra.transport.messages.ResultMessage