Class LinearRetrieverImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- de.uni_trier.wi2.procake.utils.composition.AbstractEmptyFactoryObjectImplementation
-
- de.uni_trier.wi2.procake.retrieval.impl.RetrieverImpl
-
- de.uni_trier.wi2.procake.retrieval.impl.LinearRetrieverImpl
-
- All Implemented Interfaces:
RetrievalFactoryObject,Retriever
public class LinearRetrieverImpl extends RetrieverImpl implements Retriever, RetrievalFactoryObject
- Author:
- rmaximi
-
-
Field Summary
-
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Retriever
DEFAULT_ADDQUERYTORESULTS
-
-
Constructor Summary
Constructors Constructor Description LinearRetrieverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRetrieverName()Each retriever must have an unique name.SimilarityCachegetSimilarityCache()QuerynewQuery()Creates a newQueryfor the retriever.RetrievalResultListperform(Query query)Performs a retrieval for the given query.voidsetSimilarityCache(SimilarityCache similarityCache)Sets the similarity cache.-
Methods inherited from class de.uni_trier.wi2.procake.retrieval.impl.RetrieverImpl
getInternalSimilarityMeasure, getObjectPool, getSimilarityModel, getValuator, isAddQueryToResults, setAddQueryToResults, setInternalSimilarityMeasure, setObjectPool, setSimilarityModel
-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.AbstractEmptyFactoryObjectImplementation
getParameters, postInit, preInit
-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.retrieval.Retriever
isAddQueryToResults, setAddQueryToResults, setInternalSimilarityMeasure, setObjectPool, setSimilarityModel
-
-
-
-
Method Detail
-
getSimilarityCache
public SimilarityCache getSimilarityCache()
- Overrides:
getSimilarityCachein classRetrieverImpl
-
setSimilarityCache
public void setSimilarityCache(SimilarityCache similarityCache)
Description copied from interface:RetrieverSets the similarity cache. By default, it is null.- Specified by:
setSimilarityCachein interfaceRetriever- Overrides:
setSimilarityCachein classRetrieverImpl
-
newQuery
public Query newQuery()
Description copied from interface:RetrieverCreates a newQueryfor the retriever. Do not mix the query objects between different retrieval implementation because queries can be implementation dependent.- Specified by:
newQueryin interfaceRetriever- Overrides:
newQueryin classRetrieverImpl- Returns:
- a new query object.
-
perform
public RetrievalResultList perform(Query query)
Description copied from interface:RetrieverPerforms a retrieval for the given query.- Specified by:
performin interfaceRetriever- Parameters:
query- A query that can be created withRetriever.newQuery()- Returns:
- a list of retrieval results
-
getRetrieverName
public String getRetrieverName()
Description copied from interface:RetrievalFactoryObjectEach retriever must have an unique name. This name gan be used to get a new retriever instance from the factory.- Specified by:
getRetrieverNamein interfaceRetrievalFactoryObject- Returns:
- Returns the name of the retriever.
-
-