public class VectorUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static co.cask.cdap.api.data.schema.Schema |
SPARSE_SCHEMA |
| Constructor and Description |
|---|
VectorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static co.cask.cdap.api.data.format.StructuredRecord |
asRecord(org.apache.spark.mllib.linalg.SparseVector vector) |
static org.apache.spark.mllib.linalg.SparseVector |
fromRecord(co.cask.cdap.api.data.format.StructuredRecord record) |
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.