I
- Vertex idE
- Edge datapublic class EdgeWithSource<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends Object
Constructor and Description |
---|
EdgeWithSource()
Constructor
|
EdgeWithSource(I sourceVertexId,
ReusableEdge<I,E> edge)
Constructor with source id and edge
|
Modifier and Type | Method and Description |
---|---|
ReusableEdge<I,E> |
getEdge() |
E |
getEdgeValue() |
I |
getSourceVertexId() |
I |
getTargetVertexId() |
void |
setEdge(ReusableEdge<I,E> edge) |
void |
setEdgeValue(E value)
Set the value of this edge
|
void |
setSourceVertexId(I sourceVertexId) |
void |
setTargetVertexId(I targetVertexId)
Set target vertex id of this edge
|
public EdgeWithSource()
public EdgeWithSource(I sourceVertexId, ReusableEdge<I,E> edge)
sourceVertexId
- Source idedge
- Edgepublic I getSourceVertexId()
public void setSourceVertexId(I sourceVertexId)
public ReusableEdge<I,E> getEdge()
public void setEdge(ReusableEdge<I,E> edge)
public I getTargetVertexId()
public void setTargetVertexId(I targetVertexId)
targetVertexId
- Target vertex idpublic E getEdgeValue()
public void setEdgeValue(E value)
value
- Edge valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.