|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.example.bfs.BFSNode
public class BFSNode
Representation of a graph node for parallel breadth-first search.
| Nested Class Summary | |
|---|---|
static class |
BFSNode.Type
|
| Constructor Summary | |
|---|---|
BFSNode()
|
|
| Method Summary | |
|---|---|
static BFSNode |
create(byte[] bytes)
Creates object from a byte array. |
static BFSNode |
create(DataInput in)
Creates object from a DataInput. |
ArrayListOfIntsWritable |
getAdjacenyList()
|
int |
getDistance()
|
int |
getNodeId()
|
BFSNode.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 l)
|
void |
setDistance(int d)
|
void |
setNodeId(int n)
|
void |
setType(BFSNode.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 BFSNode()
| Method Detail |
|---|
public int getDistance()
public void setDistance(int d)
public int getNodeId()
public void setNodeId(int n)
public ArrayListOfIntsWritable getAdjacenyList()
public void setAdjacencyList(ArrayListOfIntsWritable l)
public BFSNode.Type getType()
public void setType(BFSNode.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 BFSNode create(DataInput in)
throws IOException
DataInput.
in - source for reading the serialized representation
IOException
public static BFSNode 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 | |||||||||