@@ -90,24 +90,26 @@ class JavaVertexRDD[VD](val vertexRDD: VertexRDD[VD])(implicit val vdTag: ClassT
90
90
f : JFunction3 [JLong , VD , Optional [VD2 ], VD3 ]): JavaVertexRDD [VD3 ] = {
91
91
implicit val vd2Tag : ClassTag [VD2 ] = fakeClassTag
92
92
implicit val vd3Tag : ClassTag [VD3 ] = fakeClassTag
93
- vertexRDD.leftZipJoin(other) { (vid, a, bOpt) => f.call(vid, a, JavaUtils .optionToOptional(bOpt)) }
93
+ vertexRDD.leftZipJoin(other) {
94
+ (vid, a, bOpt) => f.call(vid, a, JavaUtils .optionToOptional(bOpt))
95
+ }
94
96
}
95
97
96
98
/**
97
- * Left joins this JavaVertexRDD with an RDD containing vertex attribute pairs. If the other RDD is
98
- * backed by a JavaVertexRDD with the same index then the efficient [[leftZipJoin ]] implementation is
99
- * used. The resulting JavaVertexRDD contains an entry for each vertex in `this`. If `other` is
100
- * missing any vertex in this JavaVertexRDD, `f` is passed `None`. If there are duplicates,
101
- * the vertex is picked arbitrarily.
99
+ * Left joins this JavaVertexRDD with an RDD containing vertex attribute pairs. If the other RDD
100
+ * is backed by a JavaVertexRDD with the same index then the efficient [[leftZipJoin ]]
101
+ * implementation is used. The resulting JavaVertexRDD contains an entry for each vertex in
102
+ * `this`. If `other` is missing any vertex in this JavaVertexRDD, `f` is passed `None`. If there
103
+ * are duplicates, the vertex is picked arbitrarily.
102
104
*
103
105
* @tparam VD2 the attribute type of the other JavaVertexRDD
104
106
* @tparam VD3 the attribute type of the resulting JavaVertexRDD
105
107
*
106
108
* @param other the other JavaVertexRDD with which to join
107
109
* @param f the function mapping a vertex id and its attributes in this and the other vertex set
108
110
* to a new vertex attribute.
109
- * @return a JavaVertexRDD containing all the vertices in this JavaVertexRDD with the attributes emitted
110
- * by `f`.
111
+ * @return a JavaVertexRDD containing all the vertices in this JavaVertexRDD with the attributes
112
+ * emitted by `f`.
111
113
*/
112
114
def leftJoin [VD2 , VD3 ](
113
115
other : JavaPairRDD [JLong , VD2 ],
@@ -116,12 +118,14 @@ class JavaVertexRDD[VD](val vertexRDD: VertexRDD[VD])(implicit val vdTag: ClassT
116
118
implicit val vd2Tag : ClassTag [VD2 ] = fakeClassTag
117
119
implicit val vd3Tag : ClassTag [VD3 ] = fakeClassTag
118
120
val scalaOther : RDD [(VertexId , VD2 )] = other.rdd.map(kv => (kv._1, kv._2))
119
- vertexRDD.leftJoin(scalaOther) { (vid, a, bOpt) => f.call(vid, a, JavaUtils .optionToOptional(bOpt)) }
121
+ vertexRDD.leftJoin(scalaOther) {
122
+ (vid, a, bOpt) => f.call(vid, a, JavaUtils .optionToOptional(bOpt))
123
+ }
120
124
}
121
125
122
126
/**
123
- * Efficiently inner joins this JavaVertexRDD with another JavaVertexRDD sharing the same index. See
124
- * [[innerJoin ]] for the behavior of the join.
127
+ * Efficiently inner joins this JavaVertexRDD with another JavaVertexRDD sharing the same index.
128
+ * See [[innerJoin ]] for the behavior of the join.
125
129
*/
126
130
def innerZipJoin [U , VD2 ](
127
131
other : JavaVertexRDD [U ],
0 commit comments