This example sets up a java_thrift_library target its source is Java_thrift_library with carefully-chosen parameters.) Other targetsĬan depend on a lang_thrift_library and their code can then import Scala library targets whose code is Thrift-generated by setting up Target Thrift works similarly, but you use a different target type that Java_library target with sources *.java and then depend on that Normally, to make, e.g., Java code usable, you set up a You have some Thrift you want to use it from your "regular" programming To make the import work, your code's BUILD target depends on theĪppropriate Thrift BUILD target. YouĬan write code in your favorite language that imports the generatedĬode. For each Thrift file you use, your codebase has someīUILD targets that represent "real" code generated from IDL code. Should be able to communicate over Thrift interfaces by using this Two programs, perhaps in different programming languages, ThereĪre tools to generate code in "real" programming languages from Thrift It uses an Interfaceĭefinition Language (IDL) to define these types and interfaces. Working with data types and service interfaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |