当前位置: 首页>>代码示例>>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;未经允许,请勿转载。