public class TestTextDoubleDoubleAdjacencyListVertexInputFormat extends TextDoubleDoubleAdjacencyListVertexInputFormat
Modifier and Type | Class and Description |
---|---|
static class |
TestTextDoubleDoubleAdjacencyListVertexInputFormat.DummyComputation |
TextDoubleDoubleAdjacencyListVertexInputFormat.TextDoubleDoubleAdjacencyListVertexReader
AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader, AdjacencyListTextVertexInputFormat.LineSanitizer
TextVertexInputFormat.TextVertexReader, TextVertexInputFormat.TextVertexReaderFromEachLine, TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<T>, TextVertexInputFormat.TextVertexReaderFromEachLineProcessedHandlingExceptions<T,X extends Throwable>
LINE_TOKENIZE_VALUE, LINE_TOKENIZE_VALUE_DEFAULT
textInputFormat
Constructor and Description |
---|
TestTextDoubleDoubleAdjacencyListVertexInputFormat() |
Modifier and Type | Method and Description |
---|---|
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.WritableComparable> |
assertValid(Vertex<I,V,E> expected,
Vertex<I,V,E> actual) |
static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.WritableComparable> |
assertValidVertex(ImmutableClassesGiraphConfiguration<I,V,E> conf,
Vertex<I,V,E> actual,
I expectedId,
V expectedValue,
Edge<I,E>... edges) |
protected TextVertexInputFormat.TextVertexReader |
createVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> rr) |
protected TextVertexInputFormat.TextVertexReader |
createVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> rr,
AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer) |
void |
setUp() |
void |
testDifferentSeparators() |
void |
testEdgesMustHaveValues() |
void |
testHappyPath() |
void |
testIndexMustHaveValue() |
void |
testLineSanitizer() |
createVertexReader
checkInputSpecs, getSplits
readInputSplit, writeInputSplit
getConf, setConf
public TestTextDoubleDoubleAdjacencyListVertexInputFormat()
public void setUp() throws IOException, InterruptedException
IOException
InterruptedException
protected TextVertexInputFormat.TextVertexReader createVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> rr)
protected TextVertexInputFormat.TextVertexReader createVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> rr, AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer)
public void testIndexMustHaveValue() throws IOException, InterruptedException
IOException
InterruptedException
public void testEdgesMustHaveValues() throws IOException, InterruptedException
IOException
InterruptedException
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.WritableComparable> void assertValidVertex(ImmutableClassesGiraphConfiguration<I,V,E> conf, Vertex<I,V,E> actual, I expectedId, V expectedValue, Edge<I,E>... edges) throws Exception
Exception
public static <I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.WritableComparable> void assertValid(Vertex<I,V,E> expected, Vertex<I,V,E> actual)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.