Skip to content

Commit

Permalink
[SPARK-3974] Remove setPartition method. Isn't required
Browse files Browse the repository at this point in the history
  • Loading branch information
brkyvz committed Jan 20, 2015
1 parent 1e8bb2a commit 1a63b20
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class BlockMatrix(
this(numRowBlocks, numColBlocks, rdd)
val part = new GridPartitioner(numRowBlocks, numColBlocks, rowsPerBlock,
colsPerBlock, rdd.partitions.length)
setPartitioner(part)
partitioner = part
}

private[mllib] var partitioner: GridPartitioner = {
Expand All @@ -115,14 +115,6 @@ class BlockMatrix(
firstSubMatrix.numRows, firstSubMatrix.numCols, rdd.partitions.length)
}

/**
* Set the partitioner for the matrix. For internal use only. Users should use `repartition`.
* @param part A partitioner that specifies how SubMatrices are stored in the cluster
*/
private def setPartitioner(part: GridPartitioner): Unit = {
partitioner = part
}

private lazy val dims: (Long, Long) = getDim

override def numRows(): Long = dims._1
Expand Down

0 comments on commit 1a63b20

Please sign in to comment.