public class OpenHashMapEdges extends org.apache.giraph.edge.ConfigurableOutEdges<org.apache.hadoop.io.LongWritable,EdgeValue> implements org.apache.giraph.edge.StrictRandomAccessOutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
Constructor and Description |
---|
OpenHashMapEdges() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue> edge) |
EdgeValue |
getEdgeValue(org.apache.hadoop.io.LongWritable targetVertexId) |
void |
initialize() |
void |
initialize(int capacity) |
void |
initialize(java.lang.Iterable<org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue>> edges) |
java.util.Iterator<org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue>> |
iterator() |
java.util.Iterator<org.apache.giraph.edge.MutableEdge<org.apache.hadoop.io.LongWritable,EdgeValue>> |
mutableIterator() |
void |
readFields(java.io.DataInput in) |
void |
remove(org.apache.hadoop.io.LongWritable targetVertexId) |
void |
setEdgeValue(org.apache.hadoop.io.LongWritable targetVertexId,
EdgeValue edgeValue) |
int |
size() |
void |
write(java.io.DataOutput out) |
public void add(org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue> edge)
add
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public EdgeValue getEdgeValue(org.apache.hadoop.io.LongWritable targetVertexId)
getEdgeValue
in interface org.apache.giraph.edge.StrictRandomAccessOutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public void initialize()
initialize
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public void initialize(int capacity)
initialize
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public void initialize(java.lang.Iterable<org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue>> edges)
initialize
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public java.util.Iterator<org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue>> iterator()
iterator
in interface java.lang.Iterable<org.apache.giraph.edge.Edge<org.apache.hadoop.io.LongWritable,EdgeValue>>
public java.util.Iterator<org.apache.giraph.edge.MutableEdge<org.apache.hadoop.io.LongWritable,EdgeValue>> mutableIterator()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void remove(org.apache.hadoop.io.LongWritable targetVertexId)
remove
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public void setEdgeValue(org.apache.hadoop.io.LongWritable targetVertexId, EdgeValue edgeValue)
setEdgeValue
in interface org.apache.giraph.edge.StrictRandomAccessOutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public int size()
size
in interface org.apache.giraph.edge.OutEdges<org.apache.hadoop.io.LongWritable,EdgeValue>
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException