|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.graph.Edge<VidType,EdgeData>
VidType
- the type of vertex id.EdgeData
- the type of edge data.public class Edge<VidType extends org.apache.hadoop.io.WritableComparable<VidType>,EdgeData extends org.apache.hadoop.io.Writable>
Represents an Edge object with source, target vertex id and edge data.
Constructor Summary | |
---|---|
Edge()
Default constructor. |
|
Edge(VidType source,
VidType target,
EdgeData edata)
Creates an edge with given source, target and edge data. |
Method Summary | |
---|---|
EdgeData |
EdgeData()
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
void |
set(VidType source,
VidType target,
EdgeData edata)
Set an edge with given source target ids and edge data, overwriting exisiting fields. |
VidType |
source()
|
VidType |
target()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge()
public Edge(VidType source, VidType target, EdgeData edata)
source
- target
- edata
- Method Detail |
---|
public EdgeData EdgeData()
public VidType source()
public VidType target()
public void set(VidType source, VidType target, EdgeData edata)
source
- target
- edata
- 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 |