public class IntIntNullTextVertexInputFormat.IntIntNullVertexReader extends TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>
IntIntNullTextVertexInputFormat
.Constructor and Description |
---|
IntIntNullVertexReader() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<Edge<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.NullWritable>> |
getEdges(String[] tokens)
Reads edges from the preprocessed line.
|
protected org.apache.hadoop.io.IntWritable |
getId(String[] tokens)
Reads vertex id from the preprocessed line.
|
protected org.apache.hadoop.io.IntWritable |
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, 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[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getId
in class TextVertexInputFormat.TextVertexReaderFromEachLineProcessed<String[]>
tokens
- the object obtained by preprocessing the lineIOException
- exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getValue(String[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getValue
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.IntWritable,org.apache.hadoop.io.NullWritable>> getEdges(String[] tokens) throws IOException
TextVertexInputFormat.TextVertexReaderFromEachLineProcessed
getEdges
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.