public class DefaultMetaStoreFilterHookImpl extends Object implements MetaStoreFilterHook
| Constructor and Description |
|---|
DefaultMetaStoreFilterHookImpl(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
Database |
filterDatabase(Database dataBase)
filter to given database object if applicable
|
List<String> |
filterDatabases(List<String> dbList)
Filter given list of databases
|
List<String> |
filterDataConnectors(List<String> dcList)
Filter given list of data connectors
|
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<TableMeta> |
filterTableMetas(String catName,
String dbName,
List<TableMeta> tableMetas)
Deprecated.
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterCatalog, filterCatalogspublic DefaultMetaStoreFilterHookImpl(org.apache.hadoop.conf.Configuration conf)
public List<String> filterDatabases(List<String> dbList) throws MetaException
MetaStoreFilterHookfilterDatabases in interface MetaStoreFilterHookMetaExceptionpublic Database filterDatabase(Database dataBase) throws NoSuchObjectException
MetaStoreFilterHookfilterDatabase in interface MetaStoreFilterHookNoSuchObjectExceptionpublic List<String> filterTableNames(String catName, String dbName, List<String> tableList) throws MetaException
MetaStoreFilterHookfilterTableNames in interface MetaStoreFilterHookcatName - catalog namedbName - database nametableList - list of table returned by the metastoreMetaException@Deprecated public List<TableMeta> filterTableMetas(String catName, String dbName, List<TableMeta> tableMetas) throws MetaException
MetaStoreFilterHookfilterTableMetas in interface MetaStoreFilterHookcatName - catalog namedbName - database nametableMetas - list of table returned by the metastoreMetaExceptionpublic List<TableMeta> filterTableMetas(List<TableMeta> tableMetas) throws MetaException
MetaStoreFilterHookfilterTableMetas in interface MetaStoreFilterHooktableMetas - list of TableMetas to filterMetaException - something went wrongpublic Table filterTable(Table table) throws NoSuchObjectException
MetaStoreFilterHookfilterTable in interface MetaStoreFilterHookNoSuchObjectExceptionpublic List<Table> filterTables(List<Table> tableList) throws MetaException
MetaStoreFilterHookfilterTables in interface MetaStoreFilterHookMetaExceptionpublic List<Partition> filterPartitions(List<Partition> partitionList) throws MetaException
MetaStoreFilterHookfilterPartitions in interface MetaStoreFilterHookMetaExceptionpublic List<PartitionSpec> filterPartitionSpecs(List<PartitionSpec> partitionSpecList) throws MetaException
MetaStoreFilterHookfilterPartitionSpecs in interface MetaStoreFilterHookMetaExceptionpublic Partition filterPartition(Partition partition) throws NoSuchObjectException
MetaStoreFilterHookfilterPartition in interface MetaStoreFilterHookNoSuchObjectExceptionpublic List<String> filterPartitionNames(String catName, String dbName, String tblName, List<String> partitionNames) throws MetaException
MetaStoreFilterHookfilterPartitionNames in interface MetaStoreFilterHookcatName - catalog name.dbName - database name.tblName - table name.partitionNames - list of partition names.MetaExceptionpublic List<String> filterDataConnectors(List<String> dcList) throws MetaException
MetaStoreFilterHookfilterDataConnectors in interface MetaStoreFilterHookMetaExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.