|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IWebDBReader is an interface to the consolidated page/link database. It permits all kind of read-only ops. This database may be implemented in several different ways, which this interface hides from its user.
Method Summary | |
void |
close()
Done reading. |
Link[] |
getLinks(MD5Hash md5)
Return all the Link objects that originate from a document with the given MD5 checksum. |
Link[] |
getLinks(UTF8 url)
Return any Link objects that point to the given URL. |
Page |
getPage(String url)
Return a Page object with the given URL, if any. |
Page[] |
getPages(MD5Hash md5)
Return any Pages with the given MD5 checksum. |
Enumeration |
links()
Obtain an Enumeration of all Link objects, sorted by target URL. |
long |
numLinks()
Simple count of all Link objects in db. |
long |
numPages()
Simple count of all Page objects in db. |
boolean |
pageExists(MD5Hash md5)
Returns whether a Page with the given MD5 checksum is in the db. |
Enumeration |
pages()
Obtain an Enumeration of all Page objects, sorted by URL |
Enumeration |
pagesByMD5()
Obtain an Enumeration of all Page objects, sorted by MD5. |
Method Detail |
public void close() throws IOException
IOException
public Page getPage(String url) throws IOException
IOException
public Page[] getPages(MD5Hash md5) throws IOException
IOException
public boolean pageExists(MD5Hash md5) throws IOException
IOException
public Enumeration pages() throws IOException
IOException
public Enumeration pagesByMD5() throws IOException
IOException
public long numPages()
public Link[] getLinks(UTF8 url) throws IOException
IOException
public Link[] getLinks(MD5Hash md5) throws IOException
IOException
public Enumeration links() throws IOException
IOException
public long numLinks()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |