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 SummaryConstructors
- 
Method SummaryModifier 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.UserDefinedTypecatalogString, defaultSize, serializedPyClass, sql, stringifyValueMethods inherited from class org.apache.spark.sql.types.DataTypeCOLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString
- 
Constructor Details- 
VectorUDTpublic VectorUDT()
 
- 
- 
Method Details- 
deserializeDescription copied from class:UserDefinedTypeConvert a SQL datum to the user type- Specified by:
- deserializein class- UserDefinedType<Vector>
 
- 
equals- Overrides:
- equalsin class- UserDefinedType<Vector>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- UserDefinedType<Vector>
 
- 
pyUDTDescription copied from class:UserDefinedTypePaired Python UDT class, if exists.- Overrides:
- pyUDTin class- UserDefinedType<Vector>
 
- 
serializeDescription copied from class:UserDefinedTypeConvert the user type to a SQL datum- Specified by:
- serializein class- UserDefinedType<Vector>
- Parameters:
- obj- (undocumented)
- Returns:
- (undocumented)
 
- 
sqlTypeDescription copied from class:UserDefinedTypeUnderlying storage type for this UDT- Specified by:
- sqlTypein class- UserDefinedType<Vector>
 
- 
typeNameDescription copied from class:DataTypeName of the type used in JSON serialization.
- 
userClassDescription copied from class:UserDefinedTypeClass object for the UserType- Specified by:
- userClassin class- UserDefinedType<Vector>
- Returns:
- (undocumented)
 
 
-