org.apache.giraph.graph
Class VertexEdgeCount

java.lang.Object
  extended by org.apache.giraph.graph.VertexEdgeCount
Direct Known Subclasses:
FinishedSuperstepStats

public class VertexEdgeCount
extends Object

Simple immutable structure for storing a final vertex and edge count.


Constructor Summary
VertexEdgeCount()
          Default constructor.
VertexEdgeCount(long vertexCount, long edgeCount)
          Constructor with initial values.
 
Method Summary
 long getEdgeCount()
           
 long getVertexCount()
           
 VertexEdgeCount incrVertexEdgeCount(long vertexCount, long edgeCount)
          Increment the both the vertex edge count with primitives.
 VertexEdgeCount incrVertexEdgeCount(VertexEdgeCount vertexEdgeCount)
          Increment the both the vertex edge count with a VertexEdgeCount.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VertexEdgeCount

public VertexEdgeCount()
Default constructor.


VertexEdgeCount

public VertexEdgeCount(long vertexCount,
                       long edgeCount)
Constructor with initial values.

Parameters:
vertexCount - Final number of vertices.
edgeCount - Final number of edges.
Method Detail

getVertexCount

public long getVertexCount()

getEdgeCount

public long getEdgeCount()

incrVertexEdgeCount

public VertexEdgeCount incrVertexEdgeCount(VertexEdgeCount vertexEdgeCount)
Increment the both the vertex edge count with a VertexEdgeCount.

Parameters:
vertexEdgeCount - add both the vertices and edges of this object.
Returns:
New immutable object with the new vertex and edge counts.

incrVertexEdgeCount

public VertexEdgeCount incrVertexEdgeCount(long vertexCount,
                                           long edgeCount)
Increment the both the vertex edge count with primitives.

Parameters:
vertexCount - Add this many vertices.
edgeCount - Add this many edges.
Returns:
New immutable object with the new vertex and edge counts.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.