Dear Wiki user, You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.
The following page has been changed by ChadWalters: http://wiki.apache.org/thrift/ThriftIDL ------------------------------------------------------------------------------ === Typedef === + A typedef creates an alternate name for a type. + {{{[9] Typedef ::= 'typedef' DefinitionType Identifier}}} === Enum === + An enum creates an enumerated type, with named values. If no constant value is supplied, the value is either 0 for the first element, or one greater than the preceding value for any subsequent element. Any constant value that is supplied must be non-negative. + - {{{[10] Enum ::= 'enum' Identifier '{' (Identifier ('=' IntConstant)* ListSeparator?)* '}'}}} + {{{[10] Enum ::= 'enum' Identifier '{' (Identifier ('=' IntConstant)? ListSeparator?)* '}'}}} === Senum === @@ -76, +80 @@ === Struct === + Structs are the fundamental compositional type in Thrift. The name of each field must be unique within the struct. + {{{[12] Struct ::= 'struct' Identifier 'xsd_all'? '{' Field* '}'}}} + NB: The xsd_all keyword has some purpose internal to Facebook but serves no purpose in Thrift itself. Use of this feature is strongly discouraged + === Exception === + + Exceptions are similar to structs except that they are intended to integrate with the native exception handling mechanisms in the target languages. The name of each field must be unique within the exception. {{{[13] Exception ::= 'exception' Identifier '{' Field* '}' }}} === Service === + + A service provides the interface for a set of functionality provided by a Thrift server. The interface is simply a list of functions. A service can extend another service, which simply means that it provides the functions of the extended service in addition to its own. {{{[14] Service ::= 'service' Identifier ( 'extends' Identifier )? '{' Function* '}'}}}
