SparseVector factory.
SparseVector factory.
type of values array
the index array, must be in ascending order
the values array
a new SparseVector
Extract fields from SparseVector.
Extract fields from SparseVector.
type of values array
vector to extract the fields from
the extracted fields