public class TestVertexAndEdges extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestVertexAndEdges.TestComputation
Dummy concrete vertex.
|
static class |
TestVertexAndEdges.TestOutEdges
A basic
OutEdges implementation that doesn't provide any
special functionality. |
| Modifier and Type | Field and Description |
|---|---|
static int |
REPS
Number of repetitions.
|
| Constructor and Description |
|---|
TestVertexAndEdges() |
| Modifier and Type | Method and Description |
|---|---|
protected Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.DoubleWritable> |
buildVertex(Class<? extends OutEdges> edgesClass) |
static OutEdges |
instantiateOutEdges(Class<? extends OutEdges> edgesClass) |
protected Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.DoubleWritable> |
instantiateVertex(Class<? extends OutEdges> edgesClass) |
void |
setUp() |
void |
testEdges()
Test the provided
OutEdges implementations for instantiation,
initialization, edge addition, and edge removal. |
void |
testMutateEdges()
Test in-place edge mutations via the iterable returned by
Vertex.getMutableEdges(). |
void |
testSerialize()
|
void |
testVertexIdAndValue()
Test vertex instantiation, initialization, and updating the vertex value.
|
public static final int REPS
public void setUp()
protected Vertex<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.DoubleWritable> instantiateVertex(Class<? extends OutEdges> edgesClass)
public void testVertexIdAndValue()
public static OutEdges instantiateOutEdges(Class<? extends OutEdges> edgesClass)
public void testEdges()
OutEdges implementations for instantiation,
initialization, edge addition, and edge removal.public void testMutateEdges()
Vertex.getMutableEdges().public void testSerialize()
throws IOException
IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.