Skip to content
Snippets Groups Projects
Commit c39ec301 authored by Ankur Dave's avatar Ankur Dave
Browse files

Remove some commented code

parent 5fcd2a61
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,6 @@ class EdgeRDD[@specialized ED: ClassTag]( ...@@ -54,7 +54,6 @@ class EdgeRDD[@specialized ED: ClassTag](
def mapEdgePartitions[ED2: ClassTag](f: (PartitionID, EdgePartition[ED]) => EdgePartition[ED2]) def mapEdgePartitions[ED2: ClassTag](f: (PartitionID, EdgePartition[ED]) => EdgePartition[ED2])
: EdgeRDD[ED2] = { : EdgeRDD[ED2] = {
// iter => iter.map { case (pid, ep) => (pid, f(ep)) }
new EdgeRDD[ED2](partitionsRDD.mapPartitions({ iter => new EdgeRDD[ED2](partitionsRDD.mapPartitions({ iter =>
val (pid, ep) = iter.next() val (pid, ep) = iter.next()
Iterator(Tuple2(pid, f(pid, ep))) Iterator(Tuple2(pid, f(pid, ep)))
......
...@@ -14,10 +14,6 @@ import org.apache.spark.graphx.impl.VertexPartition ...@@ -14,10 +14,6 @@ import org.apache.spark.graphx.impl.VertexPartition
* that is not a trait. * that is not a trait.
*/ */
class EdgeTriplet[VD, ED] extends Edge[ED] { class EdgeTriplet[VD, ED] extends Edge[ED] {
// class EdgeTriplet[@specialized(Char, Int, Boolean, Byte, Long, Float, Double) VD: ClassTag,
// @specialized(Char, Int, Boolean, Byte, Long, Float, Double) ED: ClassTag] extends Edge[ED] {
/** /**
* The source vertex attribute * The source vertex attribute
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment