Map reduce command

JAVA-1347 / JAVA-1348
For consistency, this should also take a Boolean