org.apache.hadoop.hive.metastore.api
Interface ThriftHiveMetastore.Iface

All Superinterfaces:
com.facebook.fb303.FacebookService.Iface
All Known Subinterfaces:
HiveInterface, ThriftHive.Iface
All Known Implementing Classes:
HiveClient, HiveMetaStore.HMSHandler, HiveServer.HiveServerHandler, ThriftHive.Client, ThriftHiveMetastore.Client
Enclosing class:
ThriftHiveMetastore

public static interface ThriftHiveMetastore.Iface
extends com.facebook.fb303.FacebookService.Iface

This interface is live.


Method Summary
 Partition add_partition(Partition new_part)
           
 void alter_partition(String db_name, String tbl_name, Partition new_part)
           
 void alter_table(String dbname, String tbl_name, Table new_tbl)
           
 Partition append_partition_by_name(String db_name, String tbl_name, String part_name)
           
 Partition append_partition(String db_name, String tbl_name, List<String> part_vals)
           
 void create_database(Database database)
           
 void create_table(Table tbl)
           
 boolean create_type(Type type)
           
 void drop_database(String name, boolean deleteData)
           
 boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData)
           
 boolean drop_partition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData)
           
 void drop_table(String dbname, String name, boolean deleteData)
           
 boolean drop_type(String type)
           
 List<String> get_all_databases()
           
 List<String> get_all_tables(String db_name)
           
 String get_config_value(String name, String defaultValue)
           
 Database get_database(String name)
           
 List<String> get_databases(String pattern)
           
 List<FieldSchema> get_fields(String db_name, String table_name)
           
 Partition get_partition_by_name(String db_name, String tbl_name, String part_name)
           
 List<String> get_partition_names_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts)
           
 List<String> get_partition_names(String db_name, String tbl_name, short max_parts)
           
 Partition get_partition(String db_name, String tbl_name, List<String> part_vals)
           
 List<Partition> get_partitions_ps(String db_name, String tbl_name, List<String> part_vals, short max_parts)
           
 List<Partition> get_partitions(String db_name, String tbl_name, short max_parts)
           
 List<FieldSchema> get_schema(String db_name, String table_name)
           
 Table get_table(String dbname, String tbl_name)
           
 List<String> get_tables(String db_name, String pattern)
           
 Map<String,Type> get_type_all(String name)
           
 Type get_type(String name)
           
 Map<String,String> partition_name_to_spec(String part_name)
           
 List<String> partition_name_to_vals(String part_name)
           
 
Methods inherited from interface com.facebook.fb303.FacebookService.Iface
aliveSince, getCounter, getCounters, getCpuProfile, getName, getOption, getOptions, getStatus, getStatusDetails, getVersion, reinitialize, setOption, shutdown
 

Method Detail

create_database

void create_database(Database database)
                     throws AlreadyExistsException,
                            InvalidObjectException,
                            MetaException,
                            org.apache.thrift.TException
Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException

get_database

Database get_database(String name)
                      throws NoSuchObjectException,
                             MetaException,
                             org.apache.thrift.TException
Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException

drop_database

void drop_database(String name,
                   boolean deleteData)
                   throws NoSuchObjectException,
                          InvalidOperationException,
                          MetaException,
                          org.apache.thrift.TException
Throws:
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException

get_databases

List<String> get_databases(String pattern)
                           throws MetaException,
                                  org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_all_databases

List<String> get_all_databases()
                               throws MetaException,
                                      org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_type

Type get_type(String name)
              throws MetaException,
                     NoSuchObjectException,
                     org.apache.thrift.TException
Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException

create_type

boolean create_type(Type type)
                    throws AlreadyExistsException,
                           InvalidObjectException,
                           MetaException,
                           org.apache.thrift.TException
Throws:
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException

drop_type

boolean drop_type(String type)
                  throws MetaException,
                         NoSuchObjectException,
                         org.apache.thrift.TException
Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException

get_type_all

Map<String,Type> get_type_all(String name)
                              throws MetaException,
                                     org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_fields

List<FieldSchema> get_fields(String db_name,
                             String table_name)
                             throws MetaException,
                                    UnknownTableException,
                                    UnknownDBException,
                                    org.apache.thrift.TException
Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException

get_schema

List<FieldSchema> get_schema(String db_name,
                             String table_name)
                             throws MetaException,
                                    UnknownTableException,
                                    UnknownDBException,
                                    org.apache.thrift.TException
Throws:
MetaException
UnknownTableException
UnknownDBException
org.apache.thrift.TException

create_table

void create_table(Table tbl)
                  throws AlreadyExistsException,
                         InvalidObjectException,
                         MetaException,
                         NoSuchObjectException,
                         org.apache.thrift.TException
Throws:
AlreadyExistsException
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException

drop_table

void drop_table(String dbname,
                String name,
                boolean deleteData)
                throws NoSuchObjectException,
                       MetaException,
                       org.apache.thrift.TException
Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException

get_tables

List<String> get_tables(String db_name,
                        String pattern)
                        throws MetaException,
                               org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_all_tables

List<String> get_all_tables(String db_name)
                            throws MetaException,
                                   org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_table

Table get_table(String dbname,
                String tbl_name)
                throws MetaException,
                       NoSuchObjectException,
                       org.apache.thrift.TException
Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException

alter_table

void alter_table(String dbname,
                 String tbl_name,
                 Table new_tbl)
                 throws InvalidOperationException,
                        MetaException,
                        org.apache.thrift.TException
Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException

add_partition

Partition add_partition(Partition new_part)
                        throws InvalidObjectException,
                               AlreadyExistsException,
                               MetaException,
                               org.apache.thrift.TException
Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException

append_partition

Partition append_partition(String db_name,
                           String tbl_name,
                           List<String> part_vals)
                           throws InvalidObjectException,
                                  AlreadyExistsException,
                                  MetaException,
                                  org.apache.thrift.TException
Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException

append_partition_by_name

Partition append_partition_by_name(String db_name,
                                   String tbl_name,
                                   String part_name)
                                   throws InvalidObjectException,
                                          AlreadyExistsException,
                                          MetaException,
                                          org.apache.thrift.TException
Throws:
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException

drop_partition

boolean drop_partition(String db_name,
                       String tbl_name,
                       List<String> part_vals,
                       boolean deleteData)
                       throws NoSuchObjectException,
                              MetaException,
                              org.apache.thrift.TException
Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException

drop_partition_by_name

boolean drop_partition_by_name(String db_name,
                               String tbl_name,
                               String part_name,
                               boolean deleteData)
                               throws NoSuchObjectException,
                                      MetaException,
                                      org.apache.thrift.TException
Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException

get_partition

Partition get_partition(String db_name,
                        String tbl_name,
                        List<String> part_vals)
                        throws MetaException,
                               NoSuchObjectException,
                               org.apache.thrift.TException
Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException

get_partition_by_name

Partition get_partition_by_name(String db_name,
                                String tbl_name,
                                String part_name)
                                throws MetaException,
                                       NoSuchObjectException,
                                       org.apache.thrift.TException
Throws:
MetaException
NoSuchObjectException
org.apache.thrift.TException

get_partitions

List<Partition> get_partitions(String db_name,
                               String tbl_name,
                               short max_parts)
                               throws NoSuchObjectException,
                                      MetaException,
                                      org.apache.thrift.TException
Throws:
NoSuchObjectException
MetaException
org.apache.thrift.TException

get_partition_names

List<String> get_partition_names(String db_name,
                                 String tbl_name,
                                 short max_parts)
                                 throws MetaException,
                                        org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_partitions_ps

List<Partition> get_partitions_ps(String db_name,
                                  String tbl_name,
                                  List<String> part_vals,
                                  short max_parts)
                                  throws MetaException,
                                         org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

get_partition_names_ps

List<String> get_partition_names_ps(String db_name,
                                    String tbl_name,
                                    List<String> part_vals,
                                    short max_parts)
                                    throws MetaException,
                                           org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

alter_partition

void alter_partition(String db_name,
                     String tbl_name,
                     Partition new_part)
                     throws InvalidOperationException,
                            MetaException,
                            org.apache.thrift.TException
Throws:
InvalidOperationException
MetaException
org.apache.thrift.TException

get_config_value

String get_config_value(String name,
                        String defaultValue)
                        throws ConfigValSecurityException,
                               org.apache.thrift.TException
Throws:
ConfigValSecurityException
org.apache.thrift.TException

partition_name_to_vals

List<String> partition_name_to_vals(String part_name)
                                    throws MetaException,
                                           org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException

partition_name_to_spec

Map<String,String> partition_name_to_spec(String part_name)
                                          throws MetaException,
                                                 org.apache.thrift.TException
Throws:
MetaException
org.apache.thrift.TException


Copyright © 2010 The Apache Software Foundation