Package com.norconex.crawler.core.ledger
Class CrawlerEntry
java.lang.Object
com.norconex.crawler.core.ledger.CrawlerEntry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FsCrawlerEntry,WebCrawlerEntry
Holds minimal meta information and state necessary to the proper
(re)processing of a document in the context of a crawl.
Also persisted in the
CrawlerEntryLedger.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToReferenceTrail(String reference) Adds original references before normalization, redirect, etc.protected booleanbooleanGets the content checksum.intgetDepth()Typically, the number of "hops" or directories to get to a file.@NonNull ProcessingStatusGets the queued date.Gets original references before normalization, redirect, etc.inthashCode()booleanbooleanisOrphan()voidsetCharset(Charset charset) voidsetContentChecksum(String contentChecksum) Sets the content checksum.voidsetContentType(ContentType contentType) voidsetDeleted(boolean deleted) voidsetDepth(int depth) Typically, the number of "hops" or directories to get to a file.voidsetLastModified(ZonedDateTime lastModified) voidsetMetaChecksum(String metaChecksum) voidsetOrphan(boolean orphan) voidsetProcessedAt(ZonedDateTime processedAt) voidsetProcessingAt(ZonedDateTime processingAt) voidsetProcessingOutcome(ProcessingOutcome processingOutcome) voidsetProcessingStatus(@NonNull ProcessingStatus processingStatus) voidsetQueuedAt(ZonedDateTime queuedAt) Sets the queued date.voidsetReference(String reference) voidsetReferenceTrail(List<String> referenceTrail) Sets original references before normalization, redirect, etc.toString()withReference(String reference)
-
Constructor Details
-
CrawlerEntry
public CrawlerEntry() -
CrawlerEntry
-
-
Method Details
-
withReference
-
getReferenceTrail
Gets original references before normalization, redirect, etc.- Returns:
- reference trail up to, but excluding, the current one.
-
setReferenceTrail
Sets original references before normalization, redirect, etc.- Parameters:
referenceTrail- reference trail up to, but excluding, the current one.
-
addToReferenceTrail
Adds original references before normalization, redirect, etc.- Parameters:
reference- reference to append to the trail
-
getMetaChecksum
-
setMetaChecksum
-
getContentChecksum
Gets the content checksum.- Returns:
- the content checksum
-
setContentChecksum
Sets the content checksum.- Parameters:
contentChecksum- content checksum
-
getQueuedAt
Gets the queued date.- Returns:
- the queued date
-
setQueuedAt
Sets the queued date.- Parameters:
queuedAt- the queued date
-
getDepth
public int getDepth()Typically, the number of "hops" or directories to get to a file. -
getProcessingStatus
-
getProcessingOutcome
-
getProcessingAt
-
getProcessedAt
-
getLastModified
-
getContentType
-
getCharset
-
isOrphan
public boolean isOrphan() -
isDeleted
public boolean isDeleted() -
getReference
-
setDepth
public void setDepth(int depth) Typically, the number of "hops" or directories to get to a file. -
setProcessingStatus
-
setProcessingOutcome
-
setProcessingAt
-
setProcessedAt
-
setLastModified
-
setContentType
-
setCharset
-
setOrphan
public void setOrphan(boolean orphan) -
setDeleted
public void setDeleted(boolean deleted) -
setReference
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-