public interface FetchedURLs
Database of URLs that have already been fetched.
Field Summary | |
---|---|
static java.util.logging.Logger |
LOG
|
Method Summary | |
---|---|
void |
close()
|
boolean |
contains(java.net.URL url)
Has the URL already been fetched? |
ScheduledURL |
get(long id)
Get a persisted URL. |
void |
init()
|
void |
insert(ScheduledURL url,
org.apache.nutch.protocol.ProtocolOutput output)
Insert a fetched URL. |
Field Detail |
---|
static final java.util.logging.Logger LOG
Method Detail |
---|
void close() throws java.io.IOException
java.io.IOException
boolean contains(java.net.URL url)
url
-
ScheduledURL get(long id)
id
- ScheduledURL's id
java.lang.UnsupportedOperationException
- if the implementation doesn't save ScheduledURLsvoid init() throws java.io.IOException
java.io.IOException
void insert(ScheduledURL url, org.apache.nutch.protocol.ProtocolOutput output) throws java.io.IOException
url
- urloutput
- protocol output
java.io.IOException