Github user meiercaleb commented on a diff in the pull request: https://github.com/apache/incubator-rya/pull/204#discussion_r132989696 --- Diff: dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/MongoDBQueryEngine.java --- @@ -86,22 +84,10 @@ public MongoDBRdfConfiguration getConf() { public CloseableIteration<RyaStatement, RyaDAOException> query( final RyaStatement stmt, MongoDBRdfConfiguration conf) throws RyaDAOException { - if (conf == null) { - conf = configuration; - } - final Long maxResults = conf.getLimit(); - final Set<DBObject> queries = new HashSet<DBObject>(); - final DBObject query = strategy.getQuery(stmt); - queries.add(query); - final MongoDatabase db = mongoClient.getDatabase(conf.getMongoDBName()); - final MongoCollection<Document> collection = db.getCollection(conf.getTriplesCollectionName()); - final RyaStatementCursorIterator iterator = new RyaStatementCursorIterator(collection, queries, strategy, - conf.getAuthorizations()); - - if (maxResults != null) { - iterator.setMaxResults(maxResults); - } - return iterator; + Entry<RyaStatement, BindingSet> entry = new AbstractMap.SimpleEntry<>(stmt, new MapBindingSet()); --- End diff -- Check that the RyaStatement and Config are not null.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---