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
- 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
HITSNode
public HITSNode()
getHARank
public float getHARank()
setHARank
public void setHARank(float r)
getNodeId
public int getNodeId()
setNodeId
public void setNodeId(int n)
getAdjacencyList
public ArrayListOfIntsWritable getAdjacencyList()
setAdjacencyList
public void setAdjacencyList(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