|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.db.DistributedWebDBWriter.PageInstruction
PageInstruction holds an operation over a Page.
Nested Class Summary | |
static class |
DistributedWebDBWriter.PageInstruction.PageComparator
Sorts the instruction first by Page, then by opcode. |
static class |
DistributedWebDBWriter.PageInstruction.UrlComparator
Sorts the instruction first by url, then by opcode. |
Constructor Summary | |
DistributedWebDBWriter.PageInstruction()
|
|
DistributedWebDBWriter.PageInstruction(Page page,
int opcode)
|
|
DistributedWebDBWriter.PageInstruction(Page page,
Link link,
int opcode)
|
Method Summary | |
int |
compareTo(Object o)
|
int |
getInstruction()
|
Link |
getLink()
|
Page |
getPage()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
set(DistributedWebDBWriter.PageInstruction that)
Init from another PageInstruction object. |
void |
set(Page page,
int opcode)
Init PageInstruction with no Link |
void |
set(Page page,
Link link,
int opcode)
Init PageInstruction with a Link |
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.PageInstruction()
public DistributedWebDBWriter.PageInstruction(Page page, int opcode)
public DistributedWebDBWriter.PageInstruction(Page page, Link link, int opcode)
Method Detail |
public void set(DistributedWebDBWriter.PageInstruction that)
public void set(Page page, int opcode)
public void set(Page page, Link link, int opcode)
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 Page getPage()
public Link getLink()
public int getInstruction()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |