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, nextEdge
close, createLineRecordReader, getContext, getProgress, getRecordReader, initialize
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
protected IntPair preprocessLine(org.apache.hadoop.io.Text line) throws IOException
TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed
preprocessLine
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.TextEdgeReaderFromEachLineProcessed
getSourceVertexId
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.TextEdgeReaderFromEachLineProcessed
getTargetVertexId
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.TextEdgeReaderFromEachLineProcessed
getValue
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.