[ 
https://issues.apache.org/jira/browse/RYA-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16087885#comment-16087885
 ] 

ASF GitHub Bot commented on RYA-303:
------------------------------------

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

    https://github.com/apache/incubator-rya/pull/172#discussion_r127528422
  
    --- Diff: 
extras/indexing/src/main/java/org/apache/rya/indexing/mongodb/pcj/MongoPrecomputedJoinIndexer.java
 ---
    @@ -0,0 +1,89 @@
    +/*
    + * 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.indexing.mongodb.pcj;
    +
    +import static com.google.common.base.Preconditions.checkArgument;
    +import static com.google.common.base.Preconditions.checkNotNull;
    +
    +import java.util.concurrent.atomic.AtomicReference;
    +
    +import org.apache.hadoop.conf.Configuration;
    +import org.apache.log4j.Logger;
    +import org.apache.rya.indexing.pcj.storage.mongo.MongoPcjDocuments;
    +import org.apache.rya.mongodb.MongoDBRdfConfiguration;
    +
    +import com.mongodb.MongoClient;
    +
    +import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
    +import edu.umd.cs.findbugs.annotations.NonNull;
    +
    +/**
    + * Updates the state of the Precomputed Join indices that are used by Rya.
    + */
    +@DefaultAnnotation(NonNull.class)
    +public class MongoPrecomputedJoinIndexer extends BasePcjIndexer {
    +    private static final Logger log = 
Logger.getLogger(MongoPrecomputedJoinIndexer.class);
    +    private final AtomicReference<MongoClient> client = new 
AtomicReference<>();
    +
    +    /**
    +     * Creates a new {@link MongoPrecomputedJoinIndexer}.
    +     * <p>
    +     * Note: This constructor should only be used when the {@link 
MongoClient}
    +     * is provided by the configuration when calling
    +     * {@link #getPcjStorage(Configuration)}.
    +     */
    +    public MongoPrecomputedJoinIndexer() {
    +    }
    +
    +    /**
    +     * Creates a new {@link MongoPrecomputedJoinIndexer} with a provided
    +     * {@link MongoClient}.
    +     *
    +     * @param client
    --- End diff --
    
    nit: fix


> Mongo PCJ indexer support
> -------------------------
>
>                 Key: RYA-303
>                 URL: https://issues.apache.org/jira/browse/RYA-303
>             Project: Rya
>          Issue Type: Improvement
>            Reporter: Andrew Smith
>            Assignee: Andrew Smith
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to