mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-03 14:52:13 +02:00
36 lines
700 B
PHP
36 lines
700 B
PHP
<?php
|
|
|
|
namespace MongoDB;
|
|
|
|
interface Cursor extends \Iterator
|
|
{
|
|
/**
|
|
* Returns the CursorId
|
|
*
|
|
* @return CursorId
|
|
*/
|
|
function getId();
|
|
|
|
/**
|
|
* Returns the Server object that this cursor is attached to
|
|
*
|
|
* @return Server Server from which the cursor originated
|
|
*/
|
|
function getServer();
|
|
|
|
/**
|
|
* Checks if a cursor is still alive
|
|
*
|
|
* @return boolean Whether the cursor is exhausted and has no more results
|
|
*/
|
|
function isDead();
|
|
|
|
/**
|
|
* Sets the BatchSize of the Cursor
|
|
*
|
|
* @param integer $batchSize
|
|
* @return boolean true on success, false on failure
|
|
*/
|
|
function setBatchSize($batchSize);
|
|
}
|