public function mapReduceOptions(array $options)
{
if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
throw new BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
}
$this->query['mapReduce']['options'] = $options;
return $this;
}