Yasuhiro Horimoto
null+****@clear*****
Tue Feb 20 22:44:19 JST 2018
Yasuhiro Horimoto 2018-02-20 22:44:19 +0900 (Tue, 20 Feb 2018) New Revision: 54438aed06c1fab4e6889ac6974bd44c34352fa9 https://github.com/groonga/groonga/commit/54438aed06c1fab4e6889ac6974bd44c34352fa9 Merged 3cb020c: Merge pull request #828 from komainu8/logical_range_filter_doc Message: doc logical_range_filter: add execution examples of logical_table Added files: doc/source/example/reference/commands/logical_range_filter/logical_table_existent.log doc/source/example/reference/commands/logical_range_filter/logical_table_nonexistent.log Modified files: doc/source/reference/commands/logical_range_filter.rst Added: doc/source/example/reference/commands/logical_range_filter/logical_table_existent.log (+70 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/reference/commands/logical_range_filter/logical_table_existent.log 2018-02-20 22:44:19 +0900 (fc731a9a6) @@ -0,0 +1,70 @@ +Execution example:: + + logical_range_filter --logical_table Entries --shard_key created_at + + # [ + # [ + # 0, + # 1519131606.676006, + # 0.0006020069122314453 + # ], + # [ + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "content", + # "Text" + # ], + # [ + # "created_at", + # "Time" + # ], + # [ + # "n_likes", + # "UInt32" + # ], + # [ + # "tag", + # "ShortText" + # ] + # ], + # [ + # "The first post!", + # "Welcome! This is my first post!", + # 1436281200.0, + # 5, + # "Hello" + # ], + # [ + # "Groonga", + # "I started to use Groonga. It's very fast!", + # 1436284800.0, + # 10, + # "Groonga" + # ], + # [ + # "Mroonga", + # "I also started to use Mroonga. It's also very fast! Really fast!", + # 1436288400.0, + # 15, + # "Groonga" + # ], + # [ + # "Good-bye Senna", + # "I migrated all Senna system!", + # 1436367600.0, + # 3, + # "Senna" + # ], + # [ + # "Good-bye Tritonn", + # "I also migrated all Tritonn system!", + # 1436371200.0, + # 3, + # "Senna" + # ] + # ] + # ] Added: doc/source/example/reference/commands/logical_range_filter/logical_table_nonexistent.log (+18 -0) 100644 =================================================================== --- /dev/null +++ doc/source/example/reference/commands/logical_range_filter/logical_table_nonexistent.log 2018-02-20 22:44:19 +0900 (5455ae1d6) @@ -0,0 +1,18 @@ +Execution example:: + + logical_range_filter --logical_table Nonexistent --shard_key created_at + # [ + # [ + # -22, + # 1519132441.586192, + # 0.0005924701690673828, + # "[logical_range_filter] no shard exists: logical_table: <Nonexistent>: shard_key: <created_at>", + # [ + # [ + # "Groonga::Sharding::LogicalRangeFilterCommand::Executor.execute", + # "/tmp/local/lib/groonga/plugins/sharding/logical_range_filter.rb", + # 193 + # ] + # ] + # ] + # ] Modified: doc/source/reference/commands/logical_range_filter.rst (+12 -4) =================================================================== --- doc/source/reference/commands/logical_range_filter.rst 2018-02-19 15:33:02 +0900 (d3e16004d) +++ doc/source/reference/commands/logical_range_filter.rst 2018-02-20 22:44:19 +0900 (533693bfa) @@ -219,11 +219,19 @@ There are required parameters, ``logical_table`` and ``shard_key``. """"""""""""""""" Specifies logical table name. It means table name without -``_YYYYMMDD`` postfix. If you use actual table such as -``Logs_20150203``, ``Logs_20150203`` and so on, logical table name is -``Logs``. +``_YYYYMMDD`` postfix. If you use actual table such as +``Entries_20150708``, ``Entries_20150709`` and so on, logical table +name is ``Entries``. -TODO: Add examples +.. groonga-command +.. include:: ../../example/reference/commands/logical_range_filter/logical_table_existent.log +.. logical_range_filter --logical_table Entries --shard_key created_at + +If nonexistent table is specified, an error is returned. + +.. groonga-command +.. include:: ../../example/reference/commands/logical_range_filter/logical_table_nonexistent.log +.. logical_range_filter --logical_table Nonexistent --shard_key created_at ``shard_key`` """"""""""""" -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180220/694c98d9/attachment-0001.htm