Github user kchilton2 commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/254#discussion_r159308088
  
    --- Diff: 
dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/aggregation/SparqlToPipelineTransformVisitor.java
 ---
    @@ -0,0 +1,151 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.rya.mongodb.aggregation;
    +
    +import java.util.Arrays;
    +
    +import org.apache.rya.mongodb.MongoConnectorFactory;
    +import org.apache.rya.mongodb.MongoDBRdfConfiguration;
    +import org.bson.Document;
    +import org.openrdf.query.algebra.Distinct;
    +import org.openrdf.query.algebra.Extension;
    +import org.openrdf.query.algebra.Filter;
    +import org.openrdf.query.algebra.Join;
    +import org.openrdf.query.algebra.MultiProjection;
    +import org.openrdf.query.algebra.Projection;
    +import org.openrdf.query.algebra.Reduced;
    +import org.openrdf.query.algebra.StatementPattern;
    +import org.openrdf.query.algebra.helpers.QueryModelVisitorBase;
    +
    +import com.mongodb.MongoClient;
    +import com.mongodb.client.MongoCollection;
    +import com.mongodb.client.MongoDatabase;
    +
    +public class SparqlToPipelineTransformVisitor extends 
QueryModelVisitorBase<Exception> {
    +    private MongoCollection<Document> inputCollection;
    +
    +    public SparqlToPipelineTransformVisitor(MongoCollection<Document> 
inputCollection) {
    +        this.inputCollection = inputCollection;
    +    }
    +
    +    public SparqlToPipelineTransformVisitor(MongoDBRdfConfiguration conf) {
    +        MongoClient mongo = MongoConnectorFactory.getMongoClient(conf);
    --- End diff --
    
    MongoConnectorFactory no longer exists after RYA-414. You will receive a 
stateful configuration object that contains the MongoClient.


---

Reply via email to