public class IntNullTextEdgeInputFormat.IntNullTextEdgeReader extends TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<IntPair>
EdgeReader associated with
IntNullTextEdgeInputFormat.| Constructor and Description |
|---|
IntNullTextEdgeReader() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.io.IntWritable |
getSourceVertexId(IntPair endpoints)
Reads source vertex id from the preprocessed line.
|
protected org.apache.hadoop.io.IntWritable |
getTargetVertexId(IntPair endpoints)
Reads target vertex id from the preprocessed line.
|
protected org.apache.hadoop.io.NullWritable |
getValue(IntPair endpoints)
Reads edge 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 edge
|
getCurrentEdge, getCurrentSourceId, nextEdgeclose, createLineRecordReader, getContext, getProgress, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfprotected IntPair preprocessLine(org.apache.hadoop.io.Text line) throws IOException
TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessedpreprocessLine in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<IntPair>line - the current line to be readIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getSourceVertexId(IntPair endpoints) throws IOException
TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessedgetSourceVertexId in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<IntPair>endpoints - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.IntWritable getTargetVertexId(IntPair endpoints) throws IOException
TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessedgetTargetVertexId in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<IntPair>endpoints - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected org.apache.hadoop.io.NullWritable getValue(IntPair endpoints) throws IOException
TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessedgetValue in class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<IntPair>endpoints - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.