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
- Author:
- rmaximi
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Retriever
DEFAULT_ADDQUERYTORESULTS
-
Constructor Summary
-
Method Summary
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
getValuator, isAddQueryToResults, setAddQueryToResults, setInternalSimilarityMeasure, setObjectPool, setSimilarityModel
-
Constructor Details
-
LinearRetrieverImpl
public LinearRetrieverImpl()
-
-
Method Details
-
newQuery
Description copied from interface:Retriever
Creates a newQuery
for the retriever. Do not mix the query objects between different retrieval implementation because queries can be implementation dependent.- Specified by:
newQuery
in interfaceRetriever
- Overrides:
newQuery
in classRetrieverImpl
- Returns:
- a new query object.
-
perform
Description copied from interface:Retriever
Performs a retrieval for the given query.- Specified by:
perform
in interfaceRetriever
- Parameters:
query
- A query that can be created withRetriever.newQuery()
- Returns:
- a list of retrieval results
-
getRetrieverName
Description copied from interface:RetrievalFactoryObject
Each retriever must have an unique name. This name gan be used to get a new retriever instance from the factory.- Specified by:
getRetrieverName
in interfaceRetrievalFactoryObject
- Returns:
- Returns the name of the retriever.
-