[Groonga-commit] groonga/grnxx at 00a93e3 [master] Fix comments.

Back to archive index

susumu.yata null+****@clear*****
Fri Jun 20 14:56:49 JST 2014


susumu.yata	2014-06-20 14:56:49 +0900 (Fri, 20 Jun 2014)

  New Revision: 00a93e346aa60082c1ff36625798057455e061a8
  https://github.com/groonga/grnxx/commit/00a93e346aa60082c1ff36625798057455e061a8

  Message:
    Fix comments.

  Modified files:
    new-interface/sorter-builder.hpp

  Modified: new-interface/sorter-builder.hpp (+6 -2)
===================================================================
--- new-interface/sorter-builder.hpp    2014-06-20 12:54:31 +0900 (d648bd7)
+++ new-interface/sorter-builder.hpp    2014-06-20 14:56:49 +0900 (8300c60)
@@ -11,9 +11,12 @@ enum SortOrder {
 };
 
 struct SorterOptions {
-  // 整列の結果が保証されるのは [offset, offset + limit) の範囲である.
-  // なお,行 ID を整列条件に加えれば安定な整列になる.
+  // 整列後のレコード一覧から先頭の offset 件を破棄する.
+  // 0 以上でなければならない.
   int64_t offset;
+
+  // limit 件を超える分については破棄する.
+  // 1 以上でなければならない.
   int64_t limit;
 
   SorterOptions();
@@ -44,6 +47,7 @@ class Sorter {
   //
   // 新しい条件は末尾に追加されるため,
   // 優先順位の高い整列条件から順に追加しなければならない.
+  // 行 ID を最後に加えれば安定な整列になる.
   //
   // 失敗する状況としては,以下のようなものが挙げられる.
   // - 式の評価結果が大小関係を持たない型になる.
-------------- next part --------------
HTML����������������������������...
Download 



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