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
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filterCatalog, filterCatalogs
public DefaultMetaStoreFilterHookImpl(org.apache.hadoop.conf.Configuration conf)
public List<String> filterDatabases(List<String> dbList) throws MetaException
MetaStoreFilterHook
filterDatabases
in interface MetaStoreFilterHook
MetaException
public Database filterDatabase(Database dataBase) throws NoSuchObjectException
MetaStoreFilterHook
filterDatabase
in interface MetaStoreFilterHook
NoSuchObjectException
public List<String> filterTableNames(String catName, String dbName, List<String> tableList) throws MetaException
MetaStoreFilterHook
filterTableNames
in interface MetaStoreFilterHook
catName
- catalog namedbName
- database nametableList
- list of table returned by the metastoreMetaException
public List<TableMeta> filterTableMetas(List<TableMeta> tableMetas) throws MetaException
MetaStoreFilterHook
filterTableMetas
in interface MetaStoreFilterHook
tableMetas
- list of TableMetas to filterMetaException
- something went wrongpublic Table filterTable(Table table) throws NoSuchObjectException
MetaStoreFilterHook
filterTable
in interface MetaStoreFilterHook
NoSuchObjectException
public List<Table> filterTables(List<Table> tableList) throws MetaException
MetaStoreFilterHook
filterTables
in interface MetaStoreFilterHook
MetaException
public List<Partition> filterPartitions(List<Partition> partitionList) throws MetaException
MetaStoreFilterHook
filterPartitions
in interface MetaStoreFilterHook
MetaException
public List<PartitionSpec> filterPartitionSpecs(List<PartitionSpec> partitionSpecList) throws MetaException
MetaStoreFilterHook
filterPartitionSpecs
in interface MetaStoreFilterHook
MetaException
public Partition filterPartition(Partition partition) throws NoSuchObjectException
MetaStoreFilterHook
filterPartition
in interface MetaStoreFilterHook
NoSuchObjectException
public List<String> filterPartitionNames(String catName, String dbName, String tblName, List<String> partitionNames) throws MetaException
MetaStoreFilterHook
filterPartitionNames
in interface MetaStoreFilterHook
catName
- catalog name.dbName
- database name.tblName
- table name.partitionNames
- list of partition names.MetaException
Copyright © 2022 The Apache Software Foundation. All rights reserved.