org.apache.nutch.tools
Class FetchListTool.SortableScore

java.lang.Object
  extended byorg.apache.nutch.tools.FetchListTool.SortableScore
All Implemented Interfaces:
Comparable, Writable, WritableComparable
Enclosing class:
FetchListTool

public static class FetchListTool.SortableScore
extends Object
implements WritableComparable

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

FetchListTool.SortableScore

public FetchListTool.SortableScore()
Method Detail

set

public void set(float score)

getFloat

public float getFloat()

compareTo

public int compareTo(Object o)
Sort them in descending order!

Specified by:
compareTo in interface Comparable

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation