Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
c4fb6a87
Commit
c4fb6a87
authored
11 years ago
by
Ankur Dave
Browse files
Options
Downloads
Patches
Plain Diff
Fix scaladoc warnings
parent
0ca18b8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
graphx/src/main/scala/org/apache/spark/graphx/Graph.scala
+4
-4
4 additions, 4 deletions
graphx/src/main/scala/org/apache/spark/graphx/Graph.scala
graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala
+2
-2
2 additions, 2 deletions
...hx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala
with
6 additions
and
6 deletions
graphx/src/main/scala/org/apache/spark/graphx/Graph.scala
+
4
−
4
View file @
c4fb6a87
...
...
@@ -125,7 +125,7 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] {
/**
* Transforms each edge attribute in the graph using the map function. The map function is not
* passed the vertex value for the vertices adjacent to the edge. If vertex values are desired,
* use
[[
mapTriplets
]]
.
* use
`
mapTriplets
`
.
*
* @note This graph is not changed and that the new graph has the
* same structure. As a consequence the underlying index structures
...
...
@@ -148,7 +148,7 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] {
* time. The map function is given an iterator over edges within a logical partition as well as
* the partition's ID, and it should return a new iterator over the new values of each edge. The
* new iterator's elements must correspond one-to-one with the old iterator's elements. If
* adjacent vertex values are desired, use
[[
mapTriplets
]]
.
* adjacent vertex values are desired, use
`
mapTriplets
`
.
*
* @note This does not change the structure of the
* graph or modify the values of this graph. As a consequence
...
...
@@ -166,7 +166,7 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] {
/**
* Transforms each edge attribute using the map function, passing it the adjacent vertex attributes
* as well. If adjacent vertex values are not required, consider using
[[
mapEdges
]]
instead.
* as well. If adjacent vertex values are not required, consider using
`
mapEdges
`
instead.
*
* @note This does not change the structure of the
* graph or modify the values of this graph. As a consequence
...
...
@@ -194,7 +194,7 @@ abstract class Graph[VD: ClassTag, ED: ClassTag] {
* adjacent vertex attributes as well. The map function is given an iterator over edge triplets
* within a logical partition and should yield a new iterator over the new values of each edge in
* the order in which they are provided. If adjacent vertex values are not required, consider
* using
[[
mapEdges
]]
instead.
* using
`
mapEdges
`
instead.
*
* @note This does not change the structure of the
* graph or modify the values of this graph. As a consequence
...
...
This diff is collapsed.
Click to expand it.
graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala
+
2
−
2
View file @
c4fb6a87
...
...
@@ -101,9 +101,9 @@ class VertexRDD[@specialized VD: ClassTag](
}
/**
* Applies a function to each
[[impl.
VertexPartition
]]
of this RDD and returns a new VertexRDD.
* Applies a function to each
`
VertexPartition
`
of this RDD and returns a new VertexRDD.
*/
def
mapVertexPartitions
[
VD2:
ClassTag
](
f
:
VertexPartition
[
VD
]
=>
VertexPartition
[
VD2
])
private
[
graphx
]
def
mapVertexPartitions
[
VD2:
ClassTag
](
f
:
VertexPartition
[
VD
]
=>
VertexPartition
[
VD2
])
:
VertexRDD
[
VD2
]
=
{
val
newPartitionsRDD
=
partitionsRDD
.
mapPartitions
(
_
.
map
(
f
),
preservesPartitioning
=
true
)
new
VertexRDD
(
newPartitionsRDD
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment