You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/02/01 07:21:13 UTC
svn commit: r739702 - in /incubator/thrift/trunk: doc/thrift.bnf
doc/thrift.tex tutorial/tutorial.thrift
Author: bryanduxbury
Date: Sun Feb 1 06:21:13 2009
New Revision: 739702
URL: http://svn.apache.org/viewvc?rev=739702&view=rev
Log:
THRIFT-299. doc: binary type isn't documented nor demonstrated in the tutorial
The existence of the "binary" type is now documented in the relevant places.
Modified:
incubator/thrift/trunk/doc/thrift.bnf
incubator/thrift/trunk/doc/thrift.tex
incubator/thrift/trunk/tutorial/tutorial.thrift
Modified: incubator/thrift/trunk/doc/thrift.bnf
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/doc/thrift.bnf?rev=739702&r1=739701&r2=739702&view=diff
==============================================================================
--- incubator/thrift/trunk/doc/thrift.bnf (original)
+++ incubator/thrift/trunk/doc/thrift.bnf Sun Feb 1 06:21:13 2009
@@ -48,11 +48,11 @@
<field-name> ::= STRING
<field-type> ::= T_BOOL | T_BYTE | T_I8 | T_I16 | T_I32 | T_I64 | T_DOUBLE
- | T_STRING | T_STRUCT | T_MAP | T_SET | T_LIST
+ | T_STRING | T_BINARY | T_STRUCT | T_MAP | T_SET | T_LIST
<field-id> ::= I16
- <field-data> ::= I8 | I16 | I32 | I64 | DOUBLE | STRING |
+ <field-data> ::= I8 | I16 | I32 | I64 | DOUBLE | STRING | BINARY
<struct> | <map> | <list> | <set>
<map> ::= <map-begin> <field-datum>* <map-end>
Modified: incubator/thrift/trunk/doc/thrift.tex
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/doc/thrift.tex?rev=739702&r1=739701&r2=739702&view=diff
==============================================================================
--- incubator/thrift/trunk/doc/thrift.tex (original)
+++ incubator/thrift/trunk/doc/thrift.tex Sun Feb 1 06:21:13 2009
@@ -163,6 +163,7 @@
\item \texttt{i64} A 64-bit signed integer
\item \texttt{double} A 64-bit floating point number
\item \texttt{string} An encoding-agnostic text or binary string
+\item \texttt{binary} A byte array representation for blobs
\end{itemize}
Of particular note is the absence of unsigned integer types. Because these
Modified: incubator/thrift/trunk/tutorial/tutorial.thrift
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/tutorial/tutorial.thrift?rev=739702&r1=739701&r2=739702&view=diff
==============================================================================
--- incubator/thrift/trunk/tutorial/tutorial.thrift (original)
+++ incubator/thrift/trunk/tutorial/tutorial.thrift Sun Feb 1 06:21:13 2009
@@ -21,6 +21,7 @@
* i64 Signed 64-bit integer
* double 64-bit floating point value
* string String
+ * binary Blob (byte array)
* map<t1,t2> Map from one type to another
* list<t1> Ordered list of one type
* set<t1> Set of unique elements of one type