|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LinkQueue
A LinkQueue maintains a list of the ids of items that have been crawled, and a crawl timestamp. It's useful when re-crawling data sources so you can locate items that haven't been crawled and may have been deleted.
| Method Summary | |
|---|---|
void |
close()
Close this queue. |
String |
fetchNextUncrawled(long beforeTimestamp)
Fetch the id of an uncrawled item. |
String |
getDescription()
Return a description of the LinkQueue for display in the Admin UI, for example, "LinkQueue based on XYZ database" |
String |
getName()
Return the name of this LinkQueue implementation, for example, "MyLinkQueue" |
long |
getSignature(String id)
Get the signature of the item with the given id, or -1 if the id is not found. |
void |
remove(String id)
Remove the specified id from the queue. |
void |
setParams(XMLConfig params)
Set parameters to configure this LinkQueue. |
void |
update(String id,
long signature,
long lastCrawl)
Update the item with the given id and set the signature and lastCrawl timestamp. |
| Method Detail |
|---|
long getSignature(String id)
id - the id of the item
void update(String id,
long signature,
long lastCrawl)
id - the id of the itemsignature - see the definition of signature in getSignature()lastCrawl - timestamp of the last crawl of the itemString fetchNextUncrawled(long beforeTimestamp)
beforeTimestamp - a timestamp in millis, typically matching the start
time of the current crawl
void remove(String id)
id - an id of a item.void close()
String getName()
String getDescription()
void setParams(XMLConfig params)
params - the params to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||