aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMatei Zaharia <matei@eecs.berkeley.edu>2011-03-06 23:38:41 -0800
committerMatei Zaharia <matei@eecs.berkeley.edu>2011-03-06 23:38:41 -0800
commit467f056e291964a8235d9aee8b82f08e5517b2b3 (patch)
tree7a2372175a21d1342945daab5a7f1022ea4d679c /core
parentbce95b84587e57410d586026fdacd42fbb1d9555 (diff)
downloadspark-467f056e291964a8235d9aee8b82f08e5517b2b3.tar.gz
spark-467f056e291964a8235d9aee8b82f08e5517b2b3.tar.bz2
spark-467f056e291964a8235d9aee8b82f08e5517b2b3.zip
Remove commented code
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/spark/RDD.scala26
1 files changed, 0 insertions, 26 deletions
diff --git a/core/src/main/scala/spark/RDD.scala b/core/src/main/scala/spark/RDD.scala
index 68e39652f0..47bdb09986 100644
--- a/core/src/main/scala/spark/RDD.scala
+++ b/core/src/main/scala/spark/RDD.scala
@@ -283,32 +283,6 @@ extends RDD[Array[T]](prev.context) {
(k, (vs.asInstanceOf[Seq[V]], w1s.asInstanceOf[Seq[W1]], w2s.asInstanceOf[Seq[W2]]))
}
}
-
- /*
- def groupWith[W](other: RDD[(K, W)]): RDD[(K, (Seq[V], Seq[W]))] = {
- if (self.partitioner != None) {
- val part = self.partitoner.get
- if (other.partitioner != None && other.partitioner.get == part) {
- // Can do a partition-wise cogroup
- return new PartitionWiseGroupedRDD(self, other)
- }
- }
-
- val vs: RDD[(K, Either[V, W])] = self.map { case (k, v) => (k, Left(v)) }
- val ws: RDD[(K, Either[V, W])] = other.map { case (k, w) => (k, Right(w)) }
- (vs ++ ws).groupByKey(numSplits).flatMap {
- case (k, seq) => {
- val vbuf = new ArrayBuffer[V]
- val wbuf = new ArrayBuffer[W]
- seq.foreach(_ match {
- case Left(v) => vbuf += v
- case Right(w) => wbuf += w
- })
- for (v <- vbuf; w <- wbuf) yield (k, (v, w))
- }
- }
- }
- */
}
class MappedValuesRDD[K, V, U](