T - The resulting type of preprocessing.protected abstract class TextEdgeInputFormat.TextEdgeReaderFromEachLineProcessed<T> extends TextEdgeInputFormat.TextEdgeReader
| Modifier | Constructor and Description |
|---|---|
protected |
TextEdgeReaderFromEachLineProcessed() |
| 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(T line)
Reads source vertex id from the preprocessed line.
|
protected abstract I |
getTargetVertexId(T line)
Reads target vertex id from the preprocessed line.
|
protected abstract E |
getValue(T line)
Reads edge value from the preprocessed line.
|
boolean |
nextEdge()
Read the next edge.
|
protected abstract T |
preprocessLine(org.apache.hadoop.io.Text line)
Preprocess the line so other methods can easily read necessary
information for creating edge
|
close, createLineRecordReader, getContext, getProgress, getRecordReader, initializeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfprotected TextEdgeReaderFromEachLineProcessed()
public 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 T preprocessLine(org.apache.hadoop.io.Text line) throws IOException
line - the current line to be readIOException - exception that can be thrown while readingprotected abstract I getTargetVertexId(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected abstract I getSourceVertexId(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingprotected abstract E getValue(T line) throws IOException
line - the object obtained by preprocessing the lineIOException - exception that can be thrown while readingCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.