static final class SnapshotScannerHDFSAclController.SnapshotScannerHDFSAclStorage extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static byte[] |
HDFS_ACL_FAMILY
Add a new CF in HBase acl table to record if the HBase read permission is synchronized to
related hfiles.
|
private static byte[] |
HDFS_ACL_VALUE |
Constructor and Description |
---|
SnapshotScannerHDFSAclStorage() |
Modifier and Type | Method and Description |
---|---|
private static void |
addUserEntry(Table t,
String user,
byte[] entry) |
(package private) static void |
addUserGlobalHdfsAcl(Table aclTable,
String user) |
(package private) static void |
addUserNamespaceHdfsAcl(Table aclTable,
String user,
String namespace) |
(package private) static void |
addUserTableHdfsAcl(Connection connection,
Set<String> users,
TableName tableName) |
(package private) static void |
addUserTableHdfsAcl(Connection connection,
String user,
TableName tableName) |
(package private) static void |
addUserTableHdfsAcl(Table aclTable,
String user,
TableName tableName) |
private static void |
deleteEntry(Table aclTable,
byte[] entry) |
(package private) static void |
deleteNamespaceHdfsAcl(Connection connection,
String namespace) |
(package private) static void |
deleteTableHdfsAcl(Table aclTable,
TableName tableName) |
private static void |
deleteUserEntry(Table aclTable,
String user,
byte[] entry) |
(package private) static void |
deleteUserGlobalHdfsAcl(Table aclTable,
String user) |
(package private) static void |
deleteUserNamespaceHdfsAcl(Table aclTable,
String user,
String namespace) |
(package private) static void |
deleteUserTableHdfsAcl(Connection connection,
Set<String> users,
TableName tableName) |
(package private) static void |
deleteUserTableHdfsAcl(Table aclTable,
String user,
TableName tableName) |
private static Set<String> |
getEntryUsers(Table aclTable,
byte[] entry) |
(package private) static Set<String> |
getTableUsers(Table aclTable,
TableName tableName) |
(package private) static List<byte[]> |
getUserEntries(Table aclTable,
String userName) |
(package private) static Pair<Set<String>,Set<TableName>> |
getUserNamespaceAndTable(Table aclTable,
String userName) |
private static boolean |
hasUserEntry(Table aclTable,
String userName,
byte[] entry) |
(package private) static boolean |
hasUserGlobalHdfsAcl(Table aclTable,
String user) |
(package private) static boolean |
hasUserNamespaceHdfsAcl(Table aclTable,
String user,
String namespace) |
(package private) static boolean |
hasUserTableHdfsAcl(Table aclTable,
String user,
TableName tableName) |
static final byte[] HDFS_ACL_FAMILY
private static final byte[] HDFS_ACL_VALUE
SnapshotScannerHDFSAclStorage()
static void addUserGlobalHdfsAcl(Table aclTable, String user) throws IOException
IOException
static void addUserNamespaceHdfsAcl(Table aclTable, String user, String namespace) throws IOException
IOException
static void addUserTableHdfsAcl(Connection connection, Set<String> users, TableName tableName) throws IOException
IOException
static void addUserTableHdfsAcl(Connection connection, String user, TableName tableName) throws IOException
IOException
static void addUserTableHdfsAcl(Table aclTable, String user, TableName tableName) throws IOException
IOException
private static void addUserEntry(Table t, String user, byte[] entry) throws IOException
IOException
static void deleteUserGlobalHdfsAcl(Table aclTable, String user) throws IOException
IOException
static void deleteUserNamespaceHdfsAcl(Table aclTable, String user, String namespace) throws IOException
IOException
static void deleteUserTableHdfsAcl(Table aclTable, String user, TableName tableName) throws IOException
IOException
static void deleteUserTableHdfsAcl(Connection connection, Set<String> users, TableName tableName) throws IOException
IOException
private static void deleteUserEntry(Table aclTable, String user, byte[] entry) throws IOException
IOException
static void deleteNamespaceHdfsAcl(Connection connection, String namespace) throws IOException
IOException
static void deleteTableHdfsAcl(Table aclTable, TableName tableName) throws IOException
IOException
private static void deleteEntry(Table aclTable, byte[] entry) throws IOException
IOException
static Set<String> getTableUsers(Table aclTable, TableName tableName) throws IOException
IOException
private static Set<String> getEntryUsers(Table aclTable, byte[] entry) throws IOException
IOException
static Pair<Set<String>,Set<TableName>> getUserNamespaceAndTable(Table aclTable, String userName) throws IOException
IOException
static List<byte[]> getUserEntries(Table aclTable, String userName) throws IOException
IOException
static boolean hasUserGlobalHdfsAcl(Table aclTable, String user) throws IOException
IOException
static boolean hasUserNamespaceHdfsAcl(Table aclTable, String user, String namespace) throws IOException
IOException
static boolean hasUserTableHdfsAcl(Table aclTable, String user, TableName tableName) throws IOException
IOException
private static boolean hasUserEntry(Table aclTable, String userName, byte[] entry) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.