« MongoDB\Driver\CursorInterface
MongoDB\Driver\CursorInterface::getServer »

MongoDB\Driver\CursorInterface::getId

(mongodb >=1.6.0)

MongoDB\Driver\CursorInterface::getId — Returns the ID for this cursor

説明

abstract public function MongoDB\Driver\CursorInterface::getId(): MongoDB\BSON\Int64

Returns the ID for this cursor, which uniquely identifies the cursor on the server.

パラメータ

この関数にはパラメータはありません。

戻り値

Returns the ID for this cursor.

エラー / 例外

変更履歴

バージョン 説明
PECL mongodb 1.20.0 Added MongoDB\BSON\Int64 to the tentative return type for this method. MongoDB\Driver\CursorId will be removed from the return type in version 2.0.
関連キーワード:
MongoDB   Driver   cursor   CursorInterface   getId   mongodb   return   type   CursorId   getServer   abstract   uniquely   identifies   server   Throws   Exception   InvalidArgumentException   argument   parsing   errors   履歴   Added   tentative   method   removed
関連する関数・ページ:
mongodb-driver-cursorinterface.getserver   class.mongodb-driver-cursorinterface   mongodb-driver-cursorinterface.toarray   mongodb-driver-cursorinterface.isdead   mongodb-driver-cursorid.tostring   mongodb-driver-cursor.getid