I - Vertex idE - Edge datapublic abstract class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends WorkerAggregatorDelegator<I,org.apache.hadoop.io.Writable,E>
| Constructor and Description |
|---|
EdgeReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close this
EdgeReader to future operations. |
abstract Edge<I,E> |
getCurrentEdge()
Get the current edge.
|
abstract I |
getCurrentSourceId()
Get the current edge source id.
|
abstract float |
getProgress()
How much of the input has the
EdgeReader consumed i.e. |
abstract 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.
|
abstract boolean |
nextEdge()
Read the next edge.
|
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic abstract void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
inputSplit - Input split to be used for reading edges.context - Context from the task.IOExceptionInterruptedExceptionpublic abstract boolean nextEdge()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract I getCurrentSourceId() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract void close()
throws IOException
EdgeReader to future operations.IOExceptionpublic abstract float getProgress()
throws IOException,
InterruptedException
EdgeReader consumed i.e.
has been processed by?0.0 to 1.0.IOExceptionInterruptedExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.