us.codecraft.webmagic.pipeline.Pipeline Maven / Gradle / Ivy
The newest version!
package us.codecraft.webmagic.pipeline;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
/**
* Pipeline is the persistent and offline process part of crawler.
* The interface Pipeline can be implemented to customize ways of persistent.
*
* @author [email protected]
* @since 0.1.0
* @see ConsolePipeline
* @see FilePipeline
*/
public interface Pipeline {
/**
* Process extracted results.
*
* @param resultItems resultItems
* @param task task
*/
public void process(ResultItems resultItems, Task task);
}