I
- Vertex index valueV
- Vertex valueE
- Edge valuepublic class VertexMutations<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements VertexChanges<I,V,E>, org.apache.hadoop.io.Writable, ImmutableClassesGiraphConfigurable
Constructor and Description |
---|
VertexMutations() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Edge<I,E> edge)
Add an edge to this vertex
|
void |
addVertex(Vertex<I,V,E> vertex)
Add a vertex mutation
|
void |
addVertexMutations(VertexMutations<I,V,E> vertexMutations)
Add one vertex mutations to another
|
VertexMutations<I,V,E> |
copy()
Copy the vertex mutations.
|
List<Edge<I,E>> |
getAddedEdgeList()
Get the added edges for this particular vertex index from the previous
superstep
|
List<Vertex<I,V,E>> |
getAddedVertexList()
Get the added vertices for this particular vertex index from the previous
superstep.
|
ImmutableClassesGiraphConfiguration |
getConf()
Return the configuration used by this object.
|
List<I> |
getRemovedEdgeList()
Get the removed edges by their destination vertex index.
|
int |
getRemovedVertexCount()
Get the number of times this vertex was removed in the previous
superstep.
|
void |
readFields(DataInput input) |
void |
removeEdge(I destinationVertexId)
Remove an edge on this vertex
|
void |
removeVertex()
Removed a vertex mutation (increments a count)
|
void |
setConf(ImmutableClassesGiraphConfiguration conf)
Set the configuration to be used by this object.
|
String |
toString() |
void |
write(DataOutput output) |
public VertexMutations<I,V,E> copy()
public List<Vertex<I,V,E>> getAddedVertexList()
VertexChanges
getAddedVertexList
in interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public void readFields(DataInput input) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput output) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void addVertex(Vertex<I,V,E> vertex)
vertex
- Vertex to be addedpublic int getRemovedVertexCount()
VertexChanges
getRemovedVertexCount
in interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public void removeVertex()
public List<Edge<I,E>> getAddedEdgeList()
VertexChanges
getAddedEdgeList
in interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public void addEdge(Edge<I,E> edge)
edge
- Edge to be addedpublic List<I> getRemovedEdgeList()
VertexChanges
getRemovedEdgeList
in interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
public void removeEdge(I destinationVertexId)
destinationVertexId
- Vertex index of the destination of the edgepublic void addVertexMutations(VertexMutations<I,V,E> vertexMutations)
vertexMutations
- Object to be addedpublic ImmutableClassesGiraphConfiguration getConf()
ImmutableClassesGiraphConfigurable
getConf
in interface ImmutableClassesGiraphConfigurable
public void setConf(ImmutableClassesGiraphConfiguration conf)
GiraphConfigurationSettable
setConf
in interface GiraphConfigurationSettable
conf
- Set configurationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.