|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.graph.Vertex<VidType,VertexData>
VidType
- the type of vertex id.VertexData
- the type of vertex data.public class Vertex<VidType extends org.apache.hadoop.io.WritableComparable<VidType>,VertexData extends org.apache.hadoop.io.Writable>
Represents a vertex object with id and vertex data.
Constructor Summary | |
---|---|
Vertex()
Default constructor. |
|
Vertex(VidType vid,
VertexData vdata)
Creates a vertex with given vertex id and vertex data. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
void |
set(VidType vid,
VertexData vdata)
Set the vertex fields with given vertex id and data, overwriting existing fields. |
java.lang.String |
toString()
|
VertexData |
vdata()
Returns the data of the vertex. |
VidType |
vid()
Returns the id of the vertex. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vertex()
public Vertex(VidType vid, VertexData vdata)
vid
- vdata
- Method Detail |
---|
public VidType vid()
public VertexData vdata()
public void set(VidType vid, VertexData vdata)
vid
- the id of the new vertex.vdata
- the data of the new vertex.public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |