public class DefaultMetaStoreFilterHookImpl extends Object implements MetaStoreFilterHook
Constructor and Description |
---|
DefaultMetaStoreFilterHookImpl(HiveConf 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
|
Index |
filterIndex(Index index) |
List<Index> |
filterIndexes(List<Index> indexeList)
Filter given list of index objects
|
List<String> |
filterIndexNames(String dbName,
String tblName,
List<String> indexList)
Filter given list of index names
|
Partition |
filterPartition(Partition partition)
filter to given partition object if applicable
|
List<String> |
filterPartitionNames(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<String> |
filterTableNames(String dbName,
List<String> tableList)
Filter given list of tables
|
List<Table> |
filterTables(List<Table> tableList)
Filter given list of tables
|
public DefaultMetaStoreFilterHookImpl(HiveConf 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 dbName, List<String> tableList) throws MetaException
MetaStoreFilterHook
filterTableNames
in interface MetaStoreFilterHook
MetaException
public 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 dbName, String tblName, List<String> partitionNames) throws MetaException
MetaStoreFilterHook
filterPartitionNames
in interface MetaStoreFilterHook
MetaException
public Index filterIndex(Index index) throws NoSuchObjectException
filterIndex
in interface MetaStoreFilterHook
NoSuchObjectException
public List<String> filterIndexNames(String dbName, String tblName, List<String> indexList) throws MetaException
MetaStoreFilterHook
filterIndexNames
in interface MetaStoreFilterHook
MetaException
public List<Index> filterIndexes(List<Index> indexeList) throws MetaException
MetaStoreFilterHook
filterIndexes
in interface MetaStoreFilterHook
MetaException
Copyright © 2017 The Apache Software Foundation. All rights reserved.