protected class LongDoubleDoubleAdjacencyListVertexInputFormat.LongDoubleDoubleAdjacencyListVertexReader extends AdjacencyListTextVertexInputFormat.AdjacencyListTextVertexReader
LongDoubleDoubleAdjacencyListVertexInputFormat
.Constructor and Description |
---|
LongDoubleDoubleAdjacencyListVertexReader(AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer)
Constructor with
AdjacencyListTextVertexInputFormat.LineSanitizer . |
Modifier and Type | Method and Description |
---|---|
Edge<org.apache.hadoop.io.LongWritable,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.LongWritable |
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 LongDoubleDoubleAdjacencyListVertexReader(AdjacencyListTextVertexInputFormat.LineSanitizer lineSanitizer)
AdjacencyListTextVertexInputFormat.LineSanitizer
.lineSanitizer
- the sanitizer to use for readingpublic org.apache.hadoop.io.LongWritable 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.LongWritable,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.