Results of 1 - 6 of about 6 for tailable (0.003 sec.)
- The MongoDB\Driver\Cursor class | PHP 8.3 12868
- The MongoDB\Driver\Cursor class (mongodb >=1.0.0) はじめに The MongoDB\Driver\Cursor class encapsulates the results of a MongoDB command or query and may be returned by MongoDB\Driver\Manager::executeCommand() or MongoDB\Driver\Manager::exe
... t ( [oid] => 5a4cff2f122d3321565d8cc3 ) [name] => Vesta [size] => 525 [distance] => 2.362 ) 例2 Reading a result set for a tailable cursor » Tailable cursors are a special type of MongoDB cursor that allows the client to read some results and then wait u ... llections and » Change Streams . While normal cursors can be iterated once with foreach , that approach will not work with tailable cursors. When foreach is used with a tailable cursor, the loop will stop upon reaching the end of the initial result set. ... ursors in MongoDB only support forward iteration, which means they cannot be rewound. In order to continuously read from a tailable cursor, the Cursor object must be wrapped with an IteratorIterator . This allows the application to directly control the c ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-cursor.html
- MongoDB\Driver\CursorInterface::isDead — Checks if the cursor may have addition... 9395
- MongoDB\Driver\CursorInterface::isDead (mongodb >=1.6.0) MongoDB\Driver\CursorInterface::isDead — Checks if the cursor may have additional results 説明 abstract public function MongoDB\Driver\CursorInterface::isDead (): bool Checks whether
... s available to read. A cursor is initially "alive" but may become "dead" for any of the following reasons: Advancing a non-tailable cursor did not return a document The cursor encountered an error The cursor read its last batch to completion The cursor r ... eached its configured limit This is primarily useful with tailable cursors. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if additional results are not available, and ...
-
https://man.mtool.work/php/8.3/mongodb-driver-cursorinterface.isdead.html
- MongoDB\Driver\Query::__construct — Create a new Query | PHP 8.3 8975
- MongoDB\Driver\Query::__construct (mongodb >=1.0.0) MongoDB\Driver\Query::__construct — Create a new Query 説明 final public function MongoDB\Driver\Query::__construct ( array | object $filter , ? array $queryOptions = null ) Constructs a n
... wing an error. Falls back to the deprecated "partial" option if not specified. awaitData bool Use in conjunction with the "tailable" option to block a getMore operation on the cursor temporarily if at the end of data rather than returning no data. After ... the server to block a getMore operation if no data is available. This option should only be used in conjunction with the "tailable" and "awaitData" options. maxTimeMS int The cumulative time limit in milliseconds for processing operations on the cursor. ... The sort specification for the ordering of the results. Falls back to the deprecated "$orderby" modifier if not specified. tailable bool Returns a tailable cursor for a capped collection. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentExcep ...
-
https://man.mtool.work/php/8.3/mongodb-driver-query.construct.html
- MongoDB\Driver\Cursor::isDead — Checks if the cursor is exhausted or may have a... 8646
- MongoDB\Driver\Cursor::isDead (mongodb >=1.0.0) MongoDB\Driver\Cursor::isDead — Checks if the cursor is exhausted or may have additional results 説明 final public function MongoDB\Driver\Cursor::isDead (): bool Checks whether there are defi
... This method is similar to the » cursor.isExhausted() method in the MongoDB shell and is primarily useful when iterating » tailable cursors . A cursor has no additional results and is considered "dead" when one of the following is true: The current batch ... var_dump ( $cursor -> isDead ()); ?> 上の例の出力は以下となります。 bool(false) bool(false) bool(false) bool(true) 参考 » Tailable Cursors in the MongoDB manual » cursor.isExhausted() in the MongoDB manual 他のマニュアルの関連ページ Linux JM batch(1) Du ...
-
https://man.mtool.work/php/8.3/mongodb-driver-cursor.isdead.html
- MongoDB\Driver\Command::__construct — Create a new Command | PHP 8.3 7713
- MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public function MongoDB\Driver\Command::__construct ( array | object $document , ? array $commandOptions = null ) Co
... ck a getMore operation if no data is available. This option should only be used in conjunction with commands that return a tailable cursor (e.g. » Change Streams ). エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsin ...
-
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
- サンプル | PHP 8.3 7202
- サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力する (配列要素) Example#4 - 制御構造 および 関数の使用例
... ongoDB\Driver\ReadConcern::isDefault example Example#1528 - Reading a result set Example#1529 - Reading a result set for a tailable cursor Example#1530 - MongoDB\Driver\Cursor::getId example Example#1531 - MongoDB\Driver\Cursor::getServer example Example ...
-
https://man.mtool.work/php/8.3/indexes.examples.html
PREV
1
NEXT