Navigation Menu

Skip to content

Commit

Permalink
Fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 20, 2014
1 parent a1764cf commit 00a93e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions new-interface/sorter-builder.hpp
Expand Up @@ -11,9 +11,12 @@ enum SortOrder {
};

struct SorterOptions {
// 整列の結果が保証されるのは [offset, offset + limit) の範囲である
// なお,行 ID を整列条件に加えれば安定な整列になる
// 整列後のレコード一覧から先頭の offset 件を破棄する
// 0 以上でなければならない
int64_t offset;

// limit 件を超える分については破棄する.
// 1 以上でなければならない.
int64_t limit;

SorterOptions();
Expand Down Expand Up @@ -44,6 +47,7 @@ class Sorter {
//
// 新しい条件は末尾に追加されるため,
// 優先順位の高い整列条件から順に追加しなければならない.
// 行 ID を最後に加えれば安定な整列になる.
//
// 失敗する状況としては,以下のようなものが挙げられる.
// - 式の評価結果が大小関係を持たない型になる.
Expand Down

0 comments on commit 00a93e3

Please sign in to comment.