protected class JsonBase64VertexInputFormat.JsonBase64VertexReader extends TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<org.json.JSONObject>
JsonBase64VertexInputFormat| Modifier | Constructor and Description | 
|---|---|
| protected  | JsonBase64VertexReader() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Iterable<Edge<I,E>> | getEdges(org.json.JSONObject vertexObject)Reads edges from the preprocessed line. | 
| protected I | getId(org.json.JSONObject vertexObject)Reads vertex id from the preprocessed line. | 
| protected V | getValue(org.json.JSONObject vertexObject)Reads vertex value from the preprocessed line. | 
| 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. | 
| protected org.json.JSONObject | preprocessLine(org.apache.hadoop.io.Text line)Preprocess the line so other methods can easily read necessary
 information for creating vertex. | 
getCurrentVertex, nextVertexclose, createLineRecordReader, getContext, getProgress, getRecordReaderaggregate, 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 TextVertexInputFormat.TextVertexReaderinputSplit - Input split to be used for reading vertices.context - Context from the task.IOExceptionInterruptedExceptionprotected org.json.JSONObject preprocessLine(org.apache.hadoop.io.Text line)
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedpreprocessLine in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<org.json.JSONObject>line - the current line to be readprotected I getId(org.json.JSONObject vertexObject) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetId in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<org.json.JSONObject>vertexObject - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected V getValue(org.json.JSONObject vertexObject) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetValue in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<org.json.JSONObject>vertexObject - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected Iterable<Edge<I,E>> getEdges(org.json.JSONObject vertexObject) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetEdges in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<org.json.JSONObject>vertexObject - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.