org.apache.giraph.graph
Class GraphState

java.lang.Object
  extended by org.apache.giraph.graph.GraphState

public class GraphState
extends Object

Immutable global state of the graph.


Constructor Summary
GraphState(long superstep, long numVertices, long numEdges, org.apache.hadoop.mapreduce.Mapper.Context context)
          Constructor
 
Method Summary
 org.apache.hadoop.mapreduce.Mapper.Context getContext()
           
 long getSuperstep()
           
 long getTotalNumEdges()
           
 long getTotalNumVertices()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphState

public GraphState(long superstep,
                  long numVertices,
                  long numEdges,
                  org.apache.hadoop.mapreduce.Mapper.Context context)
Constructor

Parameters:
superstep - Current superstep
numVertices - Current graph-wide vertices
numEdges - Current graph-wide edges
context - Context
Method Detail

getSuperstep

public long getSuperstep()

getTotalNumVertices

public long getTotalNumVertices()

getTotalNumEdges

public long getTotalNumEdges()

getContext

public org.apache.hadoop.mapreduce.Mapper.Context getContext()

toString

public String toString()
Overrides:
toString in class Object


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