| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create PowerSetDrilldownMemos TABLE_HASH_KEY ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create PowerSetDrilldownMemos tags COLUMN_VECTOR ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
load --table PowerSetDrilldownMemos |
| 8 |
[ |
| 9 |
{"_key": "Groonga is fast!", "tags": ["Groonga"]}, |
| 10 |
{"_key": "Mroonga uses Groonga!", "tags": ["Groonga", "Mroonga"]}, |
| 11 |
{"_key": "PGroonga uses Groonga!", "tags": ["Groonga", "PGroonga"]}, |
| 12 |
{"_key": "Mroonga and PGroonga are Groonga family", "tags": ["Groonga", "Mroonga", "PGroonga"]} |
| 13 |
] |
| 14 |
# [[0,1337566253.89858,0.000355720520019531],4] |
| 15 |
select PowerSetDrilldownMemos \ |
| 16 |
--drilldowns[tags].keys tags \ |
| 17 |
--drilldowns[tags].key_vector_expansion POWER_SET \ |
| 18 |
--drilldowns[tags].columns[power_set].stage initial \ |
| 19 |
--drilldowns[tags].columns[power_set].value _key \ |
| 20 |
--drilldowns[tags].columns[power_set].flags COLUMN_VECTOR \ |
| 21 |
--drilldowns[tags].sort_keys 'power_set' \ |
| 22 |
--drilldowns[tags].output_columns 'power_set, _nsubrecs' \ |
| 23 |
--limit 0 |
| 24 |
# [ |
| 25 |
# [ |
| 26 |
# 0, |
| 27 |
# 1337566253.89858, |
| 28 |
# 0.000355720520019531 |
| 29 |
# ], |
| 30 |
# [ |
| 31 |
# [ |
| 32 |
# [ |
| 33 |
# 4 |
| 34 |
# ], |
| 35 |
# [ |
| 36 |
# [ |
| 37 |
# "_id", |
| 38 |
# "UInt32" |
| 39 |
# ], |
| 40 |
# [ |
| 41 |
# "_key", |
| 42 |
# "ShortText" |
| 43 |
# ], |
| 44 |
# [ |
| 45 |
# "tags", |
| 46 |
# "ShortText" |
| 47 |
# ] |
| 48 |
# ] |
| 49 |
# ], |
| 50 |
# { |
| 51 |
# "tags": [ |
| 52 |
# [ |
| 53 |
# 7 |
| 54 |
# ], |
| 55 |
# [ |
| 56 |
# [ |
| 57 |
# "power_set", |
| 58 |
# "Text" |
| 59 |
# ], |
| 60 |
# [ |
| 61 |
# "_nsubrecs", |
| 62 |
# "Int32" |
| 63 |
# ] |
| 64 |
# ], |
| 65 |
# [ |
| 66 |
# [ |
| 67 |
# "Groonga" |
| 68 |
# ], |
| 69 |
# 4 |
| 70 |
# ], |
| 71 |
# [ |
| 72 |
# [ |
| 73 |
# "Mroonga" |
| 74 |
# ], |
| 75 |
# 2 |
| 76 |
# ], |
| 77 |
# [ |
| 78 |
# [ |
| 79 |
# "PGroonga" |
| 80 |
# ], |
| 81 |
# 2 |
| 82 |
# ], |
| 83 |
# [ |
| 84 |
# [ |
| 85 |
# "Groonga", |
| 86 |
# "Mroonga" |
| 87 |
# ], |
| 88 |
# 2 |
| 89 |
# ], |
| 90 |
# [ |
| 91 |
# [ |
| 92 |
# "Groonga", |
| 93 |
# "PGroonga" |
| 94 |
# ], |
| 95 |
# 2 |
| 96 |
# ], |
| 97 |
# [ |
| 98 |
# [ |
| 99 |
# "Mroonga", |
| 100 |
# "PGroonga" |
| 101 |
# ], |
| 102 |
# 1 |
| 103 |
# ], |
| 104 |
# [ |
| 105 |
# [ |
| 106 |
# "Groonga", |
| 107 |
# "Mroonga", |
| 108 |
# "PGroonga" |
| 109 |
# ], |
| 110 |
# 1 |
| 111 |
# ] |
| 112 |
# ] |
| 113 |
# } |
| 114 |
# ] |
| 115 |
# ] |