public static class TestVertexAndEdges.TestOutEdges extends Object implements OutEdges<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>
OutEdges
implementation that doesn't provide any
special functionality. Used to test the default implementations of
Vertex#getEdgeValue(), Vertex#getMutableEdges(), etc.Constructor and Description |
---|
TestOutEdges() |
Modifier and Type | Method and Description |
---|---|
void |
add(Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable> edge) |
void |
initialize() |
void |
initialize(int capacity) |
void |
initialize(Iterable<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>> edges) |
Iterator<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>> |
iterator() |
void |
readFields(DataInput in) |
void |
remove(org.apache.hadoop.io.LongWritable targetVertexId) |
int |
size() |
void |
write(DataOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void initialize(Iterable<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>> edges)
initialize
in interface OutEdges<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>
public void initialize(int capacity)
initialize
in interface OutEdges<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>
public void initialize()
initialize
in interface OutEdges<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>
public void add(Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable> edge)
public void remove(org.apache.hadoop.io.LongWritable targetVertexId)
public int size()
public Iterator<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.DoubleWritable>> iterator()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.