我提出如下─ #include<iostream>
using namespace std;
/**
* Construct the binary heap.
* capacity is the capacity of the binary heap.
*/
class BinaryHeap
{
priva
我有一個包含單個列的RowMatrix的實例。 我想把這個RowMatrix變成一個數據幀,但我不太確定如何將org.apache.spark.rdd.RDD[org.apache.spark.mllib.linalg.Vector]轉換爲數據幀。 val mat: RowMatrix = new RowMatrix(centred)
val mat_rows = mat.rows // RDD