org.apache.nutch.clustering.carrot2
Class LocalNutchInputComponent

java.lang.Object
  extended by com.dawidweiss.carrot.core.local.LocalComponentBase
      extended by com.dawidweiss.carrot.core.local.LocalInputComponentBase
          extended by org.apache.nutch.clustering.carrot2.LocalNutchInputComponent
All Implemented Interfaces:
com.dawidweiss.carrot.core.local.LocalComponent, com.dawidweiss.carrot.core.local.LocalInputComponent

public class LocalNutchInputComponent
extends com.dawidweiss.carrot.core.local.LocalInputComponentBase

A local input component that ignores the query passed from the controller and instead looks for data stored in the request context. This enables us to reuse the same physical component implementation for data that has already been acquired from Nutch.

Version:
$Id: LocalNutchInputComponent.java,v 1.1 2004/08/09 23:23:53 johnnx Exp $
Author:
Dawid Weiss

Field Summary
static String NUTCH_INPUT_HIT_DETAILS_ARRAY
           
static String NUTCH_INPUT_SUMMARIES_ARRAY
           
 
Fields inherited from class com.dawidweiss.carrot.core.local.LocalInputComponentBase
next
 
Fields inherited from interface com.dawidweiss.carrot.core.local.LocalInputComponent
PARAM_QUERY, PARAM_REQUESTED_RESULTS, PARAM_START_AT, PARAM_TOTAL_MATCHING_DOCUMENTS
 
Constructor Summary
LocalNutchInputComponent(String defaultLanguage)
          Creates an input component with the given default language code.
 
Method Summary
 Set getComponentCapabilities()
          Returns the capabilities provided by this component.
 Set getRequiredSuccessorCapabilities()
          Returns the capabilities required from the successor component.
 void setQuery(String query)
           
 void startProcessing(com.dawidweiss.carrot.core.local.RequestContext context)
          A callback hook that starts the processing.
 
Methods inherited from class com.dawidweiss.carrot.core.local.LocalInputComponentBase
endProcessing, flushResources, processingErrorOccurred, setNext, validate
 
Methods inherited from class com.dawidweiss.carrot.core.local.LocalComponentBase
getDescription, getIntFromRequestContext, getName, getProperty, getRequiredPredecessorCapabilities, init, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dawidweiss.carrot.core.local.LocalComponent
getDescription, getName, getRequiredPredecessorCapabilities, init, setProperty
 

Field Detail

NUTCH_INPUT_HIT_DETAILS_ARRAY

public static final String NUTCH_INPUT_HIT_DETAILS_ARRAY
See Also:
Constant Field Values

NUTCH_INPUT_SUMMARIES_ARRAY

public static final String NUTCH_INPUT_SUMMARIES_ARRAY
See Also:
Constant Field Values
Constructor Detail

LocalNutchInputComponent

public LocalNutchInputComponent(String defaultLanguage)
Creates an input component with the given default language code.

Method Detail

setQuery

public void setQuery(String query)

startProcessing

public void startProcessing(com.dawidweiss.carrot.core.local.RequestContext context)
                     throws com.dawidweiss.carrot.core.local.ProcessingException
A callback hook that starts the processing.

Specified by:
startProcessing in interface com.dawidweiss.carrot.core.local.LocalComponent
Overrides:
startProcessing in class com.dawidweiss.carrot.core.local.LocalInputComponentBase
Throws:
com.dawidweiss.carrot.core.local.ProcessingException

getComponentCapabilities

public Set getComponentCapabilities()
Returns the capabilities provided by this component.

Specified by:
getComponentCapabilities in interface com.dawidweiss.carrot.core.local.LocalComponent
Overrides:
getComponentCapabilities in class com.dawidweiss.carrot.core.local.LocalComponentBase

getRequiredSuccessorCapabilities

public Set getRequiredSuccessorCapabilities()
Returns the capabilities required from the successor component.

Specified by:
getRequiredSuccessorCapabilities in interface com.dawidweiss.carrot.core.local.LocalComponent
Overrides:
getRequiredSuccessorCapabilities in class com.dawidweiss.carrot.core.local.LocalComponentBase


Copyright © 2006 The Apache Software Foundation