droonga-engine 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +7 -0
  5. data/Rakefile +6 -2
  6. data/bin/droonga-engine +2 -2
  7. data/bin/{droonga-catalog-generate → droonga-engine-catalog-generate} +15 -3
  8. data/bin/droonga-engine-serf-event-handler +20 -0
  9. data/bin/droonga-engine-service +2 -2
  10. data/doc/text/news.md +21 -1
  11. data/droonga-engine.gemspec +5 -2
  12. data/lib/droonga/catalog/collection_volume.rb +12 -0
  13. data/lib/droonga/catalog/dataset.rb +25 -0
  14. data/lib/droonga/catalog/single_volume.rb +10 -0
  15. data/lib/droonga/catalog/slice.rb +4 -0
  16. data/lib/droonga/catalog/version1.rb +59 -48
  17. data/lib/droonga/catalog/version2.rb +10 -20
  18. data/lib/droonga/catalog/volume_collection.rb +27 -4
  19. data/lib/droonga/catalog_generator.rb +12 -5
  20. data/lib/droonga/catalog_observer.rb +17 -35
  21. data/lib/droonga/command/droonga_engine.rb +436 -0
  22. data/lib/droonga/command/droonga_engine_service.rb +273 -0
  23. data/lib/droonga/command/serf_event_handler.rb +85 -0
  24. data/lib/droonga/dispatcher.rb +8 -8
  25. data/lib/droonga/engine.rb +90 -26
  26. data/lib/droonga/engine/version.rb +1 -1
  27. data/lib/droonga/engine_state.rb +29 -3
  28. data/lib/droonga/internal_fluent_message_receiver.rb +100 -0
  29. data/lib/droonga/live_nodes_list_loader.rb +48 -0
  30. data/lib/droonga/live_nodes_list_observer.rb +72 -0
  31. data/lib/droonga/path.rb +47 -0
  32. data/lib/droonga/plugins/dump.rb +279 -38
  33. data/lib/droonga/plugins/groonga/select.rb +26 -14
  34. data/lib/droonga/plugins/search.rb +30 -2
  35. data/lib/droonga/plugins/search/distributed_search_planner.rb +28 -11
  36. data/lib/droonga/processor.rb +4 -0
  37. data/lib/droonga/searcher.rb +26 -0
  38. data/lib/droonga/serf.rb +119 -0
  39. data/lib/droonga/serf_downloader.rb +90 -0
  40. data/lib/droonga/server.rb +2 -2
  41. data/lib/droonga/service_control_protocol.rb +26 -0
  42. data/sample/cluster/catalog.json +1 -1
  43. data/test/command/config/default/catalog.json +2 -2
  44. data/test/command/config/version1/catalog.json +1 -1
  45. data/test/command/fixture/documents.jsons +18 -18
  46. data/test/command/fixture/event.jsons +4 -4
  47. data/test/command/fixture/user-table-array.jsons +4 -4
  48. data/test/command/fixture/user-table.jsons +5 -5
  49. data/test/command/suite/add/dimension/column.catalog.json +1 -1
  50. data/test/command/suite/add/dimension/column.test +4 -4
  51. data/test/command/suite/add/dimension/integer.catalog.json +1 -1
  52. data/test/command/suite/add/dimension/integer.test +4 -4
  53. data/test/command/suite/add/error/invalid-integer.test +1 -1
  54. data/test/command/suite/add/error/invalid-time.test +1 -1
  55. data/test/command/suite/add/error/missing-key.test +1 -1
  56. data/test/command/suite/add/error/missing-table.test +1 -1
  57. data/test/command/suite/add/error/unknown-column.test +1 -1
  58. data/test/command/suite/add/error/unknown-table.test +1 -1
  59. data/test/command/suite/add/minimum.test +1 -1
  60. data/test/command/suite/add/vector/short_text.catalog.json +26 -0
  61. data/test/command/suite/add/vector/short_text.expected +42 -0
  62. data/test/command/suite/add/vector/short_text.test +35 -0
  63. data/test/command/suite/add/with-values.test +1 -1
  64. data/test/command/suite/add/without-key.test +1 -1
  65. data/test/command/suite/dump/column/index.catalog.json +40 -0
  66. data/test/command/suite/dump/column/index.expected +195 -0
  67. data/test/command/suite/dump/column/index.test +5 -0
  68. data/test/command/suite/dump/column/scalar.catalog.json +19 -0
  69. data/test/command/suite/dump/column/scalar.expected +99 -0
  70. data/test/command/suite/dump/column/scalar.test +5 -0
  71. data/test/command/suite/dump/column/vector.catalog.json +22 -0
  72. data/test/command/suite/dump/column/vector.expected +108 -0
  73. data/test/command/suite/dump/column/vector.test +5 -0
  74. data/test/command/suite/dump/record/vector/reference.catalog.json +27 -0
  75. data/test/command/suite/dump/record/vector/reference.expected +213 -0
  76. data/test/command/suite/dump/record/vector/reference.test +21 -0
  77. data/test/command/suite/dump/table/array.catalog.json +13 -0
  78. data/test/command/suite/dump/table/array.expected +63 -0
  79. data/test/command/suite/dump/table/array.test +5 -0
  80. data/test/command/suite/dump/table/double_array_trie.catalog.json +14 -0
  81. data/test/command/suite/dump/table/double_array_trie.expected +66 -0
  82. data/test/command/suite/dump/table/double_array_trie.test +5 -0
  83. data/test/command/suite/dump/table/hash.catalog.json +14 -0
  84. data/test/command/suite/dump/table/hash.expected +66 -0
  85. data/test/command/suite/dump/table/hash.test +5 -0
  86. data/test/command/suite/dump/table/patricia_trie.catalog.json +14 -0
  87. data/test/command/suite/dump/table/patricia_trie.expected +66 -0
  88. data/test/command/suite/dump/table/patricia_trie.test +5 -0
  89. data/test/command/suite/groonga/column_create/scalar.test +2 -2
  90. data/test/command/suite/groonga/column_create/unknown-table.test +1 -1
  91. data/test/command/suite/groonga/column_create/vector.test +2 -2
  92. data/test/command/suite/groonga/column_list/success.test +3 -3
  93. data/test/command/suite/groonga/column_list/unknown-table.test +1 -1
  94. data/test/command/suite/groonga/column_remove/success.test +3 -3
  95. data/test/command/suite/groonga/column_remove/unknown-column.test +2 -2
  96. data/test/command/suite/groonga/column_remove/unknown-table.test +1 -1
  97. data/test/command/suite/groonga/column_rename/success.test +3 -3
  98. data/test/command/suite/groonga/column_rename/unknown-column.test +2 -2
  99. data/test/command/suite/groonga/column_rename/unknown-table.test +1 -1
  100. data/test/command/suite/groonga/delete/duplicated-identifiers.test +2 -2
  101. data/test/command/suite/groonga/delete/filter.test +2 -2
  102. data/test/command/suite/groonga/delete/invalid-filter.test +1 -1
  103. data/test/command/suite/groonga/delete/no-identifier.test +2 -2
  104. data/test/command/suite/groonga/delete/success.test +2 -2
  105. data/test/command/suite/groonga/delete/unknown-table.test +1 -1
  106. data/test/command/suite/groonga/select/minimum.expected +24 -1
  107. data/test/command/suite/groonga/select/minimum.test +1 -1
  108. data/test/command/suite/groonga/select/type/time.catalog.json +19 -0
  109. data/test/command/suite/groonga/select/type/time.expected +37 -0
  110. data/test/command/suite/groonga/select/type/time.test +35 -0
  111. data/test/command/suite/groonga/table_create/array.test +1 -1
  112. data/test/command/suite/groonga/table_create/hash.test +1 -1
  113. data/test/command/suite/groonga/table_list/success.test +2 -2
  114. data/test/command/suite/groonga/table_remove/success.test +1 -1
  115. data/test/command/suite/groonga/table_remove/unknown-table.test +1 -1
  116. data/test/command/suite/message/error/unknown-type.expected +1 -1
  117. data/test/command/suite/message/error/unknown-type.test +1 -1
  118. data/test/command/suite/search/adjusters/multiple.catalog.json +1 -1
  119. data/test/command/suite/search/adjusters/multiple.test +3 -3
  120. data/test/command/suite/search/adjusters/one.catalog.json +1 -1
  121. data/test/command/suite/search/adjusters/one.test +3 -3
  122. data/test/command/suite/search/attributes/array.expected +7 -0
  123. data/test/command/suite/search/attributes/array.test +1 -1
  124. data/test/command/suite/search/attributes/hash.expected +18 -0
  125. data/test/command/suite/search/attributes/hash.test +1 -1
  126. data/test/command/suite/search/complex.expected +12 -0
  127. data/test/command/suite/search/complex.test +1 -1
  128. data/test/command/suite/search/condition/nested.catalog.json +37 -0
  129. data/test/command/suite/search/condition/nested.expected +7 -0
  130. data/test/command/suite/search/condition/nested.test +103 -2
  131. data/test/command/suite/search/condition/query.catalog.json +37 -0
  132. data/test/command/suite/search/condition/query.expected +7 -0
  133. data/test/command/suite/search/condition/query.test +103 -2
  134. data/test/command/suite/search/condition/query/nonexistent_column.catalog.json +1 -1
  135. data/test/command/suite/search/condition/query/nonexistent_column.test +2 -2
  136. data/test/command/suite/search/condition/query/syntax_error.catalog.json +1 -1
  137. data/test/command/suite/search/condition/query/syntax_error.test +2 -2
  138. data/test/command/suite/search/condition/script.catalog.json +37 -0
  139. data/test/command/suite/search/condition/script.expected +7 -0
  140. data/test/command/suite/search/condition/script.test +103 -2
  141. data/test/command/suite/search/error/cyclic-source.test +1 -1
  142. data/test/command/suite/search/error/deeply-cyclic-source.test +1 -1
  143. data/test/command/suite/search/error/missing-source-parameter.test +1 -1
  144. data/test/command/suite/search/error/no-query.test +1 -1
  145. data/test/command/suite/search/error/unknown-source.test +1 -1
  146. data/test/command/suite/search/group/count.test +1 -1
  147. data/test/command/suite/search/group/limit.test +1 -1
  148. data/test/command/suite/search/group/string.catalog.json +41 -0
  149. data/test/command/suite/search/group/string.expected +18 -18
  150. data/test/command/suite/search/group/string.test +67 -22
  151. data/test/command/suite/search/group/subrecord/with-sort.catalog.json +1 -1
  152. data/test/command/suite/search/group/subrecord/with-sort.test +5 -5
  153. data/test/command/suite/search/multiple/chained.catalog.json +37 -0
  154. data/test/command/suite/search/multiple/chained.expected +14 -0
  155. data/test/command/suite/search/multiple/chained.test +103 -2
  156. data/test/command/suite/search/multiple/parallel.expected +14 -0
  157. data/test/command/suite/search/multiple/parallel.test +1 -1
  158. data/test/command/suite/search/output/attributes/invalid.catalog.json +1 -1
  159. data/test/command/suite/search/output/attributes/invalid.test +2 -2
  160. data/test/command/suite/search/output/attributes/star.catalog.json +23 -0
  161. data/test/command/suite/search/output/attributes/star.expected +27 -0
  162. data/test/command/suite/search/output/attributes/star.test +32 -0
  163. data/test/command/suite/search/range/only-output.expected +7 -0
  164. data/test/command/suite/search/range/only-output.test +1 -1
  165. data/test/command/suite/search/range/only-sort.expected +7 -0
  166. data/test/command/suite/search/range/only-sort.test +1 -1
  167. data/test/command/suite/search/range/sort-and-output.expected +7 -0
  168. data/test/command/suite/search/range/sort-and-output.test +1 -1
  169. data/test/command/suite/search/range/too-large-output-offset.expected +8 -0
  170. data/test/command/suite/search/range/too-large-output-offset.test +1 -1
  171. data/test/command/suite/search/range/too-large-sort-offset.expected +8 -0
  172. data/test/command/suite/search/range/too-large-sort-offset.test +1 -1
  173. data/test/command/suite/search/response/elapsed_time.catalog.json +1 -1
  174. data/test/command/suite/search/response/elapsed_time.test +2 -2
  175. data/test/command/suite/search/response/records/value/time.expected +12 -0
  176. data/test/command/suite/search/response/records/value/time.test +1 -1
  177. data/test/command/suite/search/simple.expected +12 -0
  178. data/test/command/suite/search/simple.test +1 -1
  179. data/test/command/suite/search/sort/default-offset-limit.expected +7 -0
  180. data/test/command/suite/search/sort/default-offset-limit.test +1 -1
  181. data/test/command/suite/search/sort/invisible-column.expected +7 -0
  182. data/test/command/suite/search/sort/invisible-column.test +1 -1
  183. data/test/unit/catalog/test_collection_volume.rb +16 -0
  184. data/test/unit/catalog/test_dataset.rb +36 -0
  185. data/test/unit/catalog/test_single_volume.rb +9 -0
  186. data/test/unit/catalog/test_slice.rb +11 -0
  187. data/test/unit/catalog/test_version1.rb +7 -12
  188. data/test/unit/catalog/test_version2.rb +7 -0
  189. data/test/unit/catalog/test_volume_collection.rb +28 -0
  190. data/test/unit/fixtures/catalog/version1.json +10 -3
  191. data/test/unit/fixtures/catalog/version2.json +2 -2
  192. data/test/unit/plugins/groonga/select/test_adapter_output.rb +8 -14
  193. data/test/unit/plugins/groonga/test_column_create.rb +5 -5
  194. data/test/unit/plugins/groonga/test_column_remove.rb +2 -2
  195. data/test/unit/plugins/groonga/test_column_rename.rb +2 -2
  196. data/test/unit/plugins/groonga/test_delete.rb +2 -2
  197. data/test/unit/plugins/groonga/test_table_create.rb +9 -9
  198. data/test/unit/plugins/groonga/test_table_remove.rb +1 -1
  199. data/test/unit/test_catalog_generator.rb +1 -1
  200. data/test/unit/test_schema_applier.rb +2 -2
  201. data/test/unit/test_watch_schema.rb +4 -4
  202. metadata +241 -72
  203. data/lib/droonga/engine/command/droonga_engine.rb +0 -441
