@InterfaceAudience.LimitedPrivate(value="Apache Sentry (Incubating)")
@InterfaceStability.Evolving
public interface MetaStoreFilterHook
Modifier and Type | Method and Description |
---|---|
default Catalog |
filterCatalog(Catalog catalog)
Filter a catalog object.
|
default List<String> |
filterCatalogs(List<String> catalogs)
Filter a list of catalog names.
|
Database |
filterDatabase(Database dataBase)
filter to given database object if applicable
|
List<String> |
filterDatabases(List<String> dbList)
Filter given list of databases
|
Partition |
filterPartition(Partition partition)
filter to given partition object if applicable
|
List<String> |
filterPartitionNames(String catName,
String dbName,
String tblName,
List<String> partitionNames)
Filter given list of partition names
|
List<Partition> |
filterPartitions(List<Partition> partitionList)
Filter given list of partitions
|
List<PartitionSpec> |
filterPartitionSpecs(List<PartitionSpec> partitionSpecList)
Filter given list of partition specs
|
Table |
filterTable(Table table)
filter to given table object if applicable
|
List<TableMeta> |
filterTableMetas(List<TableMeta> tableMetas)
Filter a list of TableMeta objects.
|
List<String> |
filterTableNames(String catName,
String dbName,
List<String> tableList)
Filter given list of tables
|
List<Table> |
filterTables(List<Table> tableList)
Filter given list of tables
|
default Catalog filterCatalog(Catalog catalog) throws MetaException
catalog
- catalog to filterMetaException
- something bad happeneddefault List<String> filterCatalogs(List<String> catalogs) throws MetaException
catalogs
- list of catalog names.MetaException
- something bad happened.List<String> filterDatabases(List<String> dbList) throws MetaException
dbList
- MetaException
Database filterDatabase(Database dataBase) throws MetaException, NoSuchObjectException
dataBase
- NoSuchObjectException
MetaException
List<String> filterTableNames(String catName, String dbName, List<String> tableList) throws MetaException
catName
- catalog namedbName
- database nametableList
- list of table returned by the metastoreMetaException
List<TableMeta> filterTableMetas(List<TableMeta> tableMetas) throws MetaException
tableMetas
- list of TableMetas to filterMetaException
- something went wrongTable filterTable(Table table) throws MetaException, NoSuchObjectException
table
- NoSuchObjectException
MetaException
List<Table> filterTables(List<Table> tableList) throws MetaException
tableList
- MetaException
List<Partition> filterPartitions(List<Partition> partitionList) throws MetaException
partitionList
- MetaException
List<PartitionSpec> filterPartitionSpecs(List<PartitionSpec> partitionSpecList) throws MetaException
partitionSpecList
- MetaException
Partition filterPartition(Partition partition) throws MetaException, NoSuchObjectException
partition
- NoSuchObjectException
MetaException
List<String> filterPartitionNames(String catName, String dbName, String tblName, List<String> partitionNames) throws MetaException
catName
- catalog name.dbName
- database name.tblName
- table name.partitionNames
- list of partition names.MetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.