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, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public 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.ClassNotFoundException
InterruptedException
Copyright © 2021 The Apache Software Foundation