public static class AggregatorsTestComputation.SimpleEdgeReader extends GeneratedEdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable>
DEFAULT_READER_EDGES, inputSplit, recordsRead, totalRecords
Constructor and Description |
---|
SimpleEdgeReader() |
Modifier and Type | Method and Description |
---|---|
Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable> |
getCurrentEdge()
Get the current edge.
|
org.apache.hadoop.io.LongWritable |
getCurrentSourceId()
Get the current edge source id.
|
boolean |
nextEdge()
Read the next edge.
|
close, getProgress, initialize
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public boolean nextEdge()
EdgeReader
nextEdge
in class EdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable>
public Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable> getCurrentEdge() throws IOException
EdgeReader
getCurrentEdge
in class EdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable>
IOException
public org.apache.hadoop.io.LongWritable getCurrentSourceId() throws IOException, InterruptedException
EdgeReader
getCurrentSourceId
in class EdgeReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.FloatWritable>
IOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.