Hi Everyone,

I have two options of filtering the RDD resulting from the Graph.vertices
method as illustrated with the following pseudo code:

1. Filter

val vertexSet = Set("vertexOne","vertexTwo"...);

val filteredVertices = Graph.vertices.filter(x =>
vertexSet.contains(x._2.vertexName))

2. Join

val filterVertexIdsRDD = ...

val filteredVertices = Graph.vertices.join(filterVertexIdsRDD)

Either one of these should work, correct?

Thanks

--John





--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/RDD-filter-vs-RDD-join-advice-please-tp22612.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to