Skip to content

Commit 282cca0

Browse files
CrazyJvmrxin
authored andcommitted
fix Graph partitionStrategy comment
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
1 parent 2f59ce7 commit 282cca0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

graphx/src/main/scala/org/apache/spark/graphx/Graph.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,16 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] protected () extends Serializab
107107
/**
108108
* Repartitions the edges in the graph according to `partitionStrategy`.
109109
*
110-
* @param the partitioning strategy to use when partitioning the edges in the graph.
110+
* @param partitionStrategy the partitioning strategy to use when partitioning the edges
111+
* in the graph.
111112
*/
112113
def partitionBy(partitionStrategy: PartitionStrategy): Graph[VD, ED]
113114

114115
/**
115116
* Repartitions the edges in the graph according to `partitionStrategy`.
116117
*
117-
* @param the partitioning strategy to use when partitioning the edges in the graph.
118+
* @param partitionStrategy the partitioning strategy to use when partitioning the edges
119+
* in the graph.
118120
* @param numPartitions the number of edge partitions in the new graph.
119121
*/
120122
def partitionBy(partitionStrategy: PartitionStrategy, numPartitions: Int): Graph[VD, ED]

graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class VertexRDD[@specialized VD: ClassTag](
182182
/**
183183
* Left joins this RDD with another VertexRDD with the same index. This function will fail if
184184
* both VertexRDDs do not share the same index. The resulting vertex set contains an entry for
185-
* each
186-
* vertex in `this`. If `other` is missing any vertex in this VertexRDD, `f` is passed `None`.
185+
* each vertex in `this`.
186+
* If `other` is missing any vertex in this VertexRDD, `f` is passed `None`.
187187
*
188188
* @tparam VD2 the attribute type of the other VertexRDD
189189
* @tparam VD3 the attribute type of the resulting VertexRDD

0 commit comments

Comments
 (0)