@@ -0,0 +1,5 @@
1
+ #@require-catalog-version 2
2
+ {
3
+ "type": "dump",
4
+ "dataset": "Default"
5
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "datasets": {
3
+ "Default": {
4
+ "schema": {
5
+ "Memos": {
6
+ "type": "Hash",
7
+ "keyType": "ShortText",
8
+ "columns": {
9
+ "tags": {
10
+ "type": "Vector",
11
+ "valueType": "ShortText",
12
+ "vectorOptions": {
13
+ "weight": true
14
+ }
15
+ }
16
+ }
17
+ }
18
+ },
19
+ "fact": "Memos"
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "dataset": "Default",
4
+ "type": "dump.start"
5
+ }
6
+ {
7
+ "inReplyTo": "request-id",
8
+ "dataset": "Default",
9
+ "type": "dump.start"
10
+ }
11
+ {
12
+ "inReplyTo": "request-id",
13
+ "dataset": "Default",
14
+ "type": "dump.start"
15
+ }
16
+ {
17
+ "inReplyTo": "request-id",
18
+ "statusCode": 200,
19
+ "type": "dump.result",
20
+ "body": true
21
+ }
22
+ {
23
+ "inReplyTo": "request-id",
24
+ "dataset": "Default",
25
+ "body": {
26
+ "type": "Hash",
27
+ "name": "Memos",
28
+ "keyType": "ShortText"
29
+ },
30
+ "type": "dump.table"
31
+ }
32
+ {
33
+ "inReplyTo": "request-id",
34
+ "dataset": "Default",
35
+ "body": {
36
+ "table": "Memos",
37
+ "name": "tags",
38
+ "type": "Vector",
39
+ "valueType": "ShortText",
40
+ "vectorOptions": {
41
+ "weight": true
42
+ }
43
+ },
44
+ "type": "dump.column"
45
+ }
46
+ {
47
+ "inReplyTo": "request-id",
48
+ "dataset": "Default",
49
+ "type": "dump.end"
50
+ }
51
+ {
52
+ "inReplyTo": "request-id",
53
+ "dataset": "Default",
54
+ "body": {
55
+ "type": "Hash",
56
+ "name": "Memos",
57
+ "keyType": "ShortText"
58
+ },
59
+ "type": "dump.table"
60
+ }
61
+ {
62
+ "inReplyTo": "request-id",
63
+ "dataset": "Default",
64
+ "body": {
65
+ "table": "Memos",
66
+ "name": "tags",
67
+ "type": "Vector",
68
+ "valueType": "ShortText",
69
+ "vectorOptions": {
70
+ "weight": true
71
+ }
72
+ },
73
+ "type": "dump.column"
74
+ }
75
+ {
76
+ "inReplyTo": "request-id",
77
+ "dataset": "Default",
78
+ "type": "dump.end"
79
+ }
80
+ {
81
+ "inReplyTo": "request-id",
82
+ "dataset": "Default",
83
+ "body": {
84
+ "type": "Hash",
85
+ "name": "Memos",
86
+ "keyType": "ShortText"
87
+ },
88
+ "type": "dump.table"
89
+ }
90
+ {
91
+ "inReplyTo": "request-id",
92
+ "dataset": "Default",
93
+ "body": {
94
+ "table": "Memos",
95
+ "name": "tags",
96
+ "type": "Vector",
97
+ "valueType": "ShortText",
98
+ "vectorOptions": {
99
+ "weight": true
100
+ }
101
+ },
102
+ "type": "dump.column"
103
+ }
104
+ {
105
+ "inReplyTo": "request-id",
106
+ "dataset": "Default",
107
+ "type": "dump.end"
108
+ }
@@ -0,0 +1,5 @@
1
+ #@require-catalog-version 2
2
+ {
3
+ "type": "dump",
4
+ "dataset": "Default"
5
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "datasets": {
3
+ "Default": {
4
+ "schema": {
5
+ "Tags": {
6
+ "type": "PatriciaTrie",
7
+ "keyType": "ShortText"
8
+ },
9
+ "Memos": {
10
+ "type": "Hash",
11
+ "keyType": "ShortText",
12
+ "columns": {
13
+ "tags": {
14
+ "type": "Vector",
15
+ "valueType": "Tags"
16
+ }
17
+ }
18
+ },
19
+ "Users": {
20
+ "type": "Hash",
21
+ "keyType": "ShortText"
22
+ }
23
+ },
24
+ "fact": "Users"
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,213 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "dataset": "Default",
4
+ "type": "dump.start"
5
+ }
6
+ {
7
+ "inReplyTo": "request-id",
8
+ "dataset": "Default",
9
+ "type": "dump.start"
10
+ }
11
+ {
12
+ "inReplyTo": "request-id",
13
+ "dataset": "Default",
14
+ "type": "dump.start"
15
+ }
16
+ {
17
+ "inReplyTo": "request-id",
18
+ "statusCode": 200,
19
+ "type": "dump.result",
20
+ "body": true
21
+ }
22
+ {
23
+ "inReplyTo": "request-id",
24
+ "dataset": "Default",
25
+ "body": {
26
+ "type": "Hash",
27
+ "name": "Memos",
28
+ "keyType": "ShortText"
29
+ },
30
+ "type": "dump.table"
31
+ }
32
+ {
33
+ "inReplyTo": "request-id",
34
+ "dataset": "Default",
35
+ "body": {
36
+ "table": "Memos",
37
+ "name": "tags",
38
+ "type": "Vector",
39
+ "valueType": "Tags",
40
+ "vectorOptions": {
41
+ "weight": false
42
+ }
43
+ },
44
+ "type": "dump.column"
45
+ }
46
+ {
47
+ "inReplyTo": "request-id",
48
+ "dataset": "Default",
49
+ "body": {
50
+ "type": "PatriciaTrie",
51
+ "name": "Tags",
52
+ "keyType": "ShortText"
53
+ },
54
+ "type": "dump.table"
55
+ }
56
+ {
57
+ "inReplyTo": "request-id",
58
+ "dataset": "Default",
59
+ "body": {
60
+ "type": "Hash",
61
+ "name": "Users",
62
+ "keyType": "ShortText"
63
+ },
64
+ "type": "dump.table"
65
+ }
66
+ {
67
+ "inReplyTo": "request-id",
68
+ "dataset": "Default",
69
+ "body": {
70
+ "table": "Memos",
71
+ "key": "Groonga newbie",
72
+ "values": {
73
+ "tags": [
74
+ "Groonga",
75
+ "column store"
76
+ ]
77
+ }
78
+ },
79
+ "type": "dump.record"
80
+ }
81
+ {
82
+ "inReplyTo": "request-id",
83
+ "dataset": "Default",
84
+ "type": "dump.end"
85
+ }
86
+ {
87
+ "inReplyTo": "request-id",
88
+ "dataset": "Default",
89
+ "body": {
90
+ "type": "Hash",
91
+ "name": "Memos",
92
+ "keyType": "ShortText"
93
+ },
94
+ "type": "dump.table"
95
+ }
96
+ {
97
+ "inReplyTo": "request-id",
98
+ "dataset": "Default",
99
+ "body": {
100
+ "table": "Memos",
101
+ "name": "tags",
102
+ "type": "Vector",
103
+ "valueType": "Tags",
104
+ "vectorOptions": {
105
+ "weight": false
106
+ }
107
+ },
108
+ "type": "dump.column"
109
+ }
110
+ {
111
+ "inReplyTo": "request-id",
112
+ "dataset": "Default",
113
+ "body": {
114
+ "type": "PatriciaTrie",
115
+ "name": "Tags",
116
+ "keyType": "ShortText"
117
+ },
118
+ "type": "dump.table"
119
+ }
120
+ {
121
+ "inReplyTo": "request-id",
122
+ "dataset": "Default",
123
+ "body": {
124
+ "type": "Hash",
125
+ "name": "Users",
126
+ "keyType": "ShortText"
127
+ },
128
+ "type": "dump.table"
129
+ }
130
+ {
131
+ "inReplyTo": "request-id",
132
+ "dataset": "Default",
133
+ "body": {
134
+ "table": "Memos",
135
+ "key": "Groonga newbie",
136
+ "values": {
137
+ "tags": [
138
+ "Groonga",
139
+ "column store"
140
+ ]
141
+ }
142
+ },
143
+ "type": "dump.record"
144
+ }
145
+ {
146
+ "inReplyTo": "request-id",
147
+ "dataset": "Default",
148
+ "type": "dump.end"
149
+ }
150
+ {
151
+ "inReplyTo": "request-id",
152
+ "dataset": "Default",
153
+ "body": {
154
+ "type": "Hash",
155
+ "name": "Memos",
156
+ "keyType": "ShortText"
157
+ },
158
+ "type": "dump.table"
159
+ }
160
+ {
161
+ "inReplyTo": "request-id",
162
+ "dataset": "Default",
163
+ "body": {
164
+ "table": "Memos",
165
+ "name": "tags",
166
+ "type": "Vector",
167
+ "valueType": "Tags",
168
+ "vectorOptions": {
169
+ "weight": false
170
+ }
171
+ },
172
+ "type": "dump.column"
173
+ }
174
+ {
175
+ "inReplyTo": "request-id",
176
+ "dataset": "Default",
177
+ "body": {
178
+ "type": "PatriciaTrie",
179
+ "name": "Tags",
180
+ "keyType": "ShortText"
181
+ },
182
+ "type": "dump.table"
183
+ }
184
+ {
185
+ "inReplyTo": "request-id",
186
+ "dataset": "Default",
187
+ "body": {
188
+ "type": "Hash",
189
+ "name": "Users",
190
+ "keyType": "ShortText"
191
+ },
192
+ "type": "dump.table"
193
+ }
194
+ {
195
+ "inReplyTo": "request-id",
196
+ "dataset": "Default",
197
+ "body": {
198
+ "table": "Memos",
199
+ "key": "Groonga newbie",
200
+ "values": {
201
+ "tags": [
202
+ "Groonga",
203
+ "column store"
204
+ ]
205
+ }
206
+ },
207
+ "type": "dump.record"
208
+ }
209
+ {
210
+ "inReplyTo": "request-id",
211
+ "dataset": "Default",
212
+ "type": "dump.end"
213
+ }
@@ -0,0 +1,21 @@
1
+ #@require-catalog-version 2
2
+ #@disable-logging
3
+ {
4
+ "type": "add",
5
+ "dataset": "Default",
6
+ "body": {
7
+ "table": "Memos",
8
+ "key": "Groonga newbie",
9
+ "values": {
10
+ "tags" : [
11
+ "Groonga",
12
+ "column store"
13
+ ]
14
+ }
15
+ }
16
+ }
17
+ #@enable-logging
18
+ {
19
+ "type": "dump",
20
+ "dataset": "Default"
21
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "datasets": {
3
+ "Default": {
4
+ "schema": {
5
+ "Logs": {
6
+ "type": "Array",
7
+ "columns": {}
8
+ }
9
+ },
10
+ "fact": "Logs"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "inReplyTo": "request-id",
3
+ "dataset": "Default",
4
+ "type": "dump.start"
5
+ }
6
+ {
7
+ "inReplyTo": "request-id",
8
+ "dataset": "Default",
9
+ "type": "dump.start"
10
+ }
11
+ {
12
+ "inReplyTo": "request-id",
13
+ "dataset": "Default",
14
+ "type": "dump.start"
15
+ }
16
+ {
17
+ "inReplyTo": "request-id",
18
+ "statusCode": 200,
19
+ "type": "dump.result",
20
+ "body": true
21
+ }
22
+ {
23
+ "inReplyTo": "request-id",
24
+ "dataset": "Default",
25
+ "body": {
26
+ "type": "Array",
27
+ "name": "Logs"
28
+ },
29
+ "type": "dump.table"
30
+ }
31
+ {
32
+ "inReplyTo": "request-id",
33
+ "dataset": "Default",
34
+ "type": "dump.end"
35
+ }
36
+ {
37
+ "inReplyTo": "request-id",
38
+ "dataset": "Default",
39
+ "body": {
40
+ "type": "Array",
41
+ "name": "Logs"
42
+ },
43
+ "type": "dump.table"
44
+ }
45
+ {
46
+ "inReplyTo": "request-id",
47
+ "dataset": "Default",
48
+ "type": "dump.end"
49
+ }
50
+ {
51
+ "inReplyTo": "request-id",
52
+ "dataset": "Default",
53
+ "body": {
54
+ "type": "Array",
55
+ "name": "Logs"
56
+ },
57
+ "type": "dump.table"
58
+ }
59
+ {
60
+ "inReplyTo": "request-id",
61
+ "dataset": "Default",
62
+ "type": "dump.end"
63
+ }