@Test public void testFilterListOfDatabases() { final String USER1 = "user1"; SentryMetaStoreFilterHook filterHook = new SentryMetaStoreFilterHook(null, authzConf, getMockBinding(USER1)); restrictDatabaseNamesOnBinding(USER1, Arrays.asList("db1", "db3")); assertThat(filterHook.filterDatabases(Arrays.asList("db1", "db2", "db3"))).containsExactly("db2"); }
@Override public List<String> filterDatabases(List<String> dbList) { return filterDb(dbList); }
SentryMetaStoreFilterHook implements MetaStoreFilterHook { @Override public List<String> filterDatabases(List<String> dbList) { return filterDb(dbList); } }
SentryMetaStoreFilterHook implements MetaStoreFilterHook { @Override public List<String> filterDatabases(List<String> dbList) { return filterDb(dbList); } SentryMetaStoreFilterHook(HiveConf hiveConf);  SentryMetaStoreFilterHook(HiveConf hiveConf, HiveAuthzConf authzConf, HiveAuthzBindingFactory authzBindingFactory); }
SentryMetaStoreFilterHook implements MetaStoreFilterHook { @Override public List<String> filterDatabases(List<String> dbList) { return filterDb(dbList); } SentryMetaStoreFilterHook(HiveConf hiveConf);  SentryMetaStoreFilterHook(HiveConf hiveConf, HiveAuthzConf authzConf, HiveAuthzBindingFactory authzBindingFactory); @Override List<String> filterDatabases(List<String> dbList); @Override Database filterDatabase(Database dataBase); @Override List<String> filterTableNames(String dbName, List<String> tableList); @Override Table filterTable(Table table); @Override List<Table> filterTables(List<Table> tableList); @Override List<Partition> filterPartitions(List<Partition> partitionList); @Override List<PartitionSpec> filterPartitionSpecs(
      List<PartitionSpec> partitionSpecList); @Override Partition filterPartition(Partition partition); @Override List<String> filterPartitionNames(String dbName, String tblName,
      List<String> partitionNames); @Override Index filterIndex(Index index); @Override List<String> filterIndexNames(String dbName, String tblName,
      List<String> indexList); @Override List<Index> filterIndexes(List<Index> indexeList); }
SentryMetaStoreFilterHook implements MetaStoreFilterHook { @Override public List<String> filterDatabases(List<String> dbList) { return filterDb(dbList); } SentryMetaStoreFilterHook(HiveConf hiveConf);  SentryMetaStoreFilterHook(HiveConf hiveConf, HiveAuthzConf authzConf, HiveAuthzBindingFactory authzBindingFactory); @Override List<String> filterDatabases(List<String> dbList); @Override Database filterDatabase(Database dataBase); @Override List<String> filterTableNames(String dbName, List<String> tableList); @Override Table filterTable(Table table); @Override List<Table> filterTables(List<Table> tableList); @Override List<Partition> filterPartitions(List<Partition> partitionList); @Override List<PartitionSpec> filterPartitionSpecs(
      List<PartitionSpec> partitionSpecList); @Override Partition filterPartition(Partition partition); @Override List<String> filterPartitionNames(String dbName, String tblName,
      List<String> partitionNames); @Override Index filterIndex(Index index); @Override List<String> filterIndexNames(String dbName, String tblName,
      List<String> indexList); @Override List<Index> filterIndexes(List<Index> indexeList);  }