-
Notifications
You must be signed in to change notification settings - Fork 116
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
17 changed files
with
977 additions
and
38 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
doc/source/example/reference/commands/logical_table_remove/basic_usage_create_shards.log
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,10 @@ | ||
Execution example:: | ||
|
||
table_create Logs_20160318 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160318 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
table_create Logs_20160319 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160319 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
4 changes: 4 additions & 0 deletions
4
doc/source/example/reference/commands/logical_table_remove/basic_usage_list_shards_after.log
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,4 @@ | ||
Execution example:: | ||
|
||
logical_shard_list --logical_table Logs | ||
# [[0, 1337566253.89858, 0.000355720520019531], []] |
18 changes: 18 additions & 0 deletions
18
...source/example/reference/commands/logical_table_remove/basic_usage_list_shards_before.log
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,18 @@ | ||
Execution example:: | ||
|
||
logical_shard_list --logical_table Logs | ||
# [ | ||
# [ | ||
# 0, | ||
# 1337566253.89858, | ||
# 0.000355720520019531 | ||
# ], | ||
# [ | ||
# { | ||
# "name": "Logs_20160318" | ||
# }, | ||
# { | ||
# "name": "Logs_20160319" | ||
# } | ||
# ] | ||
# ] |
6 changes: 6 additions & 0 deletions
6
doc/source/example/reference/commands/logical_table_remove/basic_usage_remove_all.log
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,6 @@ | ||
Execution example:: | ||
|
||
logical_table_remove \ | ||
--logical_table Logs \ | ||
--shard_key timestamp | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
23 changes: 23 additions & 0 deletions
23
doc/source/example/reference/commands/logical_table_remove/remove_parts_create_shards.log
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,23 @@ | ||
Execution example:: | ||
|
||
table_create Logs_20160318 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160318 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
load --table Logs_20160318 | ||
[ | ||
{"timestamp": "2016-03-18 00:30:00"}, | ||
{"timestamp": "2016-03-18 01:00:00"}, | ||
{"timestamp": "2016-03-18 02:00:00"} | ||
] | ||
# [[0, 1337566253.89858, 0.000355720520019531], 3] | ||
table_create Logs_20160319 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160319 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
load --table Logs_20160319 | ||
[ | ||
{"timestamp": "2016-03-19 00:30:00"}, | ||
{"timestamp": "2016-03-19 01:00:00"} | ||
] | ||
# [[0, 1337566253.89858, 0.000355720520019531], 2] |
13 changes: 13 additions & 0 deletions
13
doc/source/example/reference/commands/logical_table_remove/remove_parts_dump.log
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,13 @@ | ||
Execution example:: | ||
|
||
dump | ||
# plugin_register sharding | ||
# | ||
# table_create Logs_20160318 TABLE_NO_KEY | ||
# column_create Logs_20160318 timestamp COLUMN_SCALAR Time | ||
# | ||
# load --table Logs_20160318 | ||
# [ | ||
# ["_id","timestamp"], | ||
# [1,1458228600.0] | ||
# ] |
10 changes: 10 additions & 0 deletions
10
doc/source/example/reference/commands/logical_table_remove/remove_parts_remove.log
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,10 @@ | ||
Execution example:: | ||
|
||
logical_table_remove \ | ||
--logical_table Logs \ | ||
--shard_key timestamp \ | ||
--min "2016-03-18 01:00:00" \ | ||
--min_border "include" \ | ||
--max "2016-03-19 01:30:00" \ | ||
--max_border "include" | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
10 changes: 10 additions & 0 deletions
10
doc/source/example/reference/commands/logical_table_remove/remove_with_for_shard_configm.log
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,10 @@ | ||
Execution example:: | ||
|
||
object_exist Logs_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], false] | ||
object_exist Users_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], false] | ||
object_exist NotRelated_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
object_exist Servers | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
16 changes: 16 additions & 0 deletions
16
doc/source/example/reference/commands/logical_table_remove/remove_with_for_shard_create.log
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,16 @@ | ||
Execution example:: | ||
|
||
table_create NotRelated_20160320 TABLE_PAT_KEY ShortText | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
table_create Users_20160320 TABLE_PAT_KEY ShortText | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
table_create Servers TABLE_PAT_KEY ShortText | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
table_create Logs_20160320 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160320 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160320 user COLUMN_SCALAR Users_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160320 server COLUMN_SCALAR Servers | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
7 changes: 7 additions & 0 deletions
7
doc/source/example/reference/commands/logical_table_remove/remove_with_for_shard_remove.log
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,7 @@ | ||
Execution example:: | ||
|
||
logical_table_remove \ | ||
--logical_table Logs \ | ||
--shard_key timestamp \ | ||
--dependent yes | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
6 changes: 6 additions & 0 deletions
6
doc/source/example/reference/commands/logical_table_remove/remove_with_reference_confirm.log
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,6 @@ | ||
Execution example:: | ||
|
||
object_exist Logs_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], false] | ||
object_exist Bookmarks.log_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], false] |
10 changes: 10 additions & 0 deletions
10
doc/source/example/reference/commands/logical_table_remove/remove_with_reference_create.log
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,10 @@ | ||
Execution example:: | ||
|
||
table_create Logs_20160320 TABLE_NO_KEY | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Logs_20160320 timestamp COLUMN_SCALAR Time | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
table_create Bookmarks TABLE_HASH_KEY ShortText | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] | ||
column_create Bookmarks log_20160320 COLUMN_SCALAR Logs_20160320 | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
20 changes: 20 additions & 0 deletions
20
doc/source/example/reference/commands/logical_table_remove/remove_with_reference_default.log
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,20 @@ | ||
Execution example:: | ||
|
||
logical_table_remove \ | ||
--logical_table Logs \ | ||
--shard_key timestamp | ||
# [ | ||
# [ | ||
# -2, | ||
# 1337566253.89858, | ||
# 0.000355720520019531, | ||
# "operation not permitted: <[table][remove] a column that references the table exists: <Bookmarks.log_20160320> -> <Logs_20160320", | ||
# [ | ||
# [ | ||
# "Groonga::Sharding::LogicalTableRemoveCommand.remove_table", | ||
# "/home/kou/work/c/groonga.clean/plugins/sharding/logical_table_remove.rb", | ||
# 80 | ||
# ] | ||
# ] | ||
# ] | ||
# ] |
7 changes: 7 additions & 0 deletions
7
...ource/example/reference/commands/logical_table_remove/remove_with_reference_dependent.log
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,7 @@ | ||
Execution example:: | ||
|
||
logical_table_remove \ | ||
--logical_table Logs \ | ||
--shard_key timestamp \ | ||
--dependent yes | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
4 changes: 4 additions & 0 deletions
4
doc/source/example/reference/commands/logical_table_remove/usage_register.log
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,4 @@ | ||
Execution example:: | ||
|
||
register sharding | ||
# [[0, 1337566253.89858, 0.000355720520019531], true] |
Oops, something went wrong.