public class GiraphGraphComputer extends org.apache.hadoop.conf.Configured implements GraphComputer, org.apache.hadoop.util.Tool
GraphComputer.Exceptions, GraphComputer.Features, GraphComputer.Isolation, GraphComputer.Persist, GraphComputer.ResultGraph| Modifier and Type | Field and Description |
|---|---|
protected GiraphConfiguration |
giraphConfiguration |
protected HadoopGraph |
hadoopGraph |
static Logger |
LOGGER |
| Constructor and Description |
|---|
GiraphGraphComputer(HadoopGraph hadoopGraph) |
| Modifier and Type | Method and Description |
|---|---|
GraphComputer.Features |
features() |
GraphComputer |
isolation(GraphComputer.Isolation isolation)
Set the
GraphComputer.Isolation of the computation. |
static void |
main(String[] args) |
GraphComputer |
mapReduce(MapReduce mapReduce)
Add a
MapReduce job to the set of MapReduce jobs to be executed by the GraphComputer. |
GraphComputer |
persist(GraphComputer.Persist persist)
Set the
GraphComputer.Persist level of the computation. |
GraphComputer |
program(VertexProgram vertexProgram)
Set the
VertexProgram to be executed by the GraphComputer. |
GraphComputer |
result(GraphComputer.ResultGraph resultGraph)
Set the
GraphComputer.ResultGraph of the computation. |
int |
run(String[] args) |
Future<ComputerResult> |
submit()
|
String |
toString() |
public static final Logger LOGGER
protected final HadoopGraph hadoopGraph
protected GiraphConfiguration giraphConfiguration
public GiraphGraphComputer(HadoopGraph hadoopGraph)
public GraphComputer isolation(GraphComputer.Isolation isolation)
GraphComputerGraphComputer.Isolation of the computation.isolation in interface GraphComputerisolation - the isolation of the computationpublic GraphComputer result(GraphComputer.ResultGraph resultGraph)
GraphComputerGraphComputer.ResultGraph of the computation.
If this is not set explicitly by the user, then the VertexProgram can choose the most efficient result for its intended use.
If there is no declared vertex program, then the GraphComputer defaults to GraphComputer.ResultGraph.ORIGINAL.result in interface GraphComputerresultGraph - the type of graph to be returned by ComputerResult.graph()public GraphComputer persist(GraphComputer.Persist persist)
GraphComputerGraphComputer.Persist level of the computation.
If this is not set explicitly by the user, then the VertexProgram can choose the most efficient persist for the its intended use.
If there is no declared vertex program, then the GraphComputer defaults to GraphComputer.Persist.NOTHING.persist in interface GraphComputerpersist - the persistence level of the resultant computationpublic GraphComputer program(VertexProgram vertexProgram)
GraphComputerVertexProgram to be executed by the GraphComputer.
There can only be one VertexProgram for the GraphComputer.program in interface GraphComputervertexProgram - the VertexProgram to be executedpublic GraphComputer mapReduce(MapReduce mapReduce)
GraphComputerMapReduce job to the set of MapReduce jobs to be executed by the GraphComputer.
There can be any number of MapReduce jobs.mapReduce in interface GraphComputermapReduce - the MapReduce job to add to the computationpublic Future<ComputerResult> submit()
GraphComputersubmit in interface GraphComputerFuture denoting a reference to the asynchronous computation and where to get the DefaultComputerResult when its is complete.public int run(String[] args)
run in interface org.apache.hadoop.util.Toolpublic GraphComputer.Features features()
features in interface GraphComputerCopyright © 2013–2015 Apache Software Foundation. All rights reserved.