Debian Codegraph @

doc/source/example/reference/commands/select/drilldowns_label_table.log

raw
1 Execution example::
2
3 table_create NestedDrilldownTags TABLE_PAT_KEY ShortText
4 # [[0,1337566253.89858,0.000355720520019531],true]
5 column_create NestedDrilldownTags category COLUMN_SCALAR ShortText
6 # [[0,1337566253.89858,0.000355720520019531],true]
7 table_create NestedDrilldownMemos TABLE_HASH_KEY ShortText
8 # [[0,1337566253.89858,0.000355720520019531],true]
9 column_create NestedDrilldownMemos tag COLUMN_SCALAR NestedDrilldownTags
10 # [[0,1337566253.89858,0.000355720520019531],true]
11 load --table NestedDrilldownMemos
12 [
13 {"_key": "Groonga is fast!", "tag": "Groonga"},
14 {"_key": "Groonga sticker!", "tag": "Groonga"},
15 {"_key": "Mroonga sticker!", "tag": "Mroonga"},
16 {"_key": "Rroonga is fast!", "tag": "Rroonga"}
17 ]
18 # [[0,1337566253.89858,0.000355720520019531],4]
19 load --table NestedDrilldownTags
20 [
21 {"_key": "Groonga", "category": "C/C++"},
22 {"_key": "Mroonga", "category": "C/C++"},
23 {"_key": "PGroonga", "category": "C/C++"},
24 {"_key": "Rroonga", "category": "Ruby"}
25 ]
26 # [[0,1337566253.89858,0.000355720520019531],4]
27 select NestedDrilldownMemos \
28 --drilldowns[Tag].keys tag \
29 --drilldowns[Tag].output_columns _key \
30 --drilldowns[Category].table Tag \
31 --drilldowns[Category].keys category \
32 --drilldowns[Category].output_columns _key,_nsubrecs
33 # [
34 # [
35 # 0,
36 # 1337566253.89858,
37 # 0.000355720520019531
38 # ],
39 # [
40 # [
41 # [
42 # 4
43 # ],
44 # [
45 # [
46 # "_id",
47 # "UInt32"
48 # ],
49 # [
50 # "_key",
51 # "ShortText"
52 # ],
53 # [
54 # "tag",
55 # "NestedDrilldownTags"
56 # ]
57 # ],
58 # [
59 # 1,
60 # "Groonga is fast!",
61 # "Groonga"
62 # ],
63 # [
64 # 2,
65 # "Groonga sticker!",
66 # "Groonga"
67 # ],
68 # [
69 # 3,
70 # "Mroonga sticker!",
71 # "Mroonga"
72 # ],
73 # [
74 # 4,
75 # "Rroonga is fast!",
76 # "Rroonga"
77 # ]
78 # ],
79 # {
80 # "Tag": [
81 # [
82 # 3
83 # ],
84 # [
85 # [
86 # "_key",
87 # "ShortText"
88 # ]
89 # ],
90 # [
91 # "Groonga"
92 # ],
93 # [
94 # "Mroonga"
95 # ],
96 # [
97 # "Rroonga"
98 # ]
99 # ],
100 # "Category": [
101 # [
102 # 2
103 # ],
104 # [
105 # [
106 # "_key",
107 # "ShortText"
108 # ],
109 # [
110 # "_nsubrecs",
111 # "Int32"
112 # ]
113 # ],
114 # [
115 # "C/C++",
116 # 2
117 # ],
118 # [
119 # "Ruby",
120 # 1
121 # ]
122 # ]
123 # }
124 # ]
125 # ]