MongoCursor::limit
(PECL mongo >=0.9.0)
MongoCursor::limit — 返す結果の数を制限する
説明
パラメータ
-
num -
返したい結果の数。
返り値
このカーソルを返します。
エラー / 例外
このカーソルの反復処理が始まっている場合に MongoCursorException をスローします。
参考
- MongoDB コアドキュメントの » limit
- MongoCursor::batchSize() - Limits the number of elements returned in one batch
- MongoCursor::skip() - 結果をスキップする