All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datacleaner.result.AnalysisResult Maven / Gradle / Ivy

/**
 * DataCleaner (community edition)
 * Copyright (C) 2014 Free Software Foundation, Inc.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 */
package org.datacleaner.result;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.datacleaner.api.AnalyzerResult;
import org.datacleaner.job.AnalysisJob;
import org.datacleaner.job.ComponentJob;

/**
 * Represents a collection of results for an {@link AnalysisJob}.
 */
public interface AnalysisResult {

    /**
     * Gets the the results of this analysis.
     *
     * @return the results from the Analyzers in the executed job
     */
    List getResults();

    /**
     * Gets the results of a single Analyzer.
     *
     * @param componentJob
     *            the component (typically AnalyzerJob) job to find the result
     *            for
     * @return the result for a given component job
     */
    AnalyzerResult getResult(ComponentJob componentJob);

    /**
     * Gets the results mapped to the Component jobs
     *
     * @return a map with ComponentJobs as keys to the corresponding
     *         AnalyzerResults.
     */
    Map getResultMap();

    /**
     * Gets a list of all results with the given result class.
     *
     * @param resultClass
     * @return
     */
     List getResults(Class resultClass);

    /**
     * Gets the time that the results were created
     *
     * @return the time that the results were created
     */
    Date getCreationDate();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy