org.apache.nutch.scoring
Class ScoreDatum
java.lang.Object
org.apache.nutch.scoring.ScoreDatum
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class ScoreDatum
- extends Object
- implements org.apache.hadoop.io.Writable
ScoreDatum
public ScoreDatum()
ScoreDatum
public ScoreDatum(float score,
String url,
String anchor,
int depth)
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