Home
last modified time | relevance | path

Searched full:as (Results 1 – 25 of 2265) sorted by relevance

12345678910>>...91

/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/test/
DJavaBeansTest.java14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
33 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
35 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
37 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
39 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
41 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
43 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
45 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
47 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
49 throw new RuntimeException("isSet method error: unset field returned as set!"); in main()
[all …]
/thrift-3.4.0/doc/specs/
Dthrift-compact-protocol.md19 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
64 The zigzag int is then encoded as a *var int*, also known as *Unsigned LEB128*. Var ints take 1 to…
69 For example, the integer 50399 is encoded as follows:
82 To encode an `int16` as zigzag int, it is first converted to an `int32` and then encoded as such. T…
83 uses a single byte as in the binary protocol.
87 The generated code encodes `Enum`s by taking the ordinal value and then encoding that as an int32.
91 Binary is sent as follows:
107 *String*s are first encoded to UTF-8, and then send as binary. They do not
120 …values are encoded directly in the field header. Element values of type `bool` are sent as an int8;
121 true as `1` and false as `0`.
[all …]
Dthrift-binary-protocol.md19 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
58 The generated code encodes `Enum`s by taking the ordinal value and then encoding that as an int32.
62 Binary is sent as follows:
78 *String*s are first encoded to UTF-8, and then send as binary.
83 layout. Most run-times provide a library to make this conversion. Both the binary protocol as the c…
92 Values of `uuid` type are expected as 16-byte binary in big endian (or "network") order. Byte order…
115 * `mmm` is the message type, an unsigned 3 bit integer. The 5 leading bits must be `0` as some clie…
130 Where `name length`, `name`, `mmm`, `seq id` are as above.
154 Because each field header contains the field-id (as defined by the Thrift IDL file), the fields can…
165 A *Union* is encoded exactly the same as a struct with the additional restriction that at most 1 fi…
[all …]
Dthrift.tex52 This paper details the motivations and design choices we made in Thrift, as
53 well as some of the more interesting implementation details. It is not
54 intended to be taken as research, but rather it is an exposition on what we did
67 As Facebook's traffic and network structure have scaled, the resource
91 be as simple as possible for the developer, who can typically define all
175 for arithmetic purposes, but in practice were much more often used as keys or
234 The generated objects inherit from an exception base class as appropriate
246 server stubs that implement the interface. Services are defined as follows:
278 are implemented as Thrift structs. All three constructs are identical in both
289 used on top of the TCP/IP stack with streaming sockets as the base layer of
[all …]
/thrift-3.4.0/lib/st/
Dthrift.st14 AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
34 !TError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
38 !TError methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
42 !TError methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
52 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
56 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
60 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
64 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:40'!
68 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:40'!
90 !TClient class methodsFor: 'as yet unclassified' stamp: 'pc 11/7/2007 06:00'!
[all …]
/thrift-3.4.0/lib/cpp/src/thrift/protocol/
DTJSONProtocol.h14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
37 * Implements a protocol which uses JSON as the wire-format.
39 * Thrift types are represented as described below:
41 * 1. Every Thrift integer type is represented as a JSON number.
43 * 2. Thrift doubles are represented as JSON numbers. Some special values are
44 * represented as strings:
49 * 3. Thrift string values are emitted as JSON strings, with appropriate
52 * 4. Thrift binary values are encoded into Base64 and emitted as JSON strings.
60 * 5. Thrift structs are represented as JSON objects, with the field ID as the
61 * key, and the field value represented as a JSON object with a single
[all …]
/thrift-3.4.0/build/appveyor/
DREADME.md9 distributed under the License is distributed on an "AS IS" BASIS,
17 …lding MSVC as well as MSYS2, MinGW and Cygwin builds targeting the MS Windows platform. It has man…
/thrift-3.4.0/lib/py/src/server/
DTServer.py14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
105 except Exception as x:
132 except Exception as x:
154 except Exception as x:
181 except Exception as x:
185 """Process input/output from a client for as long as possible"""
204 except Exception as x:
218 except Exception as x:
229 except Exception as x:
236 This is more scalable than the threaded server as it does not cause
[all …]
DTProcessPoolServer.py14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
72 except Exception as x:
76 """Process input/output from a client for as long as possible"""
87 except Exception as x:
108 except Exception as x:
119 except Exception as x:
/thrift-3.4.0/lib/swift/Sources/
DTProtocol.swift14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
137 case .bool: _ = try read() as Bool in readMessageBegin()
138 case .i8: _ = try read() as Int8 in readMessageBegin()
139 case .i16: _ = try read() as Int16 in readMessageBegin()
140 case .i32: _ = try read() as Int32 in readMessageBegin()
141 case .i64: _ = try read() as Int64 in readMessageBegin()
142 case .double: _ = try read() as Double in readMessageBegin()
143 case .string: _ = try read() as String in readMessageBegin()
144 case .uuid: _ = try read() as UUID in readMessageBegin()
/thrift-3.4.0/.github/
Dstale.yml7 … to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
24 # Label to use when marking as stale
27 # Comment to post when marking as stale. Set to `false` to disable
29 This issue has been automatically marked as stale because it has not had
53 # This pull request has been automatically marked as stale because it has not had
/thrift-3.4.0/lib/go/test/tests/
Dvalidate_test.go14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
42 } else if errors.As(err, &ve) {
56 } else if errors.As(err, &ve) {
70 } else if errors.As(err, &ve) {
84 } else if errors.As(err, &ve) {
98 } else if errors.As(err, &ve) {
115 } else if errors.As(err, &ve) {
128 } else if errors.As(err, &ve) {
141 } else if errors.As(err, &ve) {
157 } else if errors.As(err, &ve) {
[all …]
/thrift-3.4.0/doc/licenses/
Dlgpl-2.1.txt10 as the successor of the GNU Library Public License, version 2, hence
93 library does the same job as widely used non-free libraries. In this
101 operating system, as well as its variant, the GNU/Linux operating
122 Each licensee is addressed as "you".
125 prepared so as to be conveniently linked with application programs
151 complete source code as you receive it, in any medium, provided that
177 the facility, other than as an argument passed when the facility
190 These requirements apply to the modified work as a whole. If
194 sections when you distribute them as separate works. But when you
195 distribute the same sections as part of a whole which is a work based
[all …]
/thrift-3.4.0/contrib/Rebus/
DREADME.md7 As with all ServiceBus or MQ scenarios, due to the highly asynchronous
8 operations it is recommended to do all calls as "oneway void" calls.
17 serializer as well, in order to override Rebus' default wire format. Please
25 recommended replacement. This code is left "as is" for educational purposes
/thrift-3.4.0/lib/php/
DREADME.md17 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24 Thrift requires PHP 5. Thrift makes as few assumptions about your PHP
25 environment as possible while trying to make some more advanced PHP
26 features (i.e. APCu cacheing using asbolute path URLs) as simple as possible.
/thrift-3.4.0/lib/cl/
DREADME.md18 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
35 * Various type definitions as implementations for Thrift typedef and enum definitions.
43 to act as the client proxy for the operation and mediate the interaction with a remote process
47 encode and send the the result as a response, and handles exceptions.
65 The Thrift Common Lisp library is packaged as the ASDF[[1]] system `thrift`.
87 one must also define the actual functions to which Thrift is to act as the proxy
98 IDL files, as there is no facility to generate them from a service implementation.
160 As the former includes the latter, one uses it to generate the interfaces:
172 other includes (like `shared` within the tutorial) as dependencies.
178 The actual service name, as specified in the `def-service` form in `tutorial.lisp`, is `calculator`…
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/protocol/
DTestTProtocolUtil.java14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
39 // is not mistakenly guessed as serialized with JSON. in testGuessProtocolFactory_JSON()
50 // Check that a last byte != 0 is correctly reported as Binary in testGuessProtocolFactory_Binary()
60 // Check that a second byte set to 0 is reported as Binary in testGuessProtocolFactory_Binary()
69 // Check that a first byte > 0x10 is reported as Compact in testGuessProtocolFactory_Compact()
76 // Check that second byte >= 0x80 is reported as Compact in testGuessProtocolFactory_Compact()
/thrift-3.4.0/test/v0.16/
DThriftTest.thrift14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
112 // Do not insert line break as test/go/Makefile.am is removing this line with pattern match
149 * Prints 'testString("%s")' with thing as '%s'
156 * Prints 'testBool("%s")' where '%s' with thing as 'true' or 'false'
163 * Prints 'testByte("%d")' with thing as '%d'
171 * Prints 'testI32("%d")' with thing as '%d'
178 * Prints 'testI64("%d")' with thing as '%d'
185 * Prints 'testDouble("%f")' with thing as '%f'
252 * Prints 'testTypedef("%d")' with thing as '%d'
259 * Prints 'testMapMap("%d")' with hello as '%d'
[all …]
/thrift-3.4.0/test/
DThriftTest.thrift14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
112 // Do not insert line break as test/go/Makefile.am is removing this line with pattern match
150 * Prints 'testString("%s")' with thing as '%s'
157 * Prints 'testBool("%s")' where '%s' with thing as 'true' or 'false'
164 * Prints 'testByte("%d")' with thing as '%d'
172 * Prints 'testI32("%d")' with thing as '%d'
179 * Prints 'testI64("%d")' with thing as '%d'
186 * Prints 'testDouble("%f")' with thing as '%f'
260 * Prints 'testTypedef("%d")' with thing as '%d'
267 * Prints 'testMapMap("%d")' with hello as '%d'
[all …]
/thrift-3.4.0/
DLICENSE11 and distribution as defined by Sections 1 through 9 of this document.
37 Object form, made available under the License, as indicated by a
44 represent, as a whole, an original work of authorship. For the purposes
61 designated in writing by the copyright owner as "Not a Contribution."
77 (except as stated in this section) patent license to make, have made,
88 as of the date such litigation is filed.
107 (d) If the Work includes a "NOTICE" text file as part of its
113 as part of the Derivative Works; within the Source form or
120 or as an addendum to the NOTICE text from the Work, provided
122 as modifying the License.
[all …]
/thrift-3.4.0/lib/nodejs/examples/
Dclient_multitransport.js14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
43 console.log("stored:", user1.uid, " as ", user1.name);
46 console.log("retrieved:", responseUser.uid, " as ", responseUser.name);
53 console.log("stored:", user2.uid, " as ", user2.name);
56 console.log("retrieved:", responseUser.uid, " as ", responseUser.name);
/thrift-3.4.0/contrib/fb303/
DTClientInfo.h14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
40 * vector elements never move as the vector grows. Allocates new space
41 * as needed, but does not copy old values.
44 * elements. Levels are added as needed, doubling in size each time.
50 /// The initial allocation as an exponent of 2
167 * first we'll know of a connection we start the timer here as well.
172 * Mark the address as empty/unknown.
194 * Return as string the thrift call either currently being processed or
230 * extend the info vector if required (such as for a file descriptor not seen
273 * Mark our slot as unused and delete the context created in createContext().
[all …]
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/
DEncodingUtils.java14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22 /** Utility methods for use when encoding/decoding raw data as byte arrays. */
26 * Encode <code>integer</code> as a series of 4 bytes into <code>buf</code> starting at position 0
37 * Encode <code>integer</code> as a series of 4 bytes into <code>buf</code> starting at position
52 * Decode a series of 4 bytes from <code>buf</code>, starting at position 0, and interpret them as
56 * @return An integer, as read from the buffer.
64 * them as an integer.
68 * @return An integer, as read from the buffer.
DTServiceClient.java14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
46 * Get the TProtocol being used as the input (read) protocol.
48 * @return the TProtocol being used as the input (read) protocol.
55 * Get the TProtocol being used as the output (write) protocol.
57 * @return the TProtocol being used as the output (write) protocol.
/thrift-3.4.0/lib/go/thrift/
Dsocket_conn.go14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
52 // return it as-is and avoid double wrapping.
67 // It's the same as the previous implementation of TSocket.IsOpen and
81 // the socket. As a result, it shouldn't be called between setting read deadline
102 // On Windows, it behaves the same as the underlying net.Conn.Read.
104 // On non-Windows, it treats len(p) == 0 as a connectivity check instead of

12345678910>>...91