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

io.github.repir.Strategy.Operator.Analyze Maven / Gradle / Ivy

The newest version!
package io.github.repir.Strategy.Operator;

import io.github.repir.Retriever.Retriever;
import io.github.repir.Retriever.Query;
import io.github.repir.tools.lib.Log;
import java.util.Collection;
import java.util.HashSet;
import io.github.repir.Strategy.Collector.Collector;
import io.github.repir.Strategy.Strategy;

/**
 * The Analyze {@link Strategy} processes features in a single pass, that
 * processes features in the repository in some custom way, using a {@link Collector}
 * to aggregate results. The collector is responsible for storing the retrieved
 * results in an appropriate way.
 * 

* @author jeroen */ public abstract class Analyze extends Strategy implements Analyzer { public static Log log = new Log(Analyze.class); public Analyze(Retriever retriever) { super( retriever ); } @Override public abstract void setCollector(); public abstract void doMapTask(); /** * By default, the Analyze does a single pass and does not return any * results but rather stored the results in the repository. */ @Override public Query finishReduceTask() { query.setStrategyClassname(null); return query; } public Query postReform() { return query; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy