thrift特点介绍
来源:互联网 发布:网络语言9代表什么意思 编辑:程序博客网 时间:2024/06/05 06:39
Apache Thrift Features
· interface description language - Everything is specified in an IDL file from which bindings for many languages can be generated. See Thirft IDL
· language bindings - Thrift is supported in many languages and environments
· C++
· C#
· Cocoa
· D
· Delphi
· Erlang
· Haskell
· Java
· OCaml
· Perl
· PHP
· Python
· Ruby
· Smalltalk
· namespaces - Each Thrift file is in its own namespace allowing you to use the same identifier in multiple Thrift files
· language namespaces - Per Thrift file you can specify which namespace should be used for each programming language
· base types - Thrift has a small set of base types. See Thrift Types
· constants and enumerations - Constant values can be assigned logical names
· structs - Use structs to group related data. Structs can have fields of any type. See Thrift Types
· sparse structs - Optional base fields that have not been set and reference fields that are null will not be sent across the wire
· struct evolution - The addition and removal of fields is handled without breaking existing clients by using integer identifiers for fields
· containers - You can use sets, lists and maps of any type: base types, structs and other containers. See Thrift Types
· type definitions - Any type can be given a name that better describes it
· services - A service is a group of functions
· service inheritance - Subservices implement all functions of their base services and can have additional functions
· asynchronous invocations - Functions that do not return a result can be invoked asynchronously so the client is not blocked until the server has finished processing the request. The server may execute asynchronous invocations of the same client in parallel/out of order
· exceptions - If an error occurs a function can throw a standard or user-defined exception. See Thrift Types
Non-features
The following are not supported by Apache Thrift:
· cyclic structs - Structs can only contain structs that have been declared before it. A struct also cannot contain itself
· struct inheritance - Use struct composition instead
· polymorphism - As there is no inheritance, polymorphism is also not supported
· overloading - All methods within a service must be uniquely named
· heterogeneous containers - All items in a container must be of the same type
· Null return - null cannot be returned directly from a function. Use a wrapper struct or a marker value instead
- thrift特点介绍
- thrift 入门介绍
- thrift介绍与学习
- thrift 入门介绍
- Thrift入门介绍
- Apache Thrift 介绍
- thrift 入门介绍
- Thrift 详情介绍
- thrift 入门介绍
- Apache Thrift 介绍
- thrift 入门介绍
- thrift的使用介绍
- Apache Thrift 介绍
- Thrift框架介绍
- thrift使用介绍
- thrift的使用介绍
- Thrift安装介绍
- thrift框架介绍
- Arduino and the SPI bus
- 控制台 看书
- linux 如何获取系统音量修改系统音量
- request_mem_region 申请物理内存函数
- Libgdx实现异步加载网络图片并保存到SD卡或者data/data目录下边
- thrift特点介绍
- Android中 int 和 String 互相转换的多种方法
- Java中任意多个文件上传——用Struts1.x实现
- jquery中获取键盘按键
- java 装饰器模式
- Google搜索打不开解决办法、Chrome小技巧
- 如何判断两个字符串是否互为变位词
- DesignGuideOfHighQualityProgramming学习笔记
- HTTP 返回状态值详解