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

lets try git stuff

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
           
static int TYPE_NODE_COMPLETE
           
static int TYPE_NODE_MASS
           
static int TYPE_NODE_STRUCTURE
           
 
Constructor Summary
HITSNode()
           
 
Method Summary
 float getARank()
           
 float getHRank()
           
 ArrayListOfIntsWritable getInlinks()
           
 int getNodeId()
           
 ArrayListOfIntsWritable getOutlinks()
           
 int getType()
           
 void readFields(DataInput in)
          Deserializes this object.
 void setARank(float r)
           
 void setHRank(float r)
           
 void setInlinks(ArrayListOfIntsWritable l)
           
 void setNodeId(int n)
           
 void setOutlinks(ArrayListOfIntsWritable l)
           
 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

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

HITSNode

public HITSNode()
Method Detail

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