org.apache.nutch.scoring
Class ScoreDatum
java.lang.Object
org.apache.nutch.scoring.ScoreDatum
- All Implemented Interfaces:
- Writable
public class ScoreDatum
- extends Object
- implements Writable
ScoreDatum
public ScoreDatum()
ScoreDatum
public ScoreDatum(float score,
String url,
String anchor)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface 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()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 The Apache Software Foundation