edu.umd.cloud9.example.hits
Class HITSNode

java.lang.Object
  extended by 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

Field Summary
static int TYPE_AUTH_COMPLETE
           
static int TYPE_AUTH_MASS
           
static int TYPE_AUTH_STRUCTURE
           
static int TYPE_HUB_COMPLETE
           
static int TYPE_HUB_MASS
           
static int TYPE_HUB_STRUCTURE
           
 
Constructor Summary
HITSNode()
           
 
Method Summary
 ArrayListOfIntsWritable getAdjacencyList()
           
 float getHARank()
           
 int getNodeId()
           
 int getType()
           
 void readFields(DataInput in)
          Deserializes this object.
 void setAdjacencyList(ArrayListOfIntsWritable l)
           
 void setHARank(float r)
           
 void setNodeId(int n)
           
 void setType(int type)
           
 String toString()
           
 void write(DataOutput out)
          Serializes this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

HITSNode

public HITSNode()
Method Detail

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