Class

org.apache.spark.mllib.linalg

VectorUDT

Related Doc: package linalg

Permalink

class VectorUDT extends UserDefinedType[Vector]

:: AlphaComponent ::

User-defined type for Vector which allows easy interaction with SQL via org.apache.spark.sql.Dataset.

Annotations
@AlphaComponent()
Source
Vectors.scala
Linear Supertypes
UserDefinedType[Vector], Serializable, Serializable, DataType, AbstractDataType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VectorUDT
  2. UserDefinedType
  3. Serializable
  4. Serializable
  5. DataType
  6. AbstractDataType
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VectorUDT()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def catalogString: String

    Permalink

    String representation for the type saved in external catalogs.

    String representation for the type saved in external catalogs.

    Definition Classes
    UserDefinedType → DataType
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def defaultSize: Int

    Permalink

    The default size of a value of this data type, used internally for size estimation.

    The default size of a value of this data type, used internally for size estimation.

    Definition Classes
    UserDefinedType → DataType
  8. def deserialize(datum: Any): Vector

    Permalink

    Convert a SQL datum to the user type

    Convert a SQL datum to the user type

    Definition Classes
    VectorUDT → UserDefinedType
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    VectorUDT → UserDefinedType → AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    VectorUDT → UserDefinedType → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def json: String

    Permalink

    The compact JSON representation of this data type.

    The compact JSON representation of this data type.

    Definition Classes
    DataType
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def prettyJson: String

    Permalink

    The pretty (i.e.

    The pretty (i.e. indented) JSON representation of this data type.

    Definition Classes
    DataType
  20. def pyUDT: String

    Permalink

    Paired Python UDT class, if exists.

    Paired Python UDT class, if exists.

    Definition Classes
    VectorUDT → UserDefinedType
  21. def serialize(obj: Vector): InternalRow

    Permalink

    Convert the user type to a SQL datum

    Convert the user type to a SQL datum

    Definition Classes
    VectorUDT → UserDefinedType
  22. def serializedPyClass: String

    Permalink

    Serialized Python UDT class, if exists.

    Serialized Python UDT class, if exists.

    Definition Classes
    UserDefinedType
  23. def simpleString: String

    Permalink

    Readable string representation for the type.

    Readable string representation for the type.

    Definition Classes
    DataType → AbstractDataType
  24. def sql: String

    Permalink
    Definition Classes
    UserDefinedType → DataType
  25. def sqlType: StructType

    Permalink

    Underlying storage type for this UDT

    Underlying storage type for this UDT

    Definition Classes
    VectorUDT → UserDefinedType
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def typeName: String

    Permalink

    Name of the type used in JSON serialization.

    Name of the type used in JSON serialization.

    Definition Classes
    VectorUDTDataType
  29. def userClass: Class[Vector]

    Permalink

    Class object for the UserType

    Class object for the UserType

    Definition Classes
    VectorUDT → UserDefinedType
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from UserDefinedType[Vector]

Inherited from Serializable

Inherited from Serializable

Inherited from DataType

Inherited from AbstractDataType

Inherited from AnyRef

Inherited from Any

Ungrouped