[Groonga-commit] groonga/groonga at 3d6c1bb [master] doc dump: add sort_hash_table option

Back to archive index

HorimotoYasuhiro null+****@clear*****
Fri Aug 25 14:27:47 JST 2017


HorimotoYasuhiro	2017-07-13 12:06:07 +0900 (Thu, 13 Jul 2017)

  New Revision: 3d6c1bbdf1ece2f63a5ea2b3afce70b2b17bf875
  https://github.com/groonga/groonga/commit/3d6c1bbdf1ece2f63a5ea2b3afce70b2b17bf875

  Merged 8014001: Merge pull request #737 from komainu8/feature/add_option_in_document_of_dump_command

  Message:
    doc dump: add sort_hash_table option

  Modified files:
    doc/locale/ja/LC_MESSAGES/reference.po
    doc/source/reference/commands/dump.rst

  Modified: doc/locale/ja/LC_MESSAGES/reference.po (+16 -0)
===================================================================
--- doc/locale/ja/LC_MESSAGES/reference.po    2017-07-12 10:41:15 +0900 (923bf9619)
+++ doc/locale/ja/LC_MESSAGES/reference.po    2017-07-13 12:06:07 +0900 (5528df51d)
@@ -6247,6 +6247,9 @@ msgstr "レコードのみダンプ::"
 msgid "Dump schema only::"
 msgstr "スキーマのみダンプ:"
 
+msgid "Dump sorted hash table data::"
+msgstr "ハッシュテーブルのデータをソートしてダンプ::"
+
 msgid "There are optional parameters."
 msgstr "いくつか省略可能な引数があります。"
 
@@ -6301,6 +6304,19 @@ msgstr ""
 "インデックスを出力に含めるかどうかをカスタマイズすることができます。インデッ"
 "クスを出力から除外する場合、 ``no`` を指定します。"
 
+msgid "``sort_hash_table``"
+msgstr ""
+
+msgid ""
+"You can ascending sort the output of hash table when it contains hash table. "
+"To don't sort the output of hash table, specify ``no``."
+msgstr ""
+"ハッシュテーブルの出力を昇順にソートして出力することができます。レコードを"
+"ソートしないで出力する場合、 ``no`` を指定します。"
+
+msgid "The default value is ``no``."
+msgstr "デフォルト値は ``no`` です。"
+
 msgid ""
 "データベースのスキーマとデータをGroongaの組み込みコマンド呼び出し形式で出力し"
 "ます。output_type指定は無視されます。"

  Modified: doc/source/reference/commands/dump.rst (+38 -0)
===================================================================
--- doc/source/reference/commands/dump.rst    2017-07-12 10:41:15 +0900 (ac6b3f179)
+++ doc/source/reference/commands/dump.rst    2017-07-13 12:06:07 +0900 (1a0cb1ddb)
@@ -34,6 +34,7 @@ Syntax
         [dump_schema]
         [dump_records]
         [dump_indexes]
+        [sort_hash_table]
 
 Usage
 -----
@@ -50,6 +51,7 @@ Here is the sample schema and data to check dump behaviour::
   load --table Bookmarks
   [
   {"_key":"Groonga", "title":"Introduction to Groonga"},
+  {"_key":"PGroonga", "title":"Introduction to PGroonga"},
   {"_key":"Mroonga", "title":"Introduction to Mroonga"}
   ]
   load --table Sites
@@ -82,6 +84,7 @@ Dump all data in database::
   [
   ["_key","title"],
   ["Groonga","Introduction to Groonga"],
+  ["PGroonga","Introduction to PGroonga"],
   ["Mroonga","Introduction to Mroonga"]
   ]
   
@@ -104,6 +107,7 @@ Dump schema and specific table data::
   [
   ["_key","title"],
   ["Groonga","Introduction to Groonga"],
+  ["PGroonga","Introduction to PGroonga"],
   ["Mroonga","Introduction to Mroonga"]
   ]
   
@@ -128,6 +132,7 @@ Dump records only::
   [
   ["_key","title"],
   ["Groonga","Introduction to Groonga"],
+  ["PGroonga","Introduction to PGroonga"],
   ["Mroonga","Introduction to Mroonga"]
   ]
 
@@ -142,6 +147,29 @@ Dump schema only::
   
   table_create Lexicon TABLE_PAT_KEY ShortText
 
+Dump sorted hash table data::
+
+  > dump Bookmarks --sort_hash_table yes
+  plugin_register token_filters/stop_word
+
+  table_create Sites TABLE_NO_KEY
+  column_create Sites url COLUMN_SCALAR ShortText
+
+  table_create Bookmarks TABLE_HASH_KEY ShortText
+  column_create Bookmarks title COLUMN_SCALAR ShortText
+
+  table_create Lexicon TABLE_PAT_KEY ShortText
+
+  load --table Bookmarks
+  [
+  ["_key","title"],
+  ["Groonga","Introduction to Groonga"],
+  ["Mroonga","Introduction to Mroonga"],
+  ["PGroonga","Introduction to PGroonga"]
+  ]
+
+  column_create Lexicon bookmark_title COLUMN_INDEX Bookmarks title
+
 Parameters
 ----------
 
@@ -195,6 +223,16 @@ To exclude indexes from the output, specify ``no``.
 
 The default value is ``yes``.
 
+``sort_hash_table``
+"""""""""""""""""""
+
+.. versionadded:: 7.0.5
+
+You can ascending sort the output of hash table when it contains hash table.
+To don't sort the output of hash table, specify ``no``.
+
+The default value is ``no``.
+
 Return value
 ------------
 
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index