Kouhei Sutou
null+****@clear*****
Fri Mar 24 10:26:17 JST 2017
Kouhei Sutou 2017-03-24 10:26:17 +0900 (Fri, 24 Mar 2017) New Revision: d757f366e1e49ccf34089ef06aea1a66a045ba17 https://github.com/groonga/groonga/commit/d757f366e1e49ccf34089ef06aea1a66a045ba17 Message: doc: create a section for window function Added files: doc/source/reference/window_function.rst Modified files: doc/files.am doc/locale/ja/LC_MESSAGES/news.po doc/source/news.rst doc/source/news/6.x.rst doc/source/reference.rst Renamed files: doc/source/reference/window_functions/record_number.rst (from doc/source/reference/functions/record_number.rst) doc/source/reference/window_functions/window_record_number.rst (from doc/source/reference/functions/window_record_number.rst) doc/source/reference/window_functions/window_sum.rst (from doc/source/reference/functions/window_sum.rst) Modified: doc/files.am (+18 -12) =================================================================== --- doc/files.am 2017-03-23 18:06:33 +0900 (13fd1b3) +++ doc/files.am 2017-03-24 10:26:17 +0900 (d3a9cad) @@ -251,6 +251,7 @@ absolute_source_files = \ $(top_srcdir)/doc/source/example/reference/commands/select/table_nonexistent.log \ $(top_srcdir)/doc/source/example/reference/commands/select/usage_drilldown.log \ $(top_srcdir)/doc/source/example/reference/commands/select/usage_drilldown_only_query.log \ + $(top_srcdir)/doc/source/example/reference/commands/select/usage_dynamic_column.log \ $(top_srcdir)/doc/source/example/reference/commands/select/usage_setup.log \ $(top_srcdir)/doc/source/example/reference/commands/shutdown/default.log \ $(top_srcdir)/doc/source/example/reference/commands/shutdown/graceful.log \ @@ -798,7 +799,6 @@ absolute_source_files = \ $(top_srcdir)/doc/source/reference/functions/prefix_rk_search.rst \ $(top_srcdir)/doc/source/reference/functions/query.rst \ $(top_srcdir)/doc/source/reference/functions/rand.rst \ - $(top_srcdir)/doc/source/reference/functions/record_number.rst \ $(top_srcdir)/doc/source/reference/functions/snippet_html.rst \ $(top_srcdir)/doc/source/reference/functions/string_substring.rst \ $(top_srcdir)/doc/source/reference/functions/sub_filter.rst \ @@ -811,8 +811,6 @@ absolute_source_files = \ $(top_srcdir)/doc/source/reference/functions/time_classify_year.rst \ $(top_srcdir)/doc/source/reference/functions/vector_size.rst \ $(top_srcdir)/doc/source/reference/functions/vector_slice.rst \ - $(top_srcdir)/doc/source/reference/functions/window_record_number.rst \ - $(top_srcdir)/doc/source/reference/functions/window_sum.rst \ $(top_srcdir)/doc/source/reference/grn_expr.rst \ $(top_srcdir)/doc/source/reference/grn_expr/query_syntax.rst \ $(top_srcdir)/doc/source/reference/grn_expr/script_syntax.rst \ @@ -841,6 +839,10 @@ absolute_source_files = \ $(top_srcdir)/doc/source/reference/tokenizers.rst \ $(top_srcdir)/doc/source/reference/tuning.rst \ $(top_srcdir)/doc/source/reference/types.rst \ + $(top_srcdir)/doc/source/reference/window_function.rst \ + $(top_srcdir)/doc/source/reference/window_functions/record_number.rst \ + $(top_srcdir)/doc/source/reference/window_functions/window_record_number.rst \ + $(top_srcdir)/doc/source/reference/window_functions/window_sum.rst \ $(top_srcdir)/doc/source/server.rst \ $(top_srcdir)/doc/source/server/gqtp.rst \ $(top_srcdir)/doc/source/server/http.rst \ @@ -1133,6 +1135,7 @@ source_files_relative_from_doc_dir = \ source/example/reference/commands/select/table_nonexistent.log \ source/example/reference/commands/select/usage_drilldown.log \ source/example/reference/commands/select/usage_drilldown_only_query.log \ + source/example/reference/commands/select/usage_dynamic_column.log \ source/example/reference/commands/select/usage_setup.log \ source/example/reference/commands/shutdown/default.log \ source/example/reference/commands/shutdown/graceful.log \ @@ -1680,7 +1683,6 @@ source_files_relative_from_doc_dir = \ source/reference/functions/prefix_rk_search.rst \ source/reference/functions/query.rst \ source/reference/functions/rand.rst \ - source/reference/functions/record_number.rst \ source/reference/functions/snippet_html.rst \ source/reference/functions/string_substring.rst \ source/reference/functions/sub_filter.rst \ @@ -1693,8 +1695,6 @@ source_files_relative_from_doc_dir = \ source/reference/functions/time_classify_year.rst \ source/reference/functions/vector_size.rst \ source/reference/functions/vector_slice.rst \ - source/reference/functions/window_record_number.rst \ - source/reference/functions/window_sum.rst \ source/reference/grn_expr.rst \ source/reference/grn_expr/query_syntax.rst \ source/reference/grn_expr/script_syntax.rst \ @@ -1723,6 +1723,10 @@ source_files_relative_from_doc_dir = \ source/reference/tokenizers.rst \ source/reference/tuning.rst \ source/reference/types.rst \ + source/reference/window_function.rst \ + source/reference/window_functions/record_number.rst \ + source/reference/window_functions/window_record_number.rst \ + source/reference/window_functions/window_sum.rst \ source/server.rst \ source/server/gqtp.rst \ source/server/http.rst \ @@ -2049,7 +2053,6 @@ html_files_relative_from_locale_dir = \ html/_sources/reference/functions/prefix_rk_search.txt \ html/_sources/reference/functions/query.txt \ html/_sources/reference/functions/rand.txt \ - html/_sources/reference/functions/record_number.txt \ html/_sources/reference/functions/snippet_html.txt \ html/_sources/reference/functions/string_substring.txt \ html/_sources/reference/functions/sub_filter.txt \ @@ -2062,8 +2065,6 @@ html_files_relative_from_locale_dir = \ html/_sources/reference/functions/time_classify_year.txt \ html/_sources/reference/functions/vector_size.txt \ html/_sources/reference/functions/vector_slice.txt \ - html/_sources/reference/functions/window_record_number.txt \ - html/_sources/reference/functions/window_sum.txt \ html/_sources/reference/grn_expr.txt \ html/_sources/reference/grn_expr/query_syntax.txt \ html/_sources/reference/grn_expr/script_syntax.txt \ @@ -2091,6 +2092,10 @@ html_files_relative_from_locale_dir = \ html/_sources/reference/tokenizers.txt \ html/_sources/reference/tuning.txt \ html/_sources/reference/types.txt \ + html/_sources/reference/window_function.txt \ + html/_sources/reference/window_functions/record_number.txt \ + html/_sources/reference/window_functions/window_record_number.txt \ + html/_sources/reference/window_functions/window_sum.txt \ html/_sources/server.txt \ html/_sources/server/gqtp.txt \ html/_sources/server/http.txt \ @@ -2318,7 +2323,6 @@ html_files_relative_from_locale_dir = \ html/reference/functions/prefix_rk_search.html \ html/reference/functions/query.html \ html/reference/functions/rand.html \ - html/reference/functions/record_number.html \ html/reference/functions/snippet_html.html \ html/reference/functions/string_substring.html \ html/reference/functions/sub_filter.html \ @@ -2331,8 +2335,6 @@ html_files_relative_from_locale_dir = \ html/reference/functions/time_classify_year.html \ html/reference/functions/vector_size.html \ html/reference/functions/vector_slice.html \ - html/reference/functions/window_record_number.html \ - html/reference/functions/window_sum.html \ html/reference/grn_expr.html \ html/reference/grn_expr/query_syntax.html \ html/reference/grn_expr/script_syntax.html \ @@ -2360,6 +2362,10 @@ html_files_relative_from_locale_dir = \ html/reference/tokenizers.html \ html/reference/tuning.html \ html/reference/types.html \ + html/reference/window_function.html \ + html/reference/window_functions/record_number.html \ + html/reference/window_functions/window_record_number.html \ + html/reference/window_functions/window_sum.html \ html/search.html \ html/searchindex.js \ html/server.html \ Modified: doc/locale/ja/LC_MESSAGES/news.po (+17 -15) =================================================================== --- doc/locale/ja/LC_MESSAGES/news.po 2017-03-23 18:06:33 +0900 (1addbd1) +++ doc/locale/ja/LC_MESSAGES/news.po 2017-03-24 10:26:17 +0900 (9391925) @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.2.4\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2017-03-22 09:45+0900\n" +"PO-Revision-Date: 2017-03-24 10:25+0900\n" "Last-Translator: Masafumi Yokoyama <yokoyama �� clear-code.com>\n" "Language-Team: Japanese\n" "Language: ja\n" @@ -89,20 +89,20 @@ msgstr "" "を提供します。 [GitHub#633] [Tim Bellefleurさんが報告]" msgid "" -"[:doc:`/reference/functions/window_record_number`] Marked ``record_number`` " -"as deprecated. Use ``window_record_number`` instead. ``record_number`` is " -"still available for backward compatibility." +"[:doc:`/reference/window_functions/window_record_number`] Marked " +"``record_number`` as deprecated. Use ``window_record_number`` instead. " +"``record_number`` is still available for backward compatibility." msgstr "" -"[:doc:`/reference/functions/window_record_number`] ``record_number`` が非推奨" -"になりました。代わりに ``window_record_number`` を使ってください。 " +"[:doc:`/reference/window_functions/window_record_number`] ``record_number`` " +"が非推奨になりました。代わりに ``window_record_number`` を使ってください。 " "``record_number`` は互換性のためだけに残っています。" msgid "" -"[:doc:`/reference/functions/window_sum`] Added ``window_sum`` window " +"[:doc:`/reference/window_functions/window_sum`] Added ``window_sum`` window " "function. It's similar behavior to window function sum() on PostgreSQL." msgstr "" -"[:doc:`/reference/functions/window_sum`] ``window_sum`` ウィンドウ関数を追加" -"しました。PostgreSQLのsum()と同様のウィンドウ関数を提供します。" +"[:doc:`/reference/window_functions/window_sum`] ``window_sum`` ウィンドウ関数" +"を追加しました。PostgreSQLのsum()と同様のウィンドウ関数を提供します。" msgid "" "Supported to construct offline indexing with in-memory (temporary) " @@ -182,12 +182,13 @@ msgstr "" "と token filterを登録していて、tokenizer にエラーがあると発生していました。" msgid "" -"[:doc:`/reference/functions/window_record_number`] Fixed a bug that " +"[:doc:`/reference/window_functions/window_record_number`] Fixed a bug that " "arguments for window function is not correctly passed. [GitHub#634][Patch by " "Naoya Murakami]" msgstr "" -"[:doc:`/reference/functions/window_record_number`] ウィンドウ関数の引数が正し" -"く渡されていない不具合を修正しました。 [GitHub#634] [村上さんがパッチ提供]" +"[:doc:`/reference/window_functions/window_record_number`] ウィンドウ関数の引" +"数が正しく渡されていない不具合を修正しました。 [GitHub#634] [村上さんがパッチ" +"提供]" msgid "Thanks" msgstr "感謝" @@ -9170,10 +9171,11 @@ msgstr "" "マンスを改善しました。between()の最適化で以前のバージョンに比べ、100倍範囲検" "索が高速になる場合があります。" -msgid "[:doc:`/reference/functions/record_number`] Supported window function." +msgid "" +"[:doc:`/reference/window_functions/record_number`] Supported window function." msgstr "" -"[:doc:`/reference/functions/record_number`] ウィンドウ関数をサポートしまし" -"た。" +"[:doc:`/reference/window_functions/record_number`] ウィンドウ関数をサポートし" +"ました。" msgid "" "[experimental][:doc:`/reference/commands/select`] Supported ``--slices``." Modified: doc/source/news.rst (+5 -7) =================================================================== --- doc/source/news.rst 2017-03-23 18:06:33 +0900 (138ce9a) +++ doc/source/news.rst 2017-03-24 10:26:17 +0900 (6e480d7) @@ -42,13 +42,13 @@ Improvements provides stemming feature by ``TokenFilterStem`` token filter on CentOS 7. [GitHub#633] [Reported by Tim Bellefleur] -* [:doc:`/reference/functions/window_record_number`] Marked +* [:doc:`/reference/window_functions/window_record_number`] Marked ``record_number`` as deprecated. Use ``window_record_number`` instead. ``record_number`` is still available for backward compatibility. -* [:doc:`/reference/functions/window_sum`] Added ``window_sum`` window - function. It's similar behavior to window function sum() on +* [:doc:`/reference/window_functions/window_sum`] Added ``window_sum`` + window function. It's similar behavior to window function sum() on PostgreSQL. * Supported to construct offline indexing with in-memory (temporary) @@ -88,12 +88,10 @@ Fixes tokenizer and token filter are registered and tokenizer has an error. -* [:doc:`/reference/functions/window_record_number`] Fixed a bug that - arguments for window function is not correctly +* [:doc:`/reference/window_functions/window_record_number`] Fixed a + bug that arguments for window function is not correctly passed. [GitHub#634][Patch by Naoya Murakami] - - Thanks ^^^^^^ Modified: doc/source/news/6.x.rst (+2 -1) =================================================================== --- doc/source/news/6.x.rst 2017-03-23 18:06:33 +0900 (9a46f53) +++ doc/source/news/6.x.rst 2017-03-24 10:26:17 +0900 (7eae25d) @@ -671,7 +671,8 @@ Improvements without index. By between() optimization, there is a case that range search is 100x faster than the previous version of between(). -* [:doc:`/reference/functions/record_number`] Supported window function. +* [:doc:`/reference/window_functions/record_number`] Supported window + function. * [experimental][:doc:`/reference/commands/select`] Supported ``--slices``. Modified: doc/source/reference.rst (+1 -0) =================================================================== --- doc/source/reference.rst 2017-03-23 18:06:33 +0900 (49e6c1e) +++ doc/source/reference.rst 2017-03-24 10:26:17 +0900 (6439d87) @@ -23,6 +23,7 @@ Reference manual reference/grn_expr reference/regular_expression reference/function + reference/window_function reference/operations reference/configuration reference/alias Added: doc/source/reference/window_function.rst (+21 -0) 100644 =================================================================== --- /dev/null +++ doc/source/reference/window_function.rst 2017-03-24 10:26:17 +0900 (137c0d4) @@ -0,0 +1,21 @@ +.. -*- rst -*- + +.. highlightlang:: none + +Window function +=============== + +.. versionadded:: 6.0.3 + +Window function can be used in :doc:`commands/select`. See +:ref:`select-window-function-related-parameters` for details. + +This section describes window function and built-in window functions. + +TODO: Add documentations about window function. + +.. toctree:: + :maxdepth: 1 + :glob: + + window_functions/* Renamed: doc/source/reference/window_functions/record_number.rst (+0 -0) 100% =================================================================== Renamed: doc/source/reference/window_functions/window_record_number.rst (+0 -0) 100% =================================================================== Renamed: doc/source/reference/window_functions/window_sum.rst (+0 -0) 100% =================================================================== -------------- next part -------------- HTML����������������������������...Download