當前位置: 首頁>>代碼示例>>Java>>正文


Java ThriftException類代碼示例

本文整理匯總了Java中com.facebook.swift.service.ThriftException的典型用法代碼示例。如果您正苦於以下問題:Java ThriftException類的具體用法?Java ThriftException怎麽用?Java ThriftException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ThriftException類屬於com.facebook.swift.service包,在下文中一共展示了ThriftException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: exchangePartition

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "exchange_partition",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = NoSuchObjectException.class, id = 2),
                                @ThriftException(type = InvalidObjectException.class, id = 3),
                                @ThriftException(type = InvalidInputException.class, id = 4),
                                @ThriftException(type = AlreadyExistsException.class, id = 5)
                })
List<Partition> exchangePartition(
                                  @ThriftField(value = 1, name = "partitionSpecs") final Map<String, String> partitionSpecs,
                                  @ThriftField(value = 2, name = "source_db") final String sourceDb,
                                  @ThriftField(value = 3, name = "source_table_name") final String sourceTableName,
                                  @ThriftField(value = 4, name = "dest_db") final String destDb,
                                  @ThriftField(value = 5, name = "dest_table_name") final String destTableName,
                                  @ThriftField(value = 6, name = "overwrite") final boolean overwrite
                ) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, AlreadyExistsException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:17,代碼來源:FacebookHiveMetastore.java

示例2: createTableLink

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "create_table_link",
                exception = {
                                @ThriftException(type = AlreadyExistsException.class, id = 1),
                                @ThriftException(type = InvalidObjectException.class, id = 2),
                                @ThriftException(type = MetaException.class, id = 3),
                                @ThriftException(type = NoSuchObjectException.class, id = 4),
                                @ThriftException(type = InvalidTableLinkDescriptionException.class, id = 5)
                })
void createTableLink(
                     @ThriftField(value = 1, name = "dbName") final String dbName,
                     @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                     @ThriftField(value = 3, name = "targetTableName") final String targetTableName,
                     @ThriftField(value = 4, name = "owner") final String owner,
                     @ThriftField(value = 5, name = "isStatic") final boolean isStatic,
                     @ThriftField(value = 6, name = "linkProperties") final Map<String, String> linkProperties
                ) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, InvalidTableLinkDescriptionException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:17,代碼來源:FacebookHiveMetastore.java

示例3: dropTableLink

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "drop_table_link",
                exception = {
                                @ThriftException(type = NoSuchObjectException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2)
                })
void dropTableLink(
                   @ThriftField(value = 1, name = "dbName") final String dbName,
                   @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                   @ThriftField(value = 3, name = "targetTableName") final String targetTableName
                ) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:11,代碼來源:FacebookHiveMetastore.java

示例4: existsTable

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "exists_table",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1)
                })
boolean existsTable(
                    @ThriftField(value = 1, name = "dbname") final String dbname,
                    @ThriftField(value = 2, name = "tbl_name") final String tblName
                ) throws MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:9,代碼來源:FacebookHiveMetastore.java

示例5: getTableLink

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "get_table_link",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = NoSuchObjectException.class, id = 2)
                })
Table getTableLink(
                   @ThriftField(value = 1, name = "dbName") final String dbName,
                   @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                   @ThriftField(value = 3, name = "targetTableName") final String targetTableName
                ) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:11,代碼來源:FacebookHiveMetastore.java

示例6: alterTableLink

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "alter_table_link",
                exception = {
                                @ThriftException(type = InvalidOperationException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2)
                })
void alterTableLink(
                    @ThriftField(value = 1, name = "dbName") final String dbName,
                    @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                    @ThriftField(value = 3, name = "targetTableName") final String targetTableName,
                    @ThriftField(value = 4, name = "new_tbl") final Table newTbl
                ) throws InvalidOperationException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:12,代碼來源:FacebookHiveMetastore.java

示例7: alterTableLinkProperties

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "alter_table_link_properties",
                exception = {
                                @ThriftException(type = InvalidOperationException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2),
                                @ThriftException(type = NoSuchObjectException.class, id = 3)
                })
void alterTableLinkProperties(
                              @ThriftField(value = 1, name = "dbName") final String dbName,
                              @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                              @ThriftField(value = 3, name = "targetTableName") final String targetTableName,
                              @ThriftField(value = 4, name = "updatedProperties") final Map<String, String> updatedProperties
                ) throws InvalidOperationException, MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:13,代碼來源:FacebookHiveMetastore.java

