|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.tools.FetchListTool.SortableScore
SortableScore is just a WritableComparable Float!
Constructor Summary | |
FetchListTool.SortableScore()
|
Method Summary | |
int |
compareTo(Object o)
Sort them in descending order! |
float |
getFloat()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
set(float score)
|
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 FetchListTool.SortableScore()
Method Detail |
public void set(float score)
public float getFloat()
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |