Spark SparseVector para enumerar

list(vector.toArray().tolist())
Index out of bounds