O'Reilly logo

Learning Apache Thrift by Krzysztof Rakowski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

IDL syntax

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.

Note

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.

Comments

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required