|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.example.pagerank.PageRankNode
public class PageRankNode
Representation of a graph node for PageRank.
| Nested Class Summary | |
|---|---|
static class |
PageRankNode.Type
|
| Constructor Summary | |
|---|---|
PageRankNode()
|
|
| Method Summary | |
|---|---|
static PageRankNode |
create(byte[] bytes)
Creates object from a byte array. |
static PageRankNode |
create(DataInput in)
Creates object from a DataInput. |
ArrayListOfIntsWritable |
getAdjacenyList()
|
int |
getNodeId()
|
float |
getPageRank()
|
PageRankNode.Type |
getType()
|
void |
readFields(DataInput in)
Deserializes this object. |
byte[] |
serialize()
Returns the serialized representation of this object as a byte array. |
void |
setAdjacencyList(ArrayListOfIntsWritable list)
|
void |
setNodeId(int n)
|
void |
setPageRank(float p)
|
void |
setType(PageRankNode.Type 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 |
| Constructor Detail |
|---|
public PageRankNode()
| Method Detail |
|---|
public float getPageRank()
public void setPageRank(float p)
public int getNodeId()
public void setNodeId(int n)
public ArrayListOfIntsWritable getAdjacenyList()
public void setAdjacencyList(ArrayListOfIntsWritable list)
public PageRankNode.Type getType()
public void setType(PageRankNode.Type type)
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOExceptionpublic String toString()
toString in class Object
public byte[] serialize()
throws IOException
IOException
public static PageRankNode create(DataInput in)
throws IOException
DataInput.
in - source for reading the serialized representation
IOException
public static PageRankNode create(byte[] bytes)
throws IOException
bytes - raw serialized representation
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||