|
@@ 1040-1048 (lines=9) @@
|
| 1037 |
|
* @return $this |
| 1038 |
|
* @throws \BadMethodCallException If the query is not a mapReduce command. |
| 1039 |
|
*/ |
| 1040 |
|
public function mapReduceOptions(array $options) |
| 1041 |
|
{ |
| 1042 |
|
if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
| 1043 |
|
throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
| 1044 |
|
} |
| 1045 |
|
|
| 1046 |
|
$this->query['mapReduce']['options'] = $options; |
| 1047 |
|
return $this; |
| 1048 |
|
} |
| 1049 |
|
|
| 1050 |
|
/** |
| 1051 |
|
* Updates the value of the field to a specified value if the specified value is greater than the current value of the field. |
|
@@ 1210-1218 (lines=9) @@
|
| 1207 |
|
* @return $this |
| 1208 |
|
* @throws \BadMethodCallException If the query is not a mapReduce command. |
| 1209 |
|
*/ |
| 1210 |
|
public function out($out) |
| 1211 |
|
{ |
| 1212 |
|
if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
| 1213 |
|
throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
| 1214 |
|
} |
| 1215 |
|
|
| 1216 |
|
$this->query['mapReduce']['out'] = $out; |
| 1217 |
|
return $this; |
| 1218 |
|
} |
| 1219 |
|
|
| 1220 |
|
/** |
| 1221 |
|
* Remove the first element from the current array field. |