public class IntNullNullTextInputFormat.IntNullNullNullVertexReader extends TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String>
Constructor and Description |
---|
IntNullNullNullVertexReader() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<Edge<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.NullWritable>> |
getEdges(String line)
Reads edges from the preprocessed line.
|
protected org.apache.hadoop.io.IntWritable |
getId(String line)
Reads vertex id from the preprocessed line.
|
protected org.apache.hadoop.io.NullWritable |
getValue(String line)
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, nextVertex
close, createLineRecordReader, getContext, getProgress, getRecordReader, initialize
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
protected String preprocessLine(org.apache.hadoop.io.Text line) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
preprocessLine
in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String>
line
- the current line to be readIOException
- exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getId(String line) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getId
in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String>
line
- the object obtained by preprocessing the lineIOException
- exception that can be thrown while readingprotected org.apache.hadoop.io.NullWritable getValue(String line) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getValue
in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String>
line
- the object obtained by preprocessing the lineIOException
- exception that can be thrown while readingprotected Iterable<Edge<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.NullWritable>> getEdges(String line) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getEdges
in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String>
line
- the object obtained by preprocessing the lineIOException
- exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.