|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.nutch.db.DistributedWebDBWriter.LinkInstruction
Holds an instruction over a Link.
| Nested Class Summary | |
static class |
DistributedWebDBWriter.LinkInstruction.MD5Comparator
Sorts the instruction first by Md5, then by opcode. |
static class |
DistributedWebDBWriter.LinkInstruction.UrlComparator
Sorts the instruction first by url, then by opcode. |
| Constructor Summary | |
DistributedWebDBWriter.LinkInstruction()
|
|
DistributedWebDBWriter.LinkInstruction(Link link,
int instruction)
|
|
| Method Summary | |
int |
compareTo(Object o)
|
int |
getInstruction()
|
Link |
getLink()
|
void |
readFields(DataInput in)
Reads the fields of this object from in. |
void |
set(DistributedWebDBWriter.LinkInstruction that)
Re-init from another LinkInstruction's info. |
void |
set(Link link,
int instruction)
Re-init with a Link and an instruction |
void |
write(DataOutput out)
Writes the fields of this object to out. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DistributedWebDBWriter.LinkInstruction()
public DistributedWebDBWriter.LinkInstruction(Link link,
int instruction)
| Method Detail |
public void set(DistributedWebDBWriter.LinkInstruction that)
public void set(Link link,
int instruction)
public int compareTo(Object o)
compareTo in interface Comparable
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOExceptionpublic Link getLink()
public int getInstruction()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||