MongoCommandCursor
class MongoCommandCursor implements MongoCursorInterface (View source)
Methods
TValue
current()
Return the current element
void
next()
Move forward to next element
TKey|null
key()
Return the key of the current element
bool
valid()
Checks if current position is valid
void
rewind()
Rewind the Iterator to the first element
batchSize(int $batchSize)
No description
bool
dead()
No description
array
info()
No description
array
getReadPreference()
No description
setReadPreference(string $read_preference, array|null $tags = null)
No description
timeout(int $ms)
No description
Details
TValue
current()
Since: 5.0.0
Return the current element
void
next()
Since: 5.0.0
Move forward to next element
TKey|null
key()
Since: 5.0.0
Return the key of the current element
bool
valid()
Since: 5.0.0
Checks if current position is valid
void
rewind()
Since: 5.0.0
Rewind the Iterator to the first element
MongoCursorInterface
batchSize(int $batchSize)
No description
bool
dead()
No description
array
info()
No description
array
getReadPreference()
No description
MongoCursorInterface
setReadPreference(string $read_preference, array|null $tags = null)
No description
MongoCursorInterface
timeout(int $ms)
No description