Skip to content

Commit

Permalink
fix Graph partitionStrategy comment
Browse files Browse the repository at this point in the history
Author: CrazyJvm <[email protected]>

Closes apache#1368 from CrazyJvm/graph-comment-1 and squashes the following commits:

d47f3c5 [CrazyJvm] fix style
e190d6f [CrazyJvm] fix Graph partitionStrategy comment
  • Loading branch information
CrazyJvm authored and rxin committed Jul 11, 2014
1 parent 2f59ce7 commit 282cca0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions graphx/src/main/scala/org/apache/spark/graphx/Graph.scala
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] protected () extends Serializab
/**
* Repartitions the edges in the graph according to `partitionStrategy`.
*
* @param the partitioning strategy to use when partitioning the edges in the graph.
* @param partitionStrategy the partitioning strategy to use when partitioning the edges
* in the graph.
*/
def partitionBy(partitionStrategy: PartitionStrategy): Graph[VD, ED]

/**
* Repartitions the edges in the graph according to `partitionStrategy`.
*
* @param the partitioning strategy to use when partitioning the edges in the graph.
* @param partitionStrategy the partitioning strategy to use when partitioning the edges
* in the graph.
* @param numPartitions the number of edge partitions in the new graph.
*/
def partitionBy(partitionStrategy: PartitionStrategy, numPartitions: Int): Graph[VD, ED]
Expand Down
4 changes: 2 additions & 2 deletions graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ class VertexRDD[@specialized VD: ClassTag](
/**
* Left joins this RDD with another VertexRDD with the same index. This function will fail if
* both VertexRDDs do not share the same index. The resulting vertex set contains an entry for
* each
* vertex in `this`. If `other` is missing any vertex in this VertexRDD, `f` is passed `None`.
* each vertex in `this`.
* If `other` is missing any vertex in this VertexRDD, `f` is passed `None`.
*
* @tparam VD2 the attribute type of the other VertexRDD
* @tparam VD3 the attribute type of the resulting VertexRDD
Expand Down

0 comments on commit 282cca0

Please sign in to comment.