Map reduce command

JAVA-1347 / JAVA-1348