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, setWorkerGlobalCommUsage
getConf, setConf
public 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.IOException
InterruptedException
public abstract boolean nextEdge() throws IOException, InterruptedException
IOException
InterruptedException
public abstract I getCurrentSourceId() throws IOException, InterruptedException
IOException
InterruptedException
public abstract Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
IOException
InterruptedException
public abstract void close() throws IOException
EdgeReader
to future operations.IOException
public abstract float getProgress() throws IOException, InterruptedException
EdgeReader
consumed i.e.
has been processed by?0.0
to 1.0
.IOException
InterruptedException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.