|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.giraph.utils.InternalVertexRunner
public class InternalVertexRunner
A base class for running internal tests on a vertex Extending classes only have to invoke the run() method to test their vertex. All data is written to a local tmp directory that is removed afterwards. A local zookeeper instance is started in an extra thread and shutdown at the end. Heavily inspired from Apache Mahout's MahoutTestCase
| Field Summary | |
|---|---|
static int |
LOCAL_ZOOKEEPER_PORT
ZooKeeper port to use for tests |
| Method Summary | ||
|---|---|---|
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
|
run(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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LOCAL_ZOOKEEPER_PORT
| Method Detail |
|---|
public static Iterable<String> run(GiraphConfiguration conf,
String[] vertexInputData)
throws Exception
conf - GiraphClasses specifying which types to usevertexInputData - linewise vertex input data
Exception - if anything goes wrong
public 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 data
Exception - if anything goes wrong
public 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> run(GiraphConfiguration conf,
TestGraph<I,V,E> graph)
throws Exception
I - Vertex IDV - Vertex ValueE - Edge Valueconf - GiraphClasses specifying which types to usegraph - input graph
Exception - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||