public final class GiraphVertexReader
extends org.apache.giraph.io.VertexReader
| Constructor and Description |
|---|
GiraphVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,VertexWritable> recordReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.giraph.graph.Vertex |
getCurrentVertex() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextVertex() |
public GiraphVertexReader(org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.NullWritable,VertexWritable> recordReader)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.giraph.io.VertexReaderIOExceptionInterruptedExceptionpublic boolean nextVertex()
throws IOException,
InterruptedException
nextVertex in class org.apache.giraph.io.VertexReaderIOExceptionInterruptedExceptionpublic org.apache.giraph.graph.Vertex getCurrentVertex()
throws IOException,
InterruptedException
getCurrentVertex in class org.apache.giraph.io.VertexReaderIOExceptionInterruptedExceptionpublic void close()
throws IOException
close in class org.apache.giraph.io.VertexReaderIOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.giraph.io.VertexReaderIOExceptionInterruptedExceptionCopyright © 2013–2015 Apache Software Foundation. All rights reserved.