|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.giraph.conf.DefaultImmutableClassesGiraphConfigurable<I,V,E>
org.apache.giraph.io.VertexReader<I,V,E>
org.apache.giraph.examples.GeneratedVertexReader<I,V,E>
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>
Used by GeneratedVertexInputFormat to read some generated data
| Field Summary | |
|---|---|
static boolean |
DEAFULT_REVERSE_ID_ORDER
Default ordering is not reversed |
static long |
DEFAULT_READER_VERTICES
Default vertices produced by this reader |
protected BspInputSplit |
inputSplit
The input split from initialize(). |
static String |
READER_VERTICES
Vertices produced by this reader |
protected long |
recordsRead
Records read so far |
static String |
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 Summary | |
|---|---|
GeneratedVertexReader()
Default constructor for reflection. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.giraph.io.VertexReader |
|---|
getCurrentVertex, nextVertex |
| Methods inherited from class org.apache.giraph.conf.DefaultImmutableClassesGiraphConfigurable |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String READER_VERTICES
public static final long DEFAULT_READER_VERTICES
public static final String REVERSE_ID_ORDER
public static final boolean DEAFULT_REVERSE_ID_ORDER
protected long recordsRead
protected long totalRecords
protected BspInputSplit inputSplit
protected boolean reverseIdOrder
| Constructor Detail |
|---|
public GeneratedVertexReader()
| Method Detail |
|---|
public final void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
VertexReader
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>inputSplit - Input split to be used for reading vertices.context - Context from the task.
IOException
public 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>IOException
public 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.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||