I - Vertex idE - Edge datapublic class EdgeReaderWrapper<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends EdgeReader<I,E>
GiraphReader for edges into EdgeReader| Constructor and Description |
|---|
EdgeReaderWrapper(GiraphReader<EdgeWithSource<I,E>> edgeReader)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
EdgeReader to future operations. |
Edge<I,E> |
getCurrentEdge()
Get the current edge.
|
I |
getCurrentSourceId()
Get the current edge source id.
|
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.
|
boolean |
nextEdge()
Read the next edge.
|
void |
setConf(ImmutableClassesGiraphConfiguration<I,org.apache.hadoop.io.Writable,E> conf)
Set the configuration to be used by this object.
|
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConfpublic EdgeReaderWrapper(GiraphReader<EdgeWithSource<I,E>> edgeReader)
edgeReader - GiraphReader for edges to wrappublic void setConf(ImmutableClassesGiraphConfiguration<I,org.apache.hadoop.io.Writable,E> conf)
GiraphConfigurationSettablesetConf in interface GiraphConfigurationSettable<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>setConf in class DefaultImmutableClassesGiraphConfigurable<I extends org.apache.hadoop.io.WritableComparable,org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>conf - Set configurationpublic boolean nextEdge()
throws IOException,
InterruptedException
EdgeReadernextEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic I getCurrentSourceId() throws IOException, InterruptedException
EdgeReadergetCurrentSourceId in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
EdgeReadergetCurrentEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
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.IOExceptionInterruptedExceptionpublic 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 float getProgress()
throws IOException,
InterruptedException
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.IOExceptionInterruptedExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.