object CatalystTypeConverters
Functions to convert Scala types to Catalyst types and vice versa.
- Alphabetic
- By Inheritance
- CatalystTypeConverters
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def convertToCatalyst(a: Any): Any
Converts Scala objects to Catalyst rows / types.
Converts Scala objects to Catalyst rows / types.
Note: This should be called before do evaluation on Row (It does not support UDT) This is used to create an RDD or test results with correct types for Catalyst.
- def convertToScala(catalystValue: Any, dataType: DataType): Any
Converts Catalyst types used internally in rows to standard Scala types This method is slow, and for batch conversion you should be using converter produced by createToScalaConverter.
- def createToCatalystConverter(dataType: DataType): (Any) => Any
Creates a converter function that will convert Scala objects to the specified Catalyst type.
Creates a converter function that will convert Scala objects to the specified Catalyst type. Typical use case would be converting a collection of rows that have the same schema. You will call this function once to get a converter, and apply it to every row.
- def createToScalaConverter(dataType: DataType): (Any) => Any
Creates a converter function that will convert Catalyst types to Scala type.
Creates a converter function that will convert Catalyst types to Scala type. Typical use case would be converting a collection of rows that have the same schema. You will call this function once to get a converter, and apply it to every row.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()