public class ScoreUpdater extends Configured implements Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
ScoreUpdater.ScoreUpdaterMapper
Changes input into ObjectWritables.
|
static class |
ScoreUpdater.ScoreUpdaterReducer
Creates new CrawlDatum objects with the updated score from the NodeDb or
with a cleared score.
|
| Constructor and Description |
|---|
ScoreUpdater() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
int |
run(String[] args)
Runs the ScoreUpdater tool.
|
void |
update(Path crawlDb,
Path webGraphDb)
Updates the inlink score in the web graph node databsae into the crawl
database.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic void update(Path crawlDb, Path webGraphDb) throws IOException, ClassNotFoundException, InterruptedException
crawlDb - The crawl database to updatewebGraphDb - The webgraph database to use.IOException - If an error occurs while updating the scores.ClassNotFoundExceptionInterruptedExceptionCopyright © 2021 The Apache Software Foundation