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, stopJobgetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic 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.IOExceptionjava.lang.InterruptedExceptionjava.lang.ClassNotFoundExceptionpublic void invert(Path linkDb, Path[] segments, boolean normalize, boolean filter, boolean force) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.ClassNotFoundExceptionpublic static void install(Job job, Path linkDb) throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic 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
NutchToolCopyright © 2019 The Apache Software Foundation