MapReduceResult
in package
implements
IteratorAggregate
Result class for mapReduce command results.
This class allows for iteration of mapReduce results irrespective of the output method (e.g. inline, collection) via the IteratorAggregate interface. It also provides access to command statistics.
Tags
Interfaces, Classes, Traits and Enums
- IteratorAggregate
Table of Contents
- $counts : array<string|int, mixed>
- $executionTimeMS : int
- $getIterator : callable
- $timing : array<string|int, mixed>
- getCounts() : array<string|int, mixed>
- Returns various count statistics from the mapReduce command.
- getExecutionTimeMS() : int
- Return the command execution time in milliseconds.
- getIterator() : Traversable
- Return the mapReduce results as a Traversable.
- getTiming() : array<string|int, mixed>
- Returns various timing statistics from the mapReduce command.
Properties
$counts
private
array<string|int, mixed>
$counts
$executionTimeMS
private
int
$executionTimeMS
$getIterator
private
callable
$getIterator
$timing
private
array<string|int, mixed>
$timing
Methods
getCounts()
Returns various count statistics from the mapReduce command.
public
getCounts() : array<string|int, mixed>
Return values
array<string|int, mixed> —getExecutionTimeMS()
Return the command execution time in milliseconds.
public
getExecutionTimeMS() : int
Return values
int —getIterator()
Return the mapReduce results as a Traversable.
public
getIterator() : Traversable
Tags
Return values
Traversable —getTiming()
Returns various timing statistics from the mapReduce command.
public
getTiming() : array<string|int, mixed>
Note: timing statistics are only available if the mapReduce command's "verbose" option was true; otherwise, an empty array will be returned.