Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| table_create Tags TABLE_PAT_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| table_create Memos TABLE_HASH_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos tag COLUMN_SCALAR Tags | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos date COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| load --table Memos | ||
| [ | ||
| {"_key": "groonga is fast!", "tag": "groonga", "date": "2013-06-21"}, | ||
| {"_key": "mroonga is fast!", "tag": "mroonga", "date": "2013-06-21"}, | ||
| {"_key": "groonga sticker!", "tag": "groonga", "date": "2013-06-22"}, | ||
| {"_key": "rroonga is fast!", "tag": "rroonga", "date": "2013-06-23"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| select Memos --drilldown tag,date | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| [ | ||
| [ | ||
| [ | ||
| 4 | ||
| ], | ||
| [ | ||
| [ | ||
| "_id", | ||
| "UInt32" | ||
| ], | ||
| [ | ||
| "_key", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "date", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "tag", | ||
| "Tags" | ||
| ] | ||
| ], | ||
| [ | ||
| 1, | ||
| "groonga is fast!", | ||
| "2013-06-21", | ||
| "groonga" | ||
| ], | ||
| [ | ||
| 2, | ||
| "mroonga is fast!", | ||
| "2013-06-21", | ||
| "mroonga" | ||
| ], | ||
| [ | ||
| 3, | ||
| "groonga sticker!", | ||
| "2013-06-22", | ||
| "groonga" | ||
| ], | ||
| [ | ||
| 4, | ||
| "rroonga is fast!", | ||
| "2013-06-23", | ||
| "rroonga" | ||
| ] | ||
| ], | ||
| [ | ||
| [ | ||
| 3 | ||
| ], | ||
| [ | ||
| [ | ||
| "_key", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "_nsubrecs", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "groonga", | ||
| 2 | ||
| ], | ||
| [ | ||
| "mroonga", | ||
| 1 | ||
| ], | ||
| [ | ||
| "rroonga", | ||
| 1 | ||
| ] | ||
| ], | ||
| [ | ||
| [ | ||
| 3 | ||
| ], | ||
| [ | ||
| [ | ||
| "_key", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "_nsubrecs", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "2013-06-21", | ||
| 2 | ||
| ], | ||
| [ | ||
| "2013-06-22", | ||
| 1 | ||
| ], | ||
| [ | ||
| "2013-06-23", | ||
| 1 | ||
| ] | ||
| ] | ||
| ] | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| table_create Tags TABLE_PAT_KEY ShortText | ||
|
|
||
| table_create Memos TABLE_HASH_KEY ShortText | ||
| column_create Memos tag COLUMN_SCALAR Tags | ||
| column_create Memos date COLUMN_SCALAR ShortText | ||
|
|
||
| load --table Memos | ||
| [ | ||
| {"_key": "groonga is fast!", "tag": "groonga", "date": "2013-06-21"}, | ||
| {"_key": "mroonga is fast!", "tag": "mroonga", "date": "2013-06-21"}, | ||
| {"_key": "groonga sticker!", "tag": "groonga", "date": "2013-06-22"}, | ||
| {"_key": "rroonga is fast!", "tag": "rroonga", "date": "2013-06-23"} | ||
| ] | ||
|
|
||
| select Memos --drilldown tag,date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| table_create Tags TABLE_PAT_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| table_create Memos TABLE_HASH_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Memos tag COLUMN_SCALAR Tags | ||
| [[0,0.0,0.0],true] | ||
| load --table Memos | ||
| [ | ||
| {"_key": "groonga is fast!", "tag": "groonga"}, | ||
| {"_key": "mroonga is fast!", "tag": "mroonga"}, | ||
| {"_key": "groonga sticker!", "tag": "groonga"}, | ||
| {"_key": "rroonga is fast!", "tag": "rroonga"} | ||
| ] | ||
| [[0,0.0,0.0],4] | ||
| select Memos --drilldown tag | ||
| [ | ||
| [ | ||
| 0, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| [ | ||
| [ | ||
| [ | ||
| 4 | ||
| ], | ||
| [ | ||
| [ | ||
| "_id", | ||
| "UInt32" | ||
| ], | ||
| [ | ||
| "_key", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "tag", | ||
| "Tags" | ||
| ] | ||
| ], | ||
| [ | ||
| 1, | ||
| "groonga is fast!", | ||
| "groonga" | ||
| ], | ||
| [ | ||
| 2, | ||
| "mroonga is fast!", | ||
| "mroonga" | ||
| ], | ||
| [ | ||
| 3, | ||
| "groonga sticker!", | ||
| "groonga" | ||
| ], | ||
| [ | ||
| 4, | ||
| "rroonga is fast!", | ||
| "rroonga" | ||
| ] | ||
| ], | ||
| [ | ||
| [ | ||
| 3 | ||
| ], | ||
| [ | ||
| [ | ||
| "_key", | ||
| "ShortText" | ||
| ], | ||
| [ | ||
| "_nsubrecs", | ||
| "Int32" | ||
| ] | ||
| ], | ||
| [ | ||
| "groonga", | ||
| 2 | ||
| ], | ||
| [ | ||
| "mroonga", | ||
| 1 | ||
| ], | ||
| [ | ||
| "rroonga", | ||
| 1 | ||
| ] | ||
| ] | ||
| ] | ||
| ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| table_create Tags TABLE_PAT_KEY ShortText | ||
|
|
||
| table_create Memos TABLE_HASH_KEY ShortText | ||
| column_create Memos tag COLUMN_SCALAR Tags | ||
|
|
||
| load --table Memos | ||
| [ | ||
| {"_key": "groonga is fast!", "tag": "groonga"}, | ||
| {"_key": "mroonga is fast!", "tag": "mroonga"}, | ||
| {"_key": "groonga sticker!", "tag": "groonga"}, | ||
| {"_key": "rroonga is fast!", "tag": "rroonga"} | ||
| ] | ||
|
|
||
| select Memos --drilldown tag |