public enum NamespacePermission extends Enum<NamespacePermission>
Enum Constant and Description |
---|
ALTER_NAMESPACE |
ALTER_TABLE |
BULK_IMPORT |
CREATE_TABLE |
DROP_NAMESPACE |
DROP_TABLE |
GRANT |
READ |
WRITE |
Modifier and Type | Method and Description |
---|---|
static NamespacePermission |
getEquivalent(SystemPermission permission) |
static NamespacePermission |
getEquivalent(TablePermission permission) |
byte |
getId()
Gets the byte ID of this permission.
|
static NamespacePermission |
getPermissionById(byte id)
Gets the permission matching the given byte ID.
|
static List<String> |
printableValues()
Returns a list of printable permission values.
|
static NamespacePermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NamespacePermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NamespacePermission READ
public static final NamespacePermission WRITE
public static final NamespacePermission ALTER_NAMESPACE
public static final NamespacePermission GRANT
public static final NamespacePermission ALTER_TABLE
public static final NamespacePermission CREATE_TABLE
public static final NamespacePermission DROP_TABLE
public static final NamespacePermission BULK_IMPORT
public static final NamespacePermission DROP_NAMESPACE
public static NamespacePermission[] values()
for (NamespacePermission c : NamespacePermission.values()) System.out.println(c);
public static NamespacePermission 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 NamespacePermission getPermissionById(byte id)
id
- byte IDIndexOutOfBoundsException
- if the byte ID is invalidpublic static NamespacePermission getEquivalent(TablePermission permission)
public static NamespacePermission getEquivalent(SystemPermission permission)
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.