edu.umd.cloud9.example.hits
Class HITSNode
java.lang.Object
edu.umd.cloud9.example.hits.HITSNode
- All Implemented Interfaces:
- Writable
public class HITSNode
- extends Object
- implements Writable
Representation of a Hubs and Authorities Node for HITS algorithm computation
lets try git stuff
- Author:
- Mike McGrath
TYPE_HUB_COMPLETE
public static final int TYPE_HUB_COMPLETE
- See Also:
- Constant Field Values
TYPE_HUB_MASS
public static final int TYPE_HUB_MASS
- See Also:
- Constant Field Values
TYPE_HUB_STRUCTURE
public static final int TYPE_HUB_STRUCTURE
- See Also:
- Constant Field Values
TYPE_AUTH_COMPLETE
public static final int TYPE_AUTH_COMPLETE
- See Also:
- Constant Field Values
TYPE_AUTH_MASS
public static final int TYPE_AUTH_MASS
- See Also:
- Constant Field Values
TYPE_AUTH_STRUCTURE
public static final int TYPE_AUTH_STRUCTURE
- See Also:
- Constant Field Values
TYPE_NODE_COMPLETE
public static final int TYPE_NODE_COMPLETE
- See Also:
- Constant Field Values
TYPE_NODE_MASS
public static final int TYPE_NODE_MASS
- See Also:
- Constant Field Values
TYPE_NODE_STRUCTURE
public static final int TYPE_NODE_STRUCTURE
- See Also:
- Constant Field Values
HITSNode
public HITSNode()
getHRank
public float getHRank()
getARank
public float getARank()
setHRank
public void setHRank(float r)
setARank
public void setARank(float r)
getNodeId
public int getNodeId()
setNodeId
public void setNodeId(int n)
getInlinks
public ArrayListOfIntsWritable getInlinks()
setInlinks
public void setInlinks(ArrayListOfIntsWritable l)
getOutlinks
public ArrayListOfIntsWritable getOutlinks()
setOutlinks
public void setOutlinks(ArrayListOfIntsWritable l)
getType
public int getType()
setType
public void setType(int type)
readFields
public void readFields(DataInput in)
throws IOException
- Deserializes this object.
- Specified by:
readFields in interface Writable
- Parameters:
in - source for raw byte representation
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Serializes this object.
- Specified by:
write in interface Writable
- Parameters:
out - where to write the raw byte representation
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object