protected abstract class TextEdgeInputFormat.TextEdgeReaderFromEachLine extends TextEdgeInputFormat.TextEdgeReader
| Modifier | Constructor and Description |
|---|---|
protected |
TextEdgeReaderFromEachLine() |
| Modifier and Type | Method and Description |
|---|---|
Edge<I,E> |
getCurrentEdge()
Get the current edge.
|
I |
getCurrentSourceId()
Get the current edge source id.
|
protected abstract I |
getSourceVertexId(org.apache.hadoop.io.Text line)
Reads source vertex id from the current line.
|
protected abstract I |
getTargetVertexId(org.apache.hadoop.io.Text line)
Reads target vertex id from the current line.
|
protected abstract E |
getValue(org.apache.hadoop.io.Text line)
Reads edge value from the current line.
|
boolean |
nextEdge()
Read the next edge.
|
close, createLineRecordReader, getContext, getProgress, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic final I getCurrentSourceId() throws IOException, InterruptedException
EdgeReadergetCurrentSourceId in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic final Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
EdgeReadergetCurrentEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionpublic final boolean nextEdge()
throws IOException,
InterruptedException
EdgeReadernextEdge in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>IOExceptionInterruptedExceptionprotected abstract I getSourceVertexId(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingprotected abstract I getTargetVertexId(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingprotected abstract E getValue(org.apache.hadoop.io.Text line) throws IOException
line - the current lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.