org.apache.nutch.crawl
Class GeneratorJob.SelectorEntry
java.lang.Object
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>
GeneratorJob.SelectorEntry
public GeneratorJob.SelectorEntry()
GeneratorJob.SelectorEntry
public GeneratorJob.SelectorEntry(String url,
float score)
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