public class SccLongLongNullTextInputFormat.LongLongNullVertexReader extends TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>
SccLongLongNullTextInputFormat.| Constructor and Description |
|---|
LongLongNullVertexReader() |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable>> |
getEdges(String[] tokens)
Reads edges from the preprocessed line.
|
protected org.apache.hadoop.io.LongWritable |
getId(String[] tokens)
Reads vertex id from the preprocessed line.
|
protected SccVertexValue |
getValue(String[] tokens)
Reads vertex value from the preprocessed line.
|
protected String[] |
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, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfprotected String[] preprocessLine(org.apache.hadoop.io.Text line) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedpreprocessLine in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>line - the current line to be readIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.LongWritable getId(String[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetId in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>tokens - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected SccVertexValue getValue(String[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetValue in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>tokens - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected Iterable<Edge<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable>> getEdges(String[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessedgetEdges in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>tokens - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.