示例8: addTableLinkPartition

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "add_table_link_partition",
                exception = {
                                @ThriftException(type = InvalidObjectException.class, id = 1),
                                @ThriftException(type = AlreadyExistsException.class, id = 2),
                                @ThriftException(type = NoSuchObjectException.class, id = 3),
                                @ThriftException(type = MetaException.class, id = 4)
                })
Partition addTableLinkPartition(
                                @ThriftField(value = 1, name = "dbName") final String dbName,
                                @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                                @ThriftField(value = 3, name = "targetTableName") final String targetTableName,
                                @ThriftField(value = 4, name = "partitionName") final String partitionName
                ) throws InvalidObjectException, AlreadyExistsException, NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:14,代碼來源:FacebookHiveMetastore.java

示例9: dropTableLinkPartition

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "drop_table_link_partition",
                exception = {
                                @ThriftException(type = NoSuchObjectException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2)
                })
boolean dropTableLinkPartition(
                               @ThriftField(value = 1, name = "dbName") final String dbName,
                               @ThriftField(value = 2, name = "targetDbName") final String targetDbName,
                               @ThriftField(value = 3, name = "targetTableName") final String targetTableName,
                               @ThriftField(value = 4, name = "partitionName") final String partitionName
                ) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:12,代碼來源:FacebookHiveMetastore.java

示例10: getPartitionTemplate

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "get_partition_template",
                exception = {
                                @ThriftException(type = InvalidObjectException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2)
                })
Partition getPartitionTemplate(
                               @ThriftField(value = 1, name = "db_name") final String dbName,
                               @ThriftField(value = 2, name = "tbl_name") final String tblName,
                               @ThriftField(value = 3, name = "part_vals") final List<String> partVals
                ) throws InvalidObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:11,代碼來源:FacebookHiveMetastore.java

示例11: getTotalPartitions

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "get_total_partitions",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1)
                })
int getTotalPartitions(
                       @ThriftField(value = 1, name = "db_name") final String dbName,
                       @ThriftField(value = 2, name = "tbl_name") final String tblName
                ) throws MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:9,代碼來源:FacebookHiveMetastore.java

示例12: createDatabase

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "create_database",
                exception = {
                                @ThriftException(type = AlreadyExistsException.class, id = 1),
                                @ThriftException(type = InvalidObjectException.class, id = 2),
                                @ThriftException(type = MetaException.class, id = 3)
                })
void createDatabase(
                    @ThriftField(value = 1, name = "database") final Database database
                ) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:10,代碼來源:ThriftHiveMetastore.java

示例13: getDatabase

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "get_database",
                exception = {
                                @ThriftException(type = NoSuchObjectException.class, id = 1),
                                @ThriftException(type = MetaException.class, id = 2)
                })
Database getDatabase(
                     @ThriftField(value = 1, name = "name") final String name
                ) throws NoSuchObjectException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:9,代碼來源:ThriftHiveMetastore.java

示例14: dropDatabase

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "drop_database",
                exception = {
                                @ThriftException(type = NoSuchObjectException.class, id = 1),
                                @ThriftException(type = InvalidOperationException.class, id = 2),
                                @ThriftException(type = MetaException.class, id = 3)
                })
void dropDatabase(
                  @ThriftField(value = 1, name = "name") final String name,
                  @ThriftField(value = 2, name = "deleteData") final boolean deleteData,
                  @ThriftField(value = 3, name = "cascade") final boolean cascade
                ) throws NoSuchObjectException, InvalidOperationException, MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:12,代碼來源:ThriftHiveMetastore.java

示例15: getDatabases

import com.facebook.swift.service.ThriftException; //導入依賴的package包/類
@ThriftMethod(value = "get_databases",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1)
                })
List<String> getDatabases(
                          @ThriftField(value = 1, name = "pattern") final String pattern
                ) throws MetaException, org.apache.thrift.TException;
 
開發者ID:facebookarchive,項目名稱:swift-hive-metastore,代碼行數:8,代碼來源:ThriftHiveMetastore.java


注:本文中的com.facebook.swift.service.ThriftException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。