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

    https://github.com/apache/incubator-rya/pull/151#discussion_r110761048
  
    --- Diff: 
extras/rya.prospector/src/main/java/org/apache/rya/prospector/domain/IntermediateProspect.java
 ---
    @@ -0,0 +1,213 @@
    +/*
    + * 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.prospector.domain;
    +
    +import java.io.DataInput;
    +import java.io.DataOutput;
    +import java.io.IOException;
    +
    +import org.apache.hadoop.io.WritableComparable;
    +import org.apache.rya.prospector.mr.Prospector;
    +import org.apache.rya.prospector.plans.IndexWorkPlan;
    +
    +/**
    + * Represents a piece of information that is being counted during the 
process
    + * of running a {@link Prospector} job.
    + */
    +public class IntermediateProspect implements 
WritableComparable<IntermediateProspect> {
    +
    +    private String index;
    +    private String data;
    +    private String dataType;
    +    private TripleValueType tripleValueType;
    +    private String visibility;
    +
    +    /**
    +     * Constructs an uninitialized instance of {@link 
IntermediateProspect}.
    +     * This constructor is required to integration with Map Reduce's
    +     * {@link WritableComparable} interface.
    +     */
    +    public IntermediateProspect() { }
    +
    +    /**
    +     * Constructs an instance of {@link IntermediateProspect}.
    +     *
    +     * @param index - Indicates which {@link IndexWorkPlan} the data is 
part of.
    +     * @param data - The information that is being counted.
    +     * @param dataType - The data type of {@code data}.
    +     * @param tripleValueType - Indicates which parts of the RDF Statement 
are included in {@code data}.
    +     * @param visibility - The visibility of this entry.
    +     */
    +    public IntermediateProspect(
    +            final String index,
    +            final String data,
    +            final String dataType,
    +            final TripleValueType tripleValueType,
    +            final String visibility) {
    +        this.index = index;
    +        this.data = data;
    +        this.dataType = dataType;
    +        this.tripleValueType = tripleValueType;
    +        this.visibility = visibility;
    +    }
    +
    +    /**
    +     * @return Indicates which {@link IndexWorkPlan} the data is part of.
    +     */
    +    public String getIndex() {
    +        return index;
    +    }
    +
    +    /**
    +     * @return The information that is being counted.
    +     */
    +    public String getData() {
    +        return data;
    +    }
    +
    +    /**
    +     * @return The data type of {@code data}.
    +     */
    +    public String getDataType() {
    +        return dataType;
    +    }
    +
    +    /**
    +     * @return Indicates which parts of the RDF Statement are included in 
{@code data}.
    +     */
    +    public TripleValueType getTripleValueType() {
    +        return tripleValueType;
    +    }
    +
    +    /**
    +     * @return The visibility of this entry.
    +     */
    +    public String getVisibility() {
    +        return visibility;
    +    }
    +
    +    @Override
    +    public int compareTo(IntermediateProspect t) {
    --- End diff --
    
    is this the norm for this kind of comparison?  seems odd.


---
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.
---

Reply via email to