selects_strong_consistency_es.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [
  2. {
  3. "QueryType": "table_drop",
  4. "Database": "db_test",
  5. "Datatable": "table_strong_consistency_es"
  6. },
  7. {
  8. "QueryType": "table_create",
  9. "Database": "db_test",
  10. "Datatable": "table_strong_consistency_es",
  11. "Definition": {
  12. "strong_consistency": true,
  13. "elastic_search": true,
  14. "Columns": [
  15. {
  16. "Name": "KeyBoolean",
  17. "Type": "Boolean"
  18. },
  19. {
  20. "Name": "KeyLong",
  21. "Type": "Long"
  22. },
  23. {
  24. "Name": "KeyString",
  25. "Type": "String"
  26. },
  27. {
  28. "Name": "ValueBoolean",
  29. "Type": "Boolean"
  30. },
  31. {
  32. "Name": "ValueLong",
  33. "Type": "Long"
  34. },
  35. {
  36. "Name": "ValueString",
  37. "Type": "String"
  38. }
  39. ],
  40. "Key": [
  41. "KeyBoolean",
  42. "KeyLong",
  43. "KeyString"
  44. ],
  45. "Indexes": [
  46. {
  47. "Name": "index_0",
  48. "Columns": [
  49. "KeyString",
  50. "KeyLong",
  51. "KeyBoolean"
  52. ]
  53. },
  54. {
  55. "Name": "index_1",
  56. "Columns": [
  57. "ValueBoolean"
  58. ]
  59. },
  60. {
  61. "Name": "index_2",
  62. "Columns": [
  63. "ValueLong"
  64. ]
  65. },
  66. {
  67. "Name": "index_3",
  68. "Columns": [
  69. "ValueString"
  70. ]
  71. }
  72. ]
  73. }
  74. },
  75. {
  76. "QueryType": "batch_insert",
  77. "Database": "db_test",
  78. "Datatable": "table_strong_consistency_es",
  79. "InsertObjects": [
  80. {
  81. "KeyLong": 1,
  82. "KeyString": "a",
  83. "KeyBoolean": false,
  84. "ValueLong": 2,
  85. "ValueString": "b",
  86. "ValueBoolean": false
  87. },
  88. {
  89. "KeyLong": 1,
  90. "KeyString": "a",
  91. "KeyBoolean": true,
  92. "ValueLong": 1,
  93. "ValueString": "b",
  94. "ValueBoolean": false
  95. }
  96. ]
  97. },
  98. {
  99. "QueryType": "select",
  100. "Database": "db_test",
  101. "Datatable": "table_strong_consistency_es",
  102. "Hint": "index_0",
  103. "Criteria": {
  104. "KeyLong": 1,
  105. "KeyString": "a",
  106. "KeyBoolean": false
  107. }
  108. }
  109. ]