public class InternalVertexRunner extends Object
Modifier and Type | Method and Description |
---|---|
static Iterable<String> |
run(GiraphConfiguration conf,
String[] vertexInputData)
Attempts to run the vertex internally in the current JVM, reading from and
writing to a temporary folder on local disk.
|
static Iterable<String> |
run(GiraphConfiguration conf,
String[] vertexInputData,
String[] edgeInputData)
Attempts to run the vertex internally in the current JVM, reading from and
writing to a temporary folder on local disk.
|
static Iterable<String> |
run(GiraphConfiguration conf,
String[] vertexInputData,
String[] edgeInputData,
String checkpointsDir,
File tmpDir)
Attempts to run the vertex internally in the current JVM, reading from and
writing to a temporary folder on local disk.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
run(GiraphConfiguration conf,
TestGraph<I,V,E> graph)
Attempts to run the vertex internally in the current JVM,
reading from an in-memory graph.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
run(GiraphConfiguration conf,
TestGraph<I,V,E> graph,
File tmpDir,
String checkpointsDir)
Attempts to run the vertex internally in the current JVM,
reading from an in-memory graph.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
runWithInMemoryOutput(GiraphConfiguration conf,
TestGraph<I,V,E> graph)
Attempts to run the vertex internally in the current JVM, reading and
writing to an in-memory graph.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
runWithInMemoryOutput(GiraphConfiguration conf,
TestGraph<I,V,E> graph,
File tmpDir,
String checkpointsDir)
Attempts to run the vertex internally in the current JVM, reading and
writing to an in-memory graph.
|
public static Iterable<String> run(GiraphConfiguration conf, String[] vertexInputData) throws Exception
conf
- GiraphClasses specifying which types to usevertexInputData
- linewise vertex input dataException
- if anything goes wrongpublic static Iterable<String> run(GiraphConfiguration conf, String[] vertexInputData, String[] edgeInputData) throws Exception
conf
- GiraphClasses specifying which types to usevertexInputData
- linewise vertex input dataedgeInputData
- linewise edge input dataException
- if anything goes wrongpublic static Iterable<String> run(GiraphConfiguration conf, String[] vertexInputData, String[] edgeInputData, String checkpointsDir, File tmpDir) throws Exception
conf
- GiraphClasses specifying which types to usevertexInputData
- linewise vertex input dataedgeInputData
- linewise edge input datacheckpointsDir
- if set, will use this folder
for storing checkpoints.tmpDir
- file path for storing temporary files.Exception
- if anything goes wrongpublic static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> void run(GiraphConfiguration conf, TestGraph<I,V,E> graph) throws Exception
I
- Vertex IDV
- Vertex ValueE
- Edge Valueconf
- GiraphClasses specifying which types to usegraph
- input graphException
- if anything goes wrongpublic static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> void run(GiraphConfiguration conf, TestGraph<I,V,E> graph, File tmpDir, String checkpointsDir) throws Exception
I
- Vertex IDV
- Vertex ValueE
- Edge Valueconf
- GiraphClasses specifying which types to usegraph
- input graphtmpDir
- file path for storing temporary files.checkpointsDir
- if set, will use this folder
for storing checkpoints.Exception
- if anything goes wrongpublic static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> TestGraph<I,V,E> runWithInMemoryOutput(GiraphConfiguration conf, TestGraph<I,V,E> graph) throws Exception
I
- Vertex IDV
- Vertex ValueE
- Edge Valueconf
- GiraphClasses specifying which types to usegraph
- input graphException
- if anything goes wrongpublic static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> TestGraph<I,V,E> runWithInMemoryOutput(GiraphConfiguration conf, TestGraph<I,V,E> graph, File tmpDir, String checkpointsDir) throws Exception
I
- Vertex IDV
- Vertex ValueE
- Edge Valueconf
- GiraphClasses specifying which types to usegraph
- input graphtmpDir
- file path for storing temporary files.checkpointsDir
- if set, will use this folder
for storing checkpoints.Exception
- if anything goes wrongCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.