public interface SegmentWriter
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭Writer
|
void |
wrtieContent(Content content)
写入一条Content对象(存储网页/文件内容的对象)
|
void |
wrtieFetch(CrawlDatum fetch)
写入一条爬取历史记录
|
void |
wrtieParse(ParseResult parseresult)
写入一条网页解析结果
|
void wrtieFetch(CrawlDatum fetch) throws Exception
fetch - 爬取历史记录(爬取任务)IOExceptionExceptionvoid wrtieContent(Content content) throws Exception
content - IOExceptionExceptionvoid wrtieParse(ParseResult parseresult) throws Exception
parseresult - 网页解析结果IOExceptionExceptionCopyright © 2014. All Rights Reserved.