public class TestGraphUtils extends Object
Modifier and Type | Field and Description |
---|---|
static BooleanConfOption |
USE_FULL_GIRAPH_ENV_IN_TESTS
modify locally for running full Digraph tests from IDE
|
Modifier and Type | Method and Description |
---|---|
static BulkConfigurator |
chainConfigurators(BulkConfigurator... configurators)
Chain execution of multiple BulkConfigurators into one.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
chainModifiers(TestGraphModifier<I,V,E>... graphModifiers)
Chain execution of multiple TestGraphModifier into one.
|
static Supplier<org.apache.hadoop.io.DoubleWritable> |
doubleSupplier(double value) |
static Supplier<org.apache.hadoop.io.NullWritable> |
nullSupplier() |
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
runTest(NumericTestGraph<I,V,E> graph,
TestGraphChecker<? super I,? super V,? super E> graphChecker)
Base of runTest.
|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> |
runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer,
TestGraphChecker<? super I,? super V,? super E> graphChecker,
BulkConfigurator configurator)
Creates configuration using configurator, initializes the graph using
graphInitializer, and checks it via graphChecker.
|
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> |
runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer,
TestGraphChecker<? super I,? super V,? super E> graphChecker,
GiraphConfiguration conf)
Uses provided configuration, initializes the graph using
graphInitializer, and checks it via graphChecker.
|
static void |
setTestRepeatTimes(int testRepeatTimes) |
public static final BooleanConfOption USE_FULL_GIRAPH_ENV_IN_TESTS
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> void runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer, TestGraphChecker<? super I,? super V,? super E> graphChecker, BulkConfigurator configurator) throws Exception
Exception
public static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> void runTest(TestGraphModifier<? super I,? super V,? super E> graphInitializer, TestGraphChecker<? super I,? super V,? super E> graphChecker, GiraphConfiguration conf) throws Exception
Exception
public static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> void runTest(NumericTestGraph<I,V,E> graph, TestGraphChecker<? super I,? super V,? super E> graphChecker) throws Exception
Exception
@SafeVarargs public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> TestGraphModifier<I,V,E> chainModifiers(TestGraphModifier<I,V,E>... graphModifiers)
public static BulkConfigurator chainConfigurators(BulkConfigurator... configurators)
public static Supplier<org.apache.hadoop.io.DoubleWritable> doubleSupplier(double value)
public static Supplier<org.apache.hadoop.io.NullWritable> nullSupplier()
public static void setTestRepeatTimes(int testRepeatTimes)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.