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

org.eobjects.analyzer.beans.api.Explorer Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
/**
 * eobjects.org AnalyzerBeans
 * Copyright (C) 2010 eobjects.org
 *
 * 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.eobjects.analyzer.beans.api;

import org.eobjects.analyzer.result.AnalyzerResult;
import org.eobjects.analyzer.result.HasAnalyzerResult;
import org.eobjects.metamodel.DataContext;

/**
 * An analyzer that explores a datastore (in the form of a DataContext).
 * 
 * Exploring analyzers have a special compared to Transformers and
 * RowProcessingAnalyzers in a number of ways:
 * 
    *
  • The run(DataContext) method is only invoked once. The Exploring analyzer * can then do with the DataContext whatever is fitting.
  • *
  • Exploring analyzers doesn't support chained execution where transformers * play some part in "preparing" the data before execution.
  • *
  • Exploring analyzers should be used when there is a querying-based * performance gain. Typically such a gain can be archieved if the analyzer * needs aggregates that can be pushed down to queries in stead of processing * each row in a particular table.
  • *
  • Furthermore, exploring analyzers have superior capabilities when it comes * to joining, grouping etc. because they can create their own queries.
  • *
  • When many exploring analyzers run in parallel, they may introduce a * performance penalty because they cannot share queries like row processing * analyzers.
  • *
* * Use of the @AnalyzerBean annotation is required for analyzers in order to be * automatically discovered. * * @see RowProcessingAnalyzer * @see AnalyzerBean * * @author Kasper Sørensen * * @param * the result type returned by this explorer */ public interface Explorer extends HasAnalyzerResult { /** * Executes the explorer * * @param dataContext * the DataContext to use for querying */ public void run(DataContext dataContext); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy