mongodb/mongo-hadoop — pull request #53 by thomasmillar (2012-06-26 15:41:54+00:00)
Title: Fixed MongoLoader to work with more versions of PIG

I changed the MongoLoader to receive the schema through the constructor. Right now there isn't a reliable way to get the schema from the AS clause in the Loadfunc interface. For now, MongoLoader gets it from the constructor and pushes it back out to pig using the LoadMetaData interface. In the future, when getting the schema from the AS clause it supported, you'll be able to use the MongoLoader without this idiosyncratic behaviour.