org.apache.hadoop.hive.metastore
Interface RawStore

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

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


Method Summary
 boolean addPartition(Partition 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.
 boolean createDatabase(Database db)
           
 boolean createDatabase(String name)
           
 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)
           
 Database getDatabase(String name)
           
 List<String> getDatabases()
           
 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

boolean createDatabase(Database db)
                       throws MetaException
Throws:
MetaException

createDatabase

boolean createDatabase(String name)
                       throws MetaException
Throws:
MetaException

getDatabase

Database getDatabase(String name)
                     throws NoSuchObjectException
Throws:
NoSuchObjectException

dropDatabase

boolean dropDatabase(String dbname)

getDatabases

List<String> getDatabases()
                          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
Throws:
MetaException

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

listPartitionNames

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


Copyright © 2009 The Apache Software Foundation