Create a gist now

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'mongo-hadoop'
MongoHadoop.map do |document|
{ :_id => document['user']['time_zone'], :count => 1 }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment