• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ThriftMethod类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.facebook.swift.service.ThriftMethod的典型用法代码示例。如果您正苦于以下问题:Java ThriftMethod类的具体用法?Java ThriftMethod怎么用?Java ThriftMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ThriftMethod类属于com.facebook.swift.service包,在下文中一共展示了ThriftMethod类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: exchangePartition

import com.facebook.swift.service.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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.ThriftMethod; //导入依赖的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


示例16: alterDatabase

import com.facebook.swift.service.ThriftMethod; //导入依赖的package包/类
@ThriftMethod(value = "alter_database",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = NoSuchObjectException.class, id = 2)
                })
void alterDatabase(
                   @ThriftField(value = 1, name = "dbname") final String dbname,
                   @ThriftField(value = 2, name = "db") final Database db
                ) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
开发者ID:facebookarchive,项目名称:swift-hive-metastore,代码行数:10,代码来源:ThriftHiveMetastore.java


示例17: getType

import com.facebook.swift.service.ThriftMethod; //导入依赖的package包/类
@ThriftMethod(value = "get_type",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = NoSuchObjectException.class, id = 2)
                })
Type getType(
             @ThriftField(value = 1, name = "name") final String name
                ) throws MetaException, NoSuchObjectException, org.apache.thrift.TException;
 
开发者ID:facebookarchive,项目名称:swift-hive-metastore,代码行数:9,代码来源:ThriftHiveMetastore.java


示例18: getTypeAll

import com.facebook.swift.service.ThriftMethod; //导入依赖的package包/类
@ThriftMethod(value = "get_type_all",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1)
                })
Map<String, Type> getTypeAll(
                             @ThriftField(value = 1, name = "name") final String name
                ) throws MetaException, org.apache.thrift.TException;
 
开发者ID:facebookarchive,项目名称:swift-hive-metastore,代码行数:8,代码来源:ThriftHiveMetastore.java


示例19: getFields

import com.facebook.swift.service.ThriftMethod; //导入依赖的package包/类
@ThriftMethod(value = "get_fields",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = UnknownTableException.class, id = 2),
                                @ThriftException(type = UnknownDBException.class, id = 3)
                })
List<FieldSchema> getFields(
                            @ThriftField(value = 1, name = "db_name") final String dbName,
                            @ThriftField(value = 2, name = "table_name") final String tableName
                ) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException;
 
开发者ID:facebookarchive,项目名称:swift-hive-metastore,代码行数:11,代码来源:ThriftHiveMetastore.java


示例20: getSchema

import com.facebook.swift.service.ThriftMethod; //导入依赖的package包/类
@ThriftMethod(value = "get_schema",
                exception = {
                                @ThriftException(type = MetaException.class, id = 1),
                                @ThriftException(type = UnknownTableException.class, id = 2),
                                @ThriftException(type = UnknownDBException.class, id = 3)
                })
List<FieldSchema> getSchema(
                            @ThriftField(value = 1, name = "db_name") final String dbName,
                            @ThriftField(value = 2, name = "table_name") final String tableName
                ) throws MetaException, UnknownTableException, UnknownDBException, org.apache.thrift.TException;
 
开发者ID:facebookarchive,项目名称:swift-hive-metastore,代码行数:11,代码来源:ThriftHiveMetastore.java



注:本文中的com.facebook.swift.service.ThriftMethod类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HTTPPOSTMeta类代码示例发布时间:2022-05-22
下一篇:
Java MultiBranchProject类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap