public class ImporterPipelineContext extends DocumentPipelineContext
Constructor and Description |
---|
ImporterPipelineContext(ICrawler crawler,
ICrawlDataStore crawlDataStore)
Constructor.
|
ImporterPipelineContext(ICrawler crawler,
ICrawlDataStore crawlDataStore,
BaseCrawlData crawlData)
Constructor.
|
ImporterPipelineContext(ICrawler crawler,
ICrawlDataStore crawlDataStore,
BaseCrawlData crawlData,
BaseCrawlData cachedCrawlData,
ImporterDocument document) |
ImporterPipelineContext(ImporterPipelineContext copiable)
Constructor creating a copy of supplied context.
|
Modifier and Type | Method and Description |
---|---|
ImporterResponse |
getImporterResponse() |
boolean |
isDelete()
Gets whether the document should be deleted.
|
boolean |
isOrphan()
Gets whether the document is an orphan (no longer referenced).
|
void |
setDelete(boolean delete)
Sets whether the document should be deleted.
|
void |
setImporterResponse(ImporterResponse importerResponse) |
void |
setOrphan(boolean orphan)
Sets whether the document is an orphan (no longer referenced).
|
getCachedCrawlData, getContent, getContentReader, getDocument, setCachedCrawlData, setDocument
equals, fireCrawlerEvent, getConfig, getCrawlData, getCrawlDataStore, getCrawler, hashCode, setCrawlData, toString
public ImporterPipelineContext(ImporterPipelineContext copiable)
copiable
- the item to be copiedpublic ImporterPipelineContext(ICrawler crawler, ICrawlDataStore crawlDataStore)
crawler
- the crawlercrawlDataStore
- crawl data storepublic ImporterPipelineContext(ICrawler crawler, ICrawlDataStore crawlDataStore, BaseCrawlData crawlData)
crawler
- the crawlercrawlDataStore
- crawl data storecrawlData
- current crawl datapublic ImporterPipelineContext(ICrawler crawler, ICrawlDataStore crawlDataStore, BaseCrawlData crawlData, BaseCrawlData cachedCrawlData, ImporterDocument document)
public ImporterResponse getImporterResponse()
public void setImporterResponse(ImporterResponse importerResponse)
public boolean isDelete()
true
if should be deletedpublic void setDelete(boolean delete)
delete
- true
if should be deletedpublic boolean isOrphan()
true
is an orphanpublic void setOrphan(boolean orphan)
orphan
- true
is an orphanCopyright © 2014–2021 Norconex Inc.. All rights reserved.