public class DocIDServer extends Configurable
config| Constructor and Description |
|---|
DocIDServer(com.sleepycat.je.Environment env,
CrawlConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUrlAndDocId(String url,
int docId) |
void |
close() |
int |
getDocCount() |
int |
getDocId(String url)
Returns the docid of an already seen url.
|
int |
getNewDocID(String url) |
boolean |
isSeenBefore(String url) |
getConfigpublic DocIDServer(com.sleepycat.je.Environment env,
CrawlConfig config)
public int getDocId(String url)
url - the URL for which the docid is returned.public int getNewDocID(String url)
public boolean isSeenBefore(String url)
public final int getDocCount()
public void close()
Copyright © 2015. All rights reserved.