org.apache.nutch.crawl
Class GeneratorJob.SelectorEntry

java.lang.Object
  extended by org.apache.nutch.crawl.GeneratorJob.SelectorEntry
All Implemented Interfaces:
Comparable<GeneratorJob.SelectorEntry>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<GeneratorJob.SelectorEntry>
Enclosing class:
GeneratorJob

public static class GeneratorJob.SelectorEntry
extends Object
implements org.apache.hadoop.io.WritableComparable<GeneratorJob.SelectorEntry>


Constructor Summary
GeneratorJob.SelectorEntry()
           
GeneratorJob.SelectorEntry(String url, float score)
           
 
Method Summary
 int compareTo(GeneratorJob.SelectorEntry se)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(String url, float score)
          Sets url with score on this writable.
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorJob.SelectorEntry

public GeneratorJob.SelectorEntry()

GeneratorJob.SelectorEntry

public GeneratorJob.SelectorEntry(String url,
                                  float score)
Method Detail

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

compareTo

public int compareTo(GeneratorJob.SelectorEntry se)
Specified by:
compareTo in interface Comparable<GeneratorJob.SelectorEntry>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

set

public void set(String url,
                float score)
Sets url with score on this writable. Allows for writable reusing.

Parameters:
url -
score -


Copyright © 2013 The Apache Software Foundation