org.apache.nutch.clustering.carrot2
Class LocalNutchInputComponent
java.lang.Object
com.dawidweiss.carrot.core.local.LocalComponentBase
com.dawidweiss.carrot.core.local.LocalInputComponentBase
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
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 |
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 |
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
LocalNutchInputComponent
public LocalNutchInputComponent(String defaultLanguage)
- Creates an input component with the given default language code.
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