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() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
getCurrentVertex, nextVertex
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public 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
initialize
in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
IOException
public void close() throws IOException
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>
IOException
public final float getProgress() throws IOException
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>
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.