protected abstract class GoraVertexInputFormat.GoraVertexReader extends VertexReader<I,V,E>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
GoraVertexReader()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Finishes the reading process. 
 | 
Vertex<I,V,E> | 
getCurrentVertex()
Gets current vertex. 
 | 
float | 
getProgress()
Gets the progress of reading results from Gora. 
 | 
protected void | 
getResults()
Performs a range query to a Gora data store. 
 | 
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. 
 | 
boolean | 
nextVertex()
Gets the next vertex from Gora data store. 
 | 
protected abstract Vertex<I,V,E> | 
transformVertex(Object goraObject)
Parser for a single Gora object 
 | 
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
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.IOExceptionInterruptedExceptionpublic boolean nextVertex()
                   throws IOException,
                          InterruptedException
nextVertex 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 - exceptions passed along.InterruptedException - exceptions passed along.public float getProgress()
                  throws IOException,
                         InterruptedException
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>IOExceptionInterruptedExceptionpublic Vertex<I,V,E> getCurrentVertex() throws IOException, InterruptedException
getCurrentVertex in class VertexReader<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionprotected abstract Vertex<I,V,E> transformVertex(Object goraObject)
goraObject - vertex represented as a GoraObjectprotected void getResults()
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>IOExceptionCopyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.