Package com.github.jmkgreen.morphia.query

Examples of com.github.jmkgreen.morphia.query.QueryImpl


* @author scotthernandez
*/
@SuppressWarnings("rawtypes")
public class Helper {
    public static DBObject getCriteria(Query q) {
        QueryImpl qi = (QueryImpl) q;
        return qi.getQueryObject();
    }
View Full Code Here


            log.info("Executing " + cmd.toString());

        MapReduceOutput mpo = dbColl.mapReduce(baseCommand);
        MapreduceResults mrRes = (MapreduceResults) mapr.fromDBObject(MapreduceResults.class, mpo.getRaw(), createCache());

        QueryImpl baseQ = null;
        if (!MapreduceType.INLINE.equals(type))
            baseQ = new QueryImpl(outputType, db.getCollection(mrRes.getOutputCollectionName()), this);
        //TODO Handle inline case and create an iterator/able.

        mrRes.setBits(type, baseQ);
        return mrRes;
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.query.QueryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.