I - Vertex index valueV - Vertex valueE - Edge valuepublic abstract class GeneratedVertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends VertexReader<I,V,E>
| Modifier and Type | Field and Description |
|---|---|
protected BspInputSplit |
inputSplit
The input split from initialize().
|
static LongConfOption |
READER_VERTICES
Vertices produced by this reader
|
protected long |
recordsRead
Records read so far
|
static BooleanConfOption |
REVERSE_ID_ORDER
Reverse the order of the vertices?
|
protected boolean |
reverseIdOrder
Reverse the id order?
|
protected long |
totalRecords
Total records to read (on this split alone)
|
| Constructor and Description |
|---|
GeneratedVertexReader()
Default constructor for reflection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
VertexReader to future operations. |
float |
getProgress()
How much of the input has the
VertexReader 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 vertices.
|
getCurrentVertex, nextVertexaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic static final LongConfOption READER_VERTICES
public static final BooleanConfOption REVERSE_ID_ORDER
protected long recordsRead
protected long totalRecords
protected BspInputSplit inputSplit
protected boolean reverseIdOrder
public GeneratedVertexReader()
public final void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
VertexReaderinitialize in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>inputSplit - Input split to be used for reading vertices.context - Context from the task.IOExceptionpublic void close()
throws IOException
VertexReaderVertexReader to future operations.close in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>IOExceptionpublic final float getProgress()
throws IOException
VertexReaderVertexReader consumed i.e.
has been processed by?getProgress in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>0.0 to 1.0.IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.