Added javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@659216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2008-05-22 19:20:04 +00:00
parent 858b4116d7
commit 3b9df5ffc6
1 changed files with 14 additions and 0 deletions

View File

@ -36,7 +36,21 @@ import org.apache.solr.util.plugin.NamedListInitializedPlugin;
*/
public abstract class SearchComponent implements SolrInfoMBean, NamedListInitializedPlugin
{
/**
* Prepare the response. Guaranteed to be called before any SearchComponent {@link #process(org.apache.solr.handler.component.ResponseBuilder)} method.
* Called for every incoming request.
*
* The place to do initialization that is request dependent.
* @param rb The {@link org.apache.solr.handler.component.ResponseBuilder}
* @throws IOException
*/
public abstract void prepare(ResponseBuilder rb) throws IOException;
/**
* Process the request for this component
* @param rb The {@link ResponseBuilder}
* @throws IOException
*/
public abstract void process(ResponseBuilder rb) throws IOException;
/** Process for a distributed search.