1 2 3 4 package net.nutch.db; 5 6 import java.io.*; 7 import java.util.*; 8 9 import net.nutch.io.*; 10 import net.nutch.pagedb.*; 11 import net.nutch.linkdb.*; 12 13 22 public interface IWebDBReader { 23 26 public void close() throws IOException; 27 28 33 public Page getPage(String url) throws IOException; 34 35 41 public Page[] getPages(MD5Hash md5) throws IOException; 42 43 46 public boolean pageExists(MD5Hash md5) throws IOException; 47 48 51 public Enumeration pages() throws IOException; 52 53 56 public Enumeration pagesByMD5() throws IOException; 57 58 61 public long numPages(); 62 63 69 public Link[] getLinks(UTF8 url) throws IOException; 70 71 76 public Link[] getLinks(MD5Hash md5) throws IOException; 77 78 82 public Enumeration links() throws IOException; 83 84 87 public long numLinks(); 88 } 89 | Popular Tags |