org.carrot2.source.ambient
Class Odp239DocumentSource

java.lang.Object
  extended by org.carrot2.core.ProcessingComponentBase
      extended by org.carrot2.source.ambient.FubDocumentSource
          extended by org.carrot2.source.ambient.Odp239DocumentSource
All Implemented Interfaces:
IDocumentSource, IProcessingComponent

public class Odp239DocumentSource
extends FubDocumentSource

Serves documents from the ODP239 test set. For more details, please see: http://credo.fub.it/odp239/.


Nested Class Summary
static class Odp239DocumentSource.Odp239Topic
          All available ODP239 topics.
 
Field Summary
 int results
           
 long resultsTotal
           
 Odp239DocumentSource.Odp239Topic topic
          ODP239 Topic.
 
Fields inherited from class org.carrot2.source.ambient.FubDocumentSource
documents, includeDocumentsWithoutTopic, minTopicSize, query, topicIds
 
Constructor Summary
Odp239DocumentSource()
           
 
Method Summary
static String getTopicLabel(String topicId)
           
 void process()
          Performs the processing required to fulfill the request.
 
Methods inherited from class org.carrot2.source.ambient.FubDocumentSource
processInternal
 
Methods inherited from class org.carrot2.core.ProcessingComponentBase
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.carrot2.core.IProcessingComponent
afterProcessing, beforeProcessing, dispose, init
 

Field Detail

topic

public Odp239DocumentSource.Odp239Topic topic
ODP239 Topic. The ODP239 Topic to load documents from.

Attribute level:
Basic
Attribute group:
Topic ID

results

public int results

resultsTotal

public long resultsTotal
Constructor Detail

Odp239DocumentSource

public Odp239DocumentSource()
Method Detail

process

public void process()
             throws ProcessingException
Description copied from interface: IProcessingComponent
Performs the processing required to fulfill the request. This method is called once per request.

Specified by:
process in interface IProcessingComponent
Overrides:
process in class ProcessingComponentBase
Throws:
ProcessingException - when processing failed. If thrown, the IProcessingComponent.afterProcessing() method will be called and the component will be ready to accept further requests or to be disposed of. Finally, the exception will be rethrown from the controller method that caused the component to perform processing.

getTopicLabel

public static String getTopicLabel(String topicId)


Copyright (c) Dawid Weiss, Stanislaw Osinski