Now that you have the knowledge of the Apache Thrift's variable types, it is time to put those together in a single file describing our interface.
In this section, only the most important elements of official IDL syntax were described. If you would like to go deeper into the details, read the formal syntax definition or learn about deprecated elements at https://thrift.apache.org/docs/idl.
Apache Thrift's IDL syntax will be familiar to the developers programming in C++, Java, or even PHP. Let's have a look at the most important components.
Apache Thrift supports three types of comments. The first is a bash-style comment—a line beginning with
# This is a comment
The second syntax is C++/Java/PHP-style—a line with
// at the ...
Get Learning Apache Thrift now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.