Returns a new base relation with the given parameters.
Returns a new base relation with the given parameters. Note: the parameters' keywords are case insensitive and this insensitivity is enforced by the Map that is passed to the function.
The string that represents the format that this data source provider uses.
The string that represents the format that this data source provider uses. This is overridden by children to provide a nice alias for the data source. For example:
override def shortName(): String = "parquet"
1.5.0
libsvm
package implements Spark SQL data source API for loading LIBSVM data as DataFrame. The loaded DataFrame has two columns:label
containing labels stored as doubles andfeatures
containing feature vectors stored as Vectors.To use LIBSVM data source, you need to set "libsvm" as the format in DataFrameReader and optionally specify options, for example:
LIBSVM data source supports the following options:
LIBSVM datasets