I - Vertex index valueE - Edge valuepublic abstract class GeneratedEdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends EdgeReader<I,E>
| Modifier and Type | Field and Description |
|---|---|
static LongConfOption |
DEFAULT_READER_EDGES
Default edges produced by this reader
|
protected BspInputSplit |
inputSplit
The input split from initialize().
|
protected long |
recordsRead
Records read so far
|
protected long |
totalRecords
Total records to read (on this split alone)
|
| Constructor and Description |
|---|
GeneratedEdgeReader()
Default constructor for reflection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
EdgeReader to future operations. |
float |
getProgress()
How much of the input has the
EdgeReader consumed i.e. |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the input split and context to setup reading the edges.
|
getCurrentEdge, getCurrentSourceId, nextEdgeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic static final LongConfOption DEFAULT_READER_EDGES
protected long recordsRead
protected long totalRecords
protected BspInputSplit inputSplit
public GeneratedEdgeReader()
public final void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
EdgeReaderinitialize in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>inputSplit - Input split to be used for reading edges.context - Context from the task.IOExceptionpublic void close()
throws IOException
EdgeReaderEdgeReader to future operations.close in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionpublic final float getProgress()
throws IOException
EdgeReaderEdgeReader consumed i.e.
has been processed by?getProgress in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>0.0 to 1.0.IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.