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, initialize
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public final I getCurrentSourceId() throws IOException, InterruptedException
EdgeReader
getCurrentSourceId
in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public final Edge<I,E> getCurrentEdge() throws IOException, InterruptedException
EdgeReader
getCurrentEdge
in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
public final boolean nextEdge() throws IOException, InterruptedException
EdgeReader
nextEdge
in class EdgeReader<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable>
IOException
InterruptedException
protected 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.