Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/3054#discussion_r20124959
--- Diff:
graphx/src/main/scala/org/apache/spark/graphx/impl/EdgePartition.scala ---
@@ -30,54 +31,71 @@ import
org.apache.spark.graphx.util.collection.GraphXPrimitiveKeyOpenHashMap
* @tparam ED the edge attribute type
* @tparam VD the vertex attribute type
*
- * @param srcIds the source vertex id of each edge
- * @param dstIds the destination vertex id of each edge
+ * @param localSrcIds the local source vertex id of each edge as an index
into `local2global` and
+ * `vertexAttrs`
+ * @param localDstIds the local destination vertex id of each edge as an
index into `local2global`
+ * and `vertexAttrs`
* @param data the attribute associated with each edge
- * @param index a clustered index on source vertex id
- * @param vertices a map from referenced vertex ids to their corresponding
attributes. Must
- * contain all vertex ids from `srcIds` and `dstIds`, though not
necessarily valid attributes for
- * those vertex ids. The mask is not used.
+ * @param index a clustered index on source vertex id as a map from each
global source vertex id to
+ * the offset in the edge arrays where the cluster for that vertex id
begins
+ * @param global2local a map from referenced vertex ids to local ids which
index into vertexAttrs
+ * @param local2global an array of global vertex ids where the offsets are
local vertex ids
+ * @param vertexAttrs an array of vertex attributes where the offsets are
local vertex ids
* @param activeSet an optional active vertex set for filtering
computation on the edges
*/
private[graphx]
class EdgePartition[
@specialized(Char, Int, Boolean, Byte, Long, Float, Double) ED:
ClassTag, VD: ClassTag](
- val srcIds: Array[VertexId] = null,
- val dstIds: Array[VertexId] = null,
+ val localSrcIds: Array[Int] = null,
--- End diff --
also try to make all of these private rather than val's. (just remove the
val)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]