public class LinkDb extends NutchTool implements Tool
Modifier and Type | Class and Description |
---|---|
static class |
LinkDb.LinkDbMapper |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_NAME |
static java.lang.String |
IGNORE_EXTERNAL_LINKS |
static java.lang.String |
IGNORE_INTERNAL_LINKS |
static java.lang.String |
LOCK_NAME |
currentJob, currentJobNum, numJobs, results, status
Constructor and Description |
---|
LinkDb() |
LinkDb(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
static void |
install(Job job,
Path linkDb) |
void |
invert(Path linkDb,
Path[] segments,
boolean normalize,
boolean filter,
boolean force) |
void |
invert(Path linkDb,
Path segmentsDir,
boolean normalize,
boolean filter,
boolean force) |
static void |
main(java.lang.String[] args) |
java.util.Map<java.lang.String,java.lang.Object> |
run(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String crawlId)
Runs the tool, using a map of arguments.
|
int |
run(java.lang.String[] args) |
getProgress, getStatus, killJob, stopJob
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static final java.lang.String IGNORE_INTERNAL_LINKS
public static final java.lang.String IGNORE_EXTERNAL_LINKS
public static final java.lang.String CURRENT_NAME
public static final java.lang.String LOCK_NAME
public LinkDb()
public LinkDb(Configuration conf)
public void invert(Path linkDb, Path segmentsDir, boolean normalize, boolean filter, boolean force) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException
public void invert(Path linkDb, Path[] segments, boolean normalize, boolean filter, boolean force) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException
public static void install(Job job, Path linkDb) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public int run(java.lang.String[] args) throws java.lang.Exception
public java.util.Map<java.lang.String,java.lang.Object> run(java.util.Map<java.lang.String,java.lang.Object> args, java.lang.String crawlId) throws java.lang.Exception
NutchTool
Copyright © 2019 The Apache Software Foundation