thrift.in 822 B

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