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
55101f58
Commit
55101f58
authored
11 years ago
by
Ankur Dave
Browse files
Options
Downloads
Patches
Plain Diff
One-line Scaladoc comments in Edge and EdgeDirection
parent
64f73f73
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/Edge.scala
+7
-12
7 additions, 12 deletions
graphx/src/main/scala/org/apache/spark/graphx/Edge.scala
graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
+3
-10
3 additions, 10 deletions
...rc/main/scala/org/apache/spark/graphx/EdgeDirection.scala
with
10 additions
and
22 deletions
graphx/src/main/scala/org/apache/spark/graphx/Edge.scala
+
7
−
12
View file @
55101f58
...
...
@@ -8,18 +8,13 @@ package org.apache.spark.graphx
* @tparam ED type of the edge attribute
*/
case
class
Edge
[
@specialized
(
Char
,
Int
,
Boolean
,
Byte
,
Long
,
Float
,
Double
)
ED
]
(
/**
* The vertex id of the source vertex
*/
var
srcId
:
VertexID
=
0
,
/**
* The vertex id of the target vertex.
*/
var
dstId
:
VertexID
=
0
,
/**
* The attribute associated with the edge.
*/
var
attr
:
ED
=
nullValue
[
ED
])
extends
Serializable
{
/** The vertex id of the source vertex */
var
srcId
:
VertexID
=
0
,
/** The vertex id of the target vertex. */
var
dstId
:
VertexID
=
0
,
/** The attribute associated with the edge. */
var
attr
:
ED
=
nullValue
[
ED
])
extends
Serializable
{
/**
* Given one vertex in the edge return the other vertex.
...
...
This diff is collapsed.
Click to expand it.
graphx/src/main/scala/org/apache/spark/graphx/EdgeDirection.scala
+
3
−
10
View file @
55101f58
package
org.apache.spark.graphx
/**
* The direction of a directed edge relative to a vertex.
*/
...
...
@@ -18,18 +17,12 @@ sealed abstract class EdgeDirection {
object
EdgeDirection
{
/**
* Edges arriving at a vertex.
*/
/** Edges arriving at a vertex. */
case
object
In
extends
EdgeDirection
/**
* Edges originating from a vertex
*/
/** Edges originating from a vertex. */
case
object
Out
extends
EdgeDirection
/**
* All edges adjacent to a vertex
*/
/** All edges adjacent to a vertex. */
case
object
Both
extends
EdgeDirection
}
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