public enum SystemPermission extends Enum<SystemPermission>
Enum Constant and Description |
---|
ALTER_NAMESPACE |
ALTER_TABLE |
ALTER_USER |
CREATE_NAMESPACE |
CREATE_TABLE |
CREATE_USER |
DROP_NAMESPACE |
DROP_TABLE |
DROP_USER |
GRANT |
OBTAIN_DELEGATION_TOKEN |
SYSTEM |
Modifier and Type | Method and Description |
---|---|
byte |
getId()
Gets the byte ID of this permission.
|
static SystemPermission |
getPermissionById(byte id)
Gets the permission matching the given byte ID.
|
static List<String> |
printableValues()
Returns a list of printable permission values.
|
static SystemPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SystemPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SystemPermission GRANT
public static final SystemPermission CREATE_TABLE
public static final SystemPermission DROP_TABLE
public static final SystemPermission ALTER_TABLE
public static final SystemPermission CREATE_USER
public static final SystemPermission DROP_USER
public static final SystemPermission ALTER_USER
public static final SystemPermission SYSTEM
public static final SystemPermission CREATE_NAMESPACE
public static final SystemPermission DROP_NAMESPACE
public static final SystemPermission ALTER_NAMESPACE
public static final SystemPermission OBTAIN_DELEGATION_TOKEN
public static SystemPermission[] values()
for (SystemPermission c : SystemPermission.values()) System.out.println(c);
public static SystemPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getId()
public static List<String> printableValues()
public static SystemPermission getPermissionById(byte id)
id
- byte IDIndexOutOfBoundsException
- if the byte ID is invalidCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.