@@ 1024-1032 (lines=9) @@ | ||
1021 | * @return $this |
|
1022 | * @throws \BadMethodCallException if the query is not a mapReduce command |
|
1023 | */ |
|
1024 | public function mapReduceOptions(array $options) |
|
1025 | { |
|
1026 | if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
|
1027 | throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
|
1028 | } |
|
1029 | ||
1030 | $this->query['mapReduce']['options'] = $options; |
|
1031 | return $this; |
|
1032 | } |
|
1033 | ||
1034 | /** |
|
1035 | * Updates the value of the field to a specified value if the specified value is greater than the current value of the field. |
|
@@ 1194-1202 (lines=9) @@ | ||
1191 | * @return $this |
|
1192 | * @throws \BadMethodCallException if the query is not a mapReduce command |
|
1193 | */ |
|
1194 | public function out($out) |
|
1195 | { |
|
1196 | if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) { |
|
1197 | throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)'); |
|
1198 | } |
|
1199 | ||
1200 | $this->query['mapReduce']['out'] = $out; |
|
1201 | return $this; |
|
1202 | } |
|
1203 | ||
1204 | /** |
|
1205 | * Remove the first element from the current array field. |