Class LinearRetrieverImpl

All Implemented Interfaces:
RetrievalFactoryObject, Retriever

public class LinearRetrieverImpl extends RetrieverImpl implements Retriever, RetrievalFactoryObject
Author:
rmaximi
  • Constructor Details

    • LinearRetrieverImpl

      public LinearRetrieverImpl()
  • Method Details

    • newQuery

      public Query newQuery()
      Description copied from interface: Retriever
      Creates a new Query for the retriever. Do not mix the query objects between different retrieval implementation because queries can be implementation dependent.
      Specified by:
      newQuery in interface Retriever
      Overrides:
      newQuery in class RetrieverImpl
      Returns:
      a new query object.
    • perform

      public RetrievalResultList perform(Query query)
      Description copied from interface: Retriever
      Performs a retrieval for the given query.
      Specified by:
      perform in interface Retriever
      Parameters:
      query - A query that can be created with Retriever.newQuery()
      Returns:
      a list of retrieval results
    • getRetrieverName

      public String 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 interface RetrievalFactoryObject
      Returns:
      Returns the name of the retriever.