public class IntIntTextVertexValueInputFormat.IntIntTextVertexValueReader extends TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessed<IntPair>
VertexValueReader associated with
IntIntTextVertexValueInputFormat.| Constructor and Description |
|---|
IntIntTextVertexValueReader() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.io.IntWritable |
getId(IntPair data)
Reads vertex id from the preprocessed line.
|
protected org.apache.hadoop.io.IntWritable |
getValue(IntPair data)
Reads vertex value from the preprocessed line.
|
protected IntPair |
preprocessLine(org.apache.hadoop.io.Text line)
Preprocess the line so other methods can easily read necessary
information for creating vertex.
|
getCurrentVertexId, getCurrentVertexValue, nextVertexclose, createLineRecordReader, getContext, getProgress, getRecordReader, initializegetCurrentVertexaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfprotected IntPair preprocessLine(org.apache.hadoop.io.Text line) throws IOException
TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessedpreprocessLine in class TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessed<IntPair>line - the current line to be readIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getId(IntPair data) throws IOException
TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessedgetId in class TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessed<IntPair>data - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getValue(IntPair data) throws IOException
TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessedgetValue in class TextVertexValueInputFormat.TextVertexValueReaderFromEachLineProcessed<IntPair>data - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.