|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.db.WebDBWriter.LinkInstruction
Holds an instruction over a Link.
Nested Class Summary | |
static class |
WebDBWriter.LinkInstruction.MD5Comparator
Sorts the instruction first by Md5, then by opcode. |
static class |
WebDBWriter.LinkInstruction.UrlComparator
Sorts the instruction first by url, then by opcode. |
Constructor Summary | |
WebDBWriter.LinkInstruction()
|
|
WebDBWriter.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(Link link,
int instruction)
Re-init with a Link and an instruction |
void |
set(WebDBWriter.LinkInstruction that)
Re-init from another LinkInstruction's info. |
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 WebDBWriter.LinkInstruction()
public WebDBWriter.LinkInstruction(Link link, int instruction)
Method Detail |
public void set(WebDBWriter.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
Writable
out
.
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public Link getLink()
public int getInstruction()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |