org.apache.hadoop.hive.metastore
Interface RawStore

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
ObjectStore

public interface RawStore
extends org.apache.hadoop.conf.Configurable


Method Summary
 boolean addPartition(Partition part)
           
 void alterPartition(String db_name, String tbl_name, Partition new_part)
           
 void alterTable(String dbname, String name, Table newTable)
           
 boolean commitTransaction()
          if this is the commit of the first open call then an actual commit is called.
 void createDatabase(Database db)
           
 void createTable(Table tbl)
           
 boolean createType(Type type)
           
 boolean dropDatabase(String dbname)
           
 boolean dropPartition(String dbName, String tableName, List<String> part_vals)
           
 boolean dropTable(String dbName, String tableName)
           
 boolean dropType(String typeName)
           
 List<String> getAllDatabases()
           
 List<String> getAllTables(String dbName)
           
 Database getDatabase(String name)
           
 List<String> getDatabases(String pattern)
           
 Partition getPartition(String dbName, String tableName, List<String> part_vals)
           
 List<Partition> getPartitions(String dbName, String tableName, int max)
           
 Table getTable(String dbName, String tableName)
           
 List<String> getTables(String dbName, String pattern)
           
 Type getType(String typeName)
           
 List<String> listPartitionNames(String db_name, String tbl_name, short max_parts)
           
 boolean openTransaction()
          Opens a new one or the one already created Every call of this function must have corresponding commit or rollback function call
 void rollbackTransaction()
          Rolls back the current transaction if it is active
 void shutdown()
           
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

shutdown

void shutdown()

openTransaction

boolean openTransaction()
Opens a new one or the one already created Every call of this function must have corresponding commit or rollback function call

Returns:
an active transaction

commitTransaction

boolean commitTransaction()
if this is the commit of the first open call then an actual commit is called.

Returns:
true or false

rollbackTransaction

void rollbackTransaction()
Rolls back the current transaction if it is active


createDatabase

void createDatabase(Database db)
                    throws InvalidObjectException,
                           MetaException
Throws:
InvalidObjectException
MetaException

getDatabase

Database getDatabase(String name)
                     throws NoSuchObjectException
Throws:
NoSuchObjectException

dropDatabase

boolean dropDatabase(String dbname)
                     throws NoSuchObjectException,
                            MetaException
Throws:
NoSuchObjectException
MetaException

getDatabases

List<String> getDatabases(String pattern)
                          throws MetaException
Throws:
MetaException

getAllDatabases

List<String> getAllDatabases()
                             throws MetaException
Throws:
MetaException

createType

boolean createType(Type type)

getType

Type getType(String typeName)

dropType

boolean dropType(String typeName)

createTable

void createTable(Table tbl)
                 throws InvalidObjectException,
                        MetaException
Throws:
InvalidObjectException
MetaException

dropTable

boolean dropTable(String dbName,
                  String tableName)
                  throws MetaException
Throws:
MetaException

getTable

Table getTable(String dbName,
               String tableName)
               throws MetaException
Throws:
MetaException

addPartition

boolean addPartition(Partition part)
                     throws InvalidObjectException,
                            MetaException
Throws:
InvalidObjectException
MetaException

getPartition

Partition getPartition(String dbName,
                       String tableName,
                       List<String> part_vals)
                       throws MetaException,
                              NoSuchObjectException
Throws:
MetaException
NoSuchObjectException

dropPartition

boolean dropPartition(String dbName,
                      String tableName,
                      List<String> part_vals)
                      throws MetaException
Throws:
MetaException

getPartitions

List<Partition> getPartitions(String dbName,
                              String tableName,
                              int max)
                              throws MetaException
Throws:
MetaException

alterTable

void alterTable(String dbname,
                String name,
                Table newTable)
                throws InvalidObjectException,
                       MetaException
Throws:
InvalidObjectException
MetaException

getTables

List<String> getTables(String dbName,
                       String pattern)
                       throws MetaException
Throws:
MetaException

getAllTables

List<String> getAllTables(String dbName)
                          throws MetaException
Throws:
MetaException

listPartitionNames

List<String> listPartitionNames(String db_name,
                                String tbl_name,
                                short max_parts)
                                throws MetaException
Throws:
MetaException

alterPartition

void alterPartition(String db_name,
                    String tbl_name,
                    Partition new_part)
                    throws InvalidObjectException,
                           MetaException
Throws:
InvalidObjectException
MetaException


Copyright © 2010 The Apache Software Foundation