constants.py 648 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Autogenerated by Thrift Compiler (0.7.0)
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. from thrift.Thrift import *
  7. from ttypes import *
  8. PRIMITIVE_TYPES = set([
  9. 0,
  10. 1,
  11. 2,
  12. 3,
  13. 4,
  14. 5,
  15. 6,
  16. 7,
  17. 8,
  18. 9,
  19. ])
  20. COMPLEX_TYPES = set([
  21. 10,
  22. 11,
  23. 12,
  24. 13,
  25. 14,
  26. ])
  27. COLLECTION_TYPES = set([
  28. 10,
  29. 11,
  30. ])
  31. TYPE_NAMES = {
  32. 0 : "BOOLEAN",
  33. 1 : "TINYINT",
  34. 2 : "SMALLINT",
  35. 3 : "INT",
  36. 4 : "BIGINT",
  37. 5 : "FLOAT",
  38. 6 : "DOUBLE",
  39. 7 : "STRING",
  40. 8 : "TIMESTAMP",
  41. 9 : "BINARY",
  42. 10 : "ARRAY",
  43. 11 : "MAP",
  44. 12 : "STRUCT",
  45. 13 : "UNIONTYPE",
  46. }