protected class TextDoubleDoubleAdjacencyListVertexInputFormat.TextDoubleDoubleAdjacencyListVertexReader extends AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
TextDoubleDoubleAdjacencyListVertexInputFormat
Constructor and Description |
---|
TextDoubleDoubleAdjacencyListVertexReader(AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer)
Constructor with
AdjacencyListTextVertexInputFormat.LineSanitizer . |
Modifier and Type | Method and Description |
---|---|
Edge<org.apache.hadoop.io.Text,org.apache.hadoop.io.DoubleWritable> |
decodeEdge(String s1,
String s2)
Decode an edge from the line into an instance of a correctly typed Edge
|
org.apache.hadoop.io.Text |
decodeId(String s)
Decode the id for this line into an instance of its correct type.
|
org.apache.hadoop.io.DoubleWritable |
decodeValue(String s)
Decode the value for this line into an instance of its correct type.
|
getEdges, getId, getValue, initialize, preprocessLine
getCurrentVertex, nextVertex
close, createLineRecordReader, getContext, getProgress, getRecordReader
aggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsage
getConf, setConf
public TextDoubleDoubleAdjacencyListVertexReader(AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer)
AdjacencyListTextVertexInputFormat.LineSanitizer
.lineSanitizer
- the sanitizer to use for readingpublic org.apache.hadoop.io.Text decodeId(String s)
AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
decodeId
in class AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
s
- Id of vertex from linepublic org.apache.hadoop.io.DoubleWritable decodeValue(String s)
AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
decodeValue
in class AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
s
- Value from linepublic Edge<org.apache.hadoop.io.Text,org.apache.hadoop.io.DoubleWritable> decodeEdge(String s1, String s2)
AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
decodeEdge
in class AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
s1
- The edge's id from the lines2
- The edge's value from the lineCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.