org.apache.nutch.scoring
Class ScoreDatum

java.lang.Object
  extended by org.apache.nutch.scoring.ScoreDatum
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ScoreDatum
extends Object
implements org.apache.hadoop.io.Writable


Constructor Summary
ScoreDatum()
           
ScoreDatum(float score, String url, String anchor, int depth)
           
 
Method Summary
 byte[] deleteMeta(String key)
           
 String getAnchor()
           
 int getDistance()
           
 byte[] getMeta(String key)
           
 float getScore()
           
 String getUrl()
           
 void readFields(DataInput in)
           
 void setMeta(String key, byte[] value)
           
 void setScore(float score)
           
 void setUrl(String url)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoreDatum

public ScoreDatum()

ScoreDatum

public ScoreDatum(float score,
                  String url,
                  String anchor,
                  int depth)
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

getMeta

public byte[] getMeta(String key)

setMeta

public void setMeta(String key,
                    byte[] value)

deleteMeta

public byte[] deleteMeta(String key)

getScore

public float getScore()

setScore

public void setScore(float score)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

getAnchor

public String getAnchor()

getDistance

public int getDistance()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation