Package org.apache.spark.mllib.linalg
Class VectorUDT
- All Implemented Interfaces:
Serializable
:: AlphaComponent ::
User-defined type for Vector which allows easy interaction with SQL
via Dataset.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(Object datum) Convert a SQL datum to the user typebooleaninthashCode()pyUDT()Paired Python UDT class, if exists.org.apache.spark.sql.catalyst.InternalRowConvert the user type to a SQL datumsqlType()Underlying storage type for this UDTtypeName()Name of the type used in JSON serialization.Class object for the UserTypeMethods inherited from class org.apache.spark.sql.types.UserDefinedType
catalogString, defaultSize, serializedPyClass, sqlMethods inherited from class org.apache.spark.sql.types.DataType
COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString
-
Constructor Details
-
VectorUDT
public VectorUDT()
-
-
Method Details
-
deserialize
Description copied from class:UserDefinedTypeConvert a SQL datum to the user type- Specified by:
deserializein classUserDefinedType<Vector>
-
equals
- Overrides:
equalsin classUserDefinedType<Vector>
-
hashCode
public int hashCode()- Overrides:
hashCodein classUserDefinedType<Vector>
-
pyUDT
Description copied from class:UserDefinedTypePaired Python UDT class, if exists.- Overrides:
pyUDTin classUserDefinedType<Vector>
-
serialize
Description copied from class:UserDefinedTypeConvert the user type to a SQL datum- Specified by:
serializein classUserDefinedType<Vector>- Parameters:
obj- (undocumented)- Returns:
- (undocumented)
-
sqlType
Description copied from class:UserDefinedTypeUnderlying storage type for this UDT- Specified by:
sqlTypein classUserDefinedType<Vector>
-
typeName
Description copied from class:DataTypeName of the type used in JSON serialization. -
userClass
Description copied from class:UserDefinedTypeClass object for the UserType- Specified by:
userClassin classUserDefinedType<Vector>- Returns:
- (undocumented)
-