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
15ca89b1
Commit
15ca89b1
authored
11 years ago
by
Ankur Dave
Browse files
Options
Downloads
Patches
Plain Diff
Fix mapReduceTriplets links in doc
parent
9fe88627
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/graphx-programming-guide.md
+4
-4
4 additions, 4 deletions
docs/graphx-programming-guide.md
with
4 additions
and
4 deletions
docs/graphx-programming-guide.md
+
4
−
4
View file @
15ca89b1
...
...
@@ -443,10 +443,10 @@ PageRank Value, shortest path to the source, and smallest reachable vertex id).
### Map Reduce Triplets (mapReduceTriplets)
<a
name=
"mrTriplets"
></a>
[
Graph.mapReduceTriplets
]:
api/graphx/index.html#mapReduceTriplets[A](mapFunc:org.apache.spark.graphx.EdgeTriplet[VD,ED]=>Iterator[(org.apache.spark.graphx.VertexID,A)],reduceFunc:(A,A)=>A,activeSetOpt:Option[(org.apache.spark.graphx.VertexRDD[_],org.apache.spark.graphx.EdgeDirection)])(implicitevidence$10:scala.reflect.ClassTag[A]):org.apache.spark.graphx.VertexRDD[A]
[
Graph.mapReduceTriplets
]:
api/graphx/index.html#
org.apache.spark.graphx.Graph@
mapReduceTriplets[A](mapFunc:org.apache.spark.graphx.EdgeTriplet[VD,ED]=>Iterator[(org.apache.spark.graphx.VertexID,A)],reduceFunc:(A,A)=>A,activeSetOpt:Option[(org.apache.spark.graphx.VertexRDD[_],org.apache.spark.graphx.EdgeDirection)])(implicitevidence$10:scala.reflect.ClassTag[A]):org.apache.spark.graphx.VertexRDD[A]
The
se
core (heavily optimized) aggregation primitive in GraphX is the
(
`mapReduceTriplets`
)
[Graph.mapReduceTriplets] operator:
The core (heavily optimized) aggregation primitive in GraphX is the
[
`mapReduceTriplets`
]
[
Graph.mapReduceTriplets
]
operator:
{% highlight scala %}
def mapReduceTriplets
[
A
](
...
...
@@ -455,7 +455,7 @@ def mapReduceTriplets[A](
: VertexRDD[A]
{% endhighlight %}
The
(
`mapReduceTriplets`
)
[Graph.mapReduceTriplets] operator takes a user defined map function which
The
[
`mapReduceTriplets`
]
[
Graph.mapReduceTriplets
]
operator takes a user defined map function which
is applied to each triplet and can yield
*messages*
destined to either (none or both) vertices in
the triplet. We currently only support messages destined to the source or destination vertex of the
triplet to enable optimized preaggregation. The user defined
`reduce`
function combines the
...
...
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