Package com.dremio.nessie.hms
Interface NessieStore
-
- All Superinterfaces:
org.apache.hadoop.conf.Configurable,TransactionHandler
- All Known Implementing Classes:
NessieStoreImpl
public interface NessieStore extends org.apache.hadoop.conf.Configurable, TransactionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringNESSIE_WHITELIST_DBS_OPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddPartition(org.apache.hadoop.hive.metastore.api.Partition part)booleanaddPartitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.api.Partition> parts)booleanaddPartitions(String dbName, String tblName, org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec, boolean ifNotExists)booleanalterDatabase(String dbname, org.apache.hadoop.hive.metastore.api.Database db)voidalterPartition(String db_name, String tbl_name, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition new_part)voidalterPartitions(String db_name, String tbl_name, List<List<String>> part_vals_list, List<org.apache.hadoop.hive.metastore.api.Partition> new_parts)voidalterTable(String dbname, String name, org.apache.hadoop.hive.metastore.api.Table newTable)voidcreateDatabase(org.apache.hadoop.hive.metastore.api.Database db)voidcreateTable(org.apache.hadoop.hive.metastore.api.Table tbl)booleandoesPartitionExist(String dbName, String tableName, List<String> part_vals)booleandropDatabase(String dbname)booleandropPartition(String dbName, String tableName, List<String> part_vals)voiddropPartitions(String dbName, String tblName, List<String> partNames)booleandropTable(String dbName, String tableName)List<String>getAllDatabases()List<String>getAllTables(String dbName)org.apache.hadoop.hive.metastore.api.DatabasegetDatabase(String name)intgetDatabaseCount()List<String>getDatabases(String pattern)StringgetMetaStoreSchemaVersion()intgetNumPartitionsByExpr(String dbName, String tblName, byte[] expr)intgetNumPartitionsByFilter(String dbName, String tblName, String filter)org.apache.hadoop.hive.metastore.api.PartitiongetPartition(String dbName, String tableName, List<String> part_vals)Map<String,List<String>>getPartitionColsWithStats(String dbName, String tableName)intgetPartitionCount()List<org.apache.hadoop.hive.metastore.api.Partition>getPartitions(String dbName, String tableName, int max)booleangetPartitionsByExpr(String dbName, String tblName, byte[] expr, String defaultPartitionName, short maxParts, List<org.apache.hadoop.hive.metastore.api.Partition> result)List<org.apache.hadoop.hive.metastore.api.Partition>getPartitionsByFilter(String dbName, String tblName, String filter, short maxParts)List<org.apache.hadoop.hive.metastore.api.Partition>getPartitionsByNames(String dbName, String tblName, List<String> partNames)List<org.apache.hadoop.hive.metastore.api.Partition>getPartitionsWithAuth(String dbName, String tblName, short maxParts, String userName, List<String> groupNames)org.apache.hadoop.hive.metastore.api.PartitiongetPartitionWithAuth(String dbName, String tblName, List<String> partVals, String user_name, List<String> group_names)org.apache.hadoop.hive.metastore.api.TablegetTable(String dbName, String tableName)intgetTableCount()List<org.apache.hadoop.hive.metastore.api.TableMeta>getTableMeta(String dbNames, String tableNames, List<String> tableTypes)List<org.apache.hadoop.hive.metastore.api.Table>getTableObjectsByName(String dbname, List<String> tableNames)List<String>getTables(String dbName, String pattern)List<String>getTables(String dbName, String pattern, org.apache.hadoop.hive.metastore.TableType tableType)List<String>listPartitionNames(String db_name, String tbl_name, short max_parts)List<String>listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts)List<org.apache.hadoop.hive.metastore.api.Partition>listPartitionsPsWithAuth(String db_name, String tbl_name, List<String> part_vals, short max_parts, String userName, List<String> groupNames)org.apache.hadoop.hive.metastore.api.PartitionValuesResponselistPartitionValues(String db_name, String tbl_name, List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<org.apache.hadoop.hive.metastore.api.FieldSchema> order, long maxParts)List<String>listTableNamesByFilter(String dbName, String filter, short max_tables)-
Methods inherited from interface com.dremio.nessie.hms.TransactionHandler
commitTransaction, isActiveTransaction, openTransaction, rollbackTransaction, shutdown
-
-
-
-
Field Detail
-
NESSIE_WHITELIST_DBS_OPTION
static final String NESSIE_WHITELIST_DBS_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPartitions
List<org.apache.hadoop.hive.metastore.api.Partition> getPartitions(String dbName, String tableName, int max) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
alterPartitions
void alterPartitions(String db_name, String tbl_name, List<List<String>> part_vals_list, List<org.apache.hadoop.hive.metastore.api.Partition> new_parts) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
listPartitionsPsWithAuth
List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsPsWithAuth(String db_name, String tbl_name, List<String> part_vals, short max_parts, String userName, List<String> groupNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
alterPartition
void alterPartition(String db_name, String tbl_name, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition new_part) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
getPartitionsByExpr
boolean getPartitionsByExpr(String dbName, String tblName, byte[] expr, String defaultPartitionName, short maxParts, List<org.apache.hadoop.hive.metastore.api.Partition> result) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
getAllTables
List<String> getAllTables(String dbName) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
dropTable
boolean dropTable(String dbName, String tableName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.InvalidInputException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidInputException
-
addPartitions
boolean addPartitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.api.Partition> parts) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
dropDatabase
boolean dropDatabase(String dbname) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
alterDatabase
boolean alterDatabase(String dbname, org.apache.hadoop.hive.metastore.api.Database db) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
getTable
org.apache.hadoop.hive.metastore.api.Table getTable(String dbName, String tableName) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
addPartitions
boolean addPartitions(String dbName, String tblName, org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec, boolean ifNotExists) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
getPartitionsWithAuth
List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsWithAuth(String dbName, String tblName, short maxParts, String userName, List<String> groupNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectException
-
createTable
void createTable(org.apache.hadoop.hive.metastore.api.Table tbl) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
createDatabase
void createDatabase(org.apache.hadoop.hive.metastore.api.Database db) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
addPartition
boolean addPartition(org.apache.hadoop.hive.metastore.api.Partition part) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
getDatabaseCount
int getDatabaseCount() throws org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getTableCount
int getTableCount() throws org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getPartitionCount
int getPartitionCount() throws org.apache.hadoop.hive.metastore.api.MetaException- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getMetaStoreSchemaVersion
String getMetaStoreSchemaVersion() throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
dropPartition
boolean dropPartition(String dbName, String tableName, List<String> part_vals) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.InvalidInputException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidInputException
-
getTableMeta
List<org.apache.hadoop.hive.metastore.api.TableMeta> getTableMeta(String dbNames, String tableNames, List<String> tableTypes) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getAllDatabases
List<String> getAllDatabases() throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
listTableNamesByFilter
List<String> listTableNamesByFilter(String dbName, String filter, short max_tables) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.UnknownDBException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBException
-
alterTable
void alterTable(String dbname, String name, org.apache.hadoop.hive.metastore.api.Table newTable) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaException
-
getTableObjectsByName
List<org.apache.hadoop.hive.metastore.api.Table> getTableObjectsByName(String dbname, List<String> tableNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.UnknownDBException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBException
-
getPartitionsByNames
List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames(String dbName, String tblName, List<String> partNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
doesPartitionExist
boolean doesPartitionExist(String dbName, String tableName, List<String> part_vals) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
getPartitionsByFilter
List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByFilter(String dbName, String tblName, String filter, short maxParts) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
getTables
List<String> getTables(String dbName, String pattern) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getPartitionWithAuth
org.apache.hadoop.hive.metastore.api.Partition getPartitionWithAuth(String dbName, String tblName, List<String> partVals, String user_name, List<String> group_names) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectException
-
getDatabase
org.apache.hadoop.hive.metastore.api.Database getDatabase(String name) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
getDatabases
List<String> getDatabases(String pattern) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
dropPartitions
void dropPartitions(String dbName, String tblName, List<String> partNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
getPartition
org.apache.hadoop.hive.metastore.api.Partition getPartition(String dbName, String tableName, List<String> part_vals) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
listPartitionNames
List<String> listPartitionNames(String db_name, String tbl_name, short max_parts) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getNumPartitionsByFilter
int getNumPartitionsByFilter(String dbName, String tblName, String filter) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
getTables
List<String> getTables(String dbName, String pattern, org.apache.hadoop.hive.metastore.TableType tableType) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
listPartitionValues
org.apache.hadoop.hive.metastore.api.PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<org.apache.hadoop.hive.metastore.api.FieldSchema> order, long maxParts) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getNumPartitionsByExpr
int getNumPartitionsByExpr(String dbName, String tblName, byte[] expr) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
listPartitionNamesByFilter
List<String> listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts) throws org.apache.hadoop.hive.metastore.api.MetaException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getPartitionColsWithStats
Map<String,List<String>> getPartitionColsWithStats(String dbName, String tableName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
- Throws:
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectException
-
-