Share via


6.2 Hive_metastore Thrift APIs

The Apache Thrift schema for the Hive Metastore can be used to generate a JavaScript API. This section provides the subset list of generated APIs that are supported by this protocol.

API

Signature

get_database

 Database   get_database(1:string name) throws(1:NoSuchObjectException o1,   2:MetaException o2)

get_databases

 list<string>   get_databases(1:string pattern) throws(1:MetaException o1)

get_all_databases

 list<string>   get_all_databases() throws(1:MetaException o1)

get_tables_by_type

 list<string>   get_tables_by_type(1: string db_name, 2: string pattern, 3: string tableType)   throws (1: MetaException o1)

get_all_tables

 list<string>   get_all_tables(1: string db_name) throws (1: MetaException o1)

get_table

 Table   get_table(1:string dbname, 2:string tbl_name) throws (1:MetaException o1,   2:NoSuchObjectException o2)

get_tables

 list<string>   get_tables(1: string db_name, 2: string pattern) throws (1: MetaException o1)

get_partitions

 list<Partition>   get_partitions(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)   throws (1:NoSuchObjectException o1, 2:MetaException o2

get_partition_names

 list<string>   get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)   throws (1:MetaException o2)