|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDocumentSource
A marker interface for processing components providing documents for further
processing. The general process of implementing IDocumentSources is the
following following:
IDocumentSource and annotate it with
Bindable. You may want to extend ProcessingComponentBase to get empty
implementations of the IProcessingComponent life cycle methods.Attribute and
Input. Also, add either Init or Processing annotation depending
on the intended scope of the parameter. See IProcessingComponent for
information when these fields will be populated with values passed by the caller.Attribute, Output and Processing annotations. For the
Documents fetched by your source declare a List< Document
> field whose Attribute.key() is AttributeNames.DOCUMENTSIProcessingComponent.process() method to fetch the documents
(based on the values read from fields annotated with Input which will have
already been populated with values passed by the caller) and assign the results to the
fields annotated with Output (which Carrot2 core will collect and
pass for further processing).
| Method Summary |
|---|
| Methods inherited from interface org.carrot2.core.IProcessingComponent |
|---|
afterProcessing, beforeProcessing, dispose, init, process |
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||