public class VectorUDT extends UserDefinedType<Vector>
 User-defined type for Vector which allows easy interaction with SQL
 via Dataset.
| Constructor and Description | 
|---|
VectorUDT()  | 
| Modifier and Type | Method and Description | 
|---|---|
Vector | 
deserialize(Object datum)
Convert a SQL datum to the user type 
 | 
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
String | 
pyUDT()
Paired Python UDT class, if exists. 
 | 
org.apache.spark.sql.catalyst.InternalRow | 
serialize(Vector obj)
Convert the user type to a SQL datum 
 | 
StructType | 
sqlType()
Underlying storage type for this UDT 
 | 
String | 
typeName()
Name of the type used in JSON serialization. 
 | 
Class<Vector> | 
userClass()
Class object for the UserType 
 | 
catalogString, defaultSize, serializedPyClass, sqlequalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleStringpublic Vector deserialize(Object datum)
UserDefinedTypedeserialize in class UserDefinedType<Vector>public boolean equals(Object o)
equals in class UserDefinedType<Vector>public int hashCode()
hashCode in class UserDefinedType<Vector>public String pyUDT()
UserDefinedTypepyUDT in class UserDefinedType<Vector>public org.apache.spark.sql.catalyst.InternalRow serialize(Vector obj)
UserDefinedTypeserialize in class UserDefinedType<Vector>obj - (undocumented)public StructType sqlType()
UserDefinedTypesqlType in class UserDefinedType<Vector>public String typeName()
DataTypepublic Class<Vector> userClass()
UserDefinedTypeuserClass in class UserDefinedType<Vector>