thrift.ok (848B)
1 // vim: set ft=thrift sw=4 et: 2 3 # START_INDENT 4 namespace cpp foo 5 namespace java com.foo.thrift 6 7 include "Status.thrift" 8 9 // These are supporting structs for JniFrontend.java, which serves as the glue 10 // between our C++ execution environment and the Java frontend. 11 12 struct TSetSessionParams { 13 1: required string user 14 } 15 16 struct TAuthenticateParams { 17 1: required string user 18 2: required string passwd 19 3: optional string host 20 4: optional string db_name 21 5: optional list<string> table_names; 22 } 23 24 /* { 25 * xxxx 26 * } 27 */ 28 // TColumnDesc 29 struct TColumnDesc { 30 // { 31 4: optional string tableName 32 5: optional string columnDefault 33 // Let FE control the type, which makes it easier to modify and display complex types 34 6: optional string columnTypeStr // deprecated 35 7: optional string dataType 36 // } 37 } 38 # END_INDENT