Object

org.apache.spark.sql

Encoders

Related Doc: package sql

Permalink

object Encoders

:: Experimental :: Methods for creating an Encoder.

Annotations
@Experimental() @Evolving()
Source
Encoders.scala
Since

1.6.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Encoders
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def BINARY: Encoder[Array[Byte]]

    Permalink

    An encoder for arrays of bytes.

    An encoder for arrays of bytes.

    Since

    1.6.1

  5. def BOOLEAN: Encoder[Boolean]

    Permalink

    An encoder for nullable boolean type.

    An encoder for nullable boolean type. The Scala primitive encoder is available as scalaBoolean.

    Since

    1.6.0

  6. def BYTE: Encoder[Byte]

    Permalink

    An encoder for nullable byte type.

    An encoder for nullable byte type. The Scala primitive encoder is available as scalaByte.

    Since

    1.6.0

  7. def DATE: Encoder[Date]

    Permalink

    An encoder for nullable date type.

    An encoder for nullable date type.

    Since

    1.6.0

  8. def DECIMAL: Encoder[BigDecimal]

    Permalink

    An encoder for nullable decimal type.

    An encoder for nullable decimal type.

    Since

    1.6.0

  9. def DOUBLE: Encoder[Double]

    Permalink

    An encoder for nullable double type.

    An encoder for nullable double type. The Scala primitive encoder is available as scalaDouble.

    Since

    1.6.0

  10. def FLOAT: Encoder[Float]

    Permalink

    An encoder for nullable float type.

    An encoder for nullable float type. The Scala primitive encoder is available as scalaFloat.

    Since

    1.6.0

  11. def INT: Encoder[Integer]

    Permalink

    An encoder for nullable int type.

    An encoder for nullable int type. The Scala primitive encoder is available as scalaInt.

    Since

    1.6.0

  12. def LONG: Encoder[Long]

    Permalink

    An encoder for nullable long type.

    An encoder for nullable long type. The Scala primitive encoder is available as scalaLong.

    Since

    1.6.0

  13. def SHORT: Encoder[Short]

    Permalink

    An encoder for nullable short type.

    An encoder for nullable short type. The Scala primitive encoder is available as scalaShort.

    Since

    1.6.0

  14. def STRING: Encoder[String]

    Permalink

    An encoder for nullable string type.

    An encoder for nullable string type.

    Since

    1.6.0

  15. def TIMESTAMP: Encoder[Timestamp]

    Permalink

    An encoder for nullable timestamp type.

    An encoder for nullable timestamp type.

    Since

    1.6.0

  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def bean[T](beanClass: Class[T]): Encoder[T]

    Permalink

    Creates an encoder for Java Bean of type T.

    Creates an encoder for Java Bean of type T.

    T must be publicly accessible.

    supported types for java bean field:

    • primitive types: boolean, int, double, etc.
    • boxed types: Boolean, Integer, Double, etc.
    • String
    • java.math.BigDecimal, java.math.BigInteger
    • time related: java.sql.Date, java.sql.Timestamp
    • collection types: only array and java.util.List currently, map support is in progress
    • nested java bean.
    Since

    1.6.0

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def javaSerialization[T](clazz: Class[T]): Encoder[T]

    Permalink

    Creates an encoder that serializes objects of type T using generic Java serialization.

    Creates an encoder that serializes objects of type T using generic Java serialization. This encoder maps T into a single byte array (binary) field.

    T must be publicly accessible.

    Since

    1.6.0

    Note

    This is extremely inefficient and should only be used as the last resort.

  26. def javaSerialization[T](implicit arg0: ClassTag[T]): Encoder[T]

    Permalink

    (Scala-specific) Creates an encoder that serializes objects of type T using generic Java serialization.

    (Scala-specific) Creates an encoder that serializes objects of type T using generic Java serialization. This encoder maps T into a single byte array (binary) field.

    T must be publicly accessible.

    Since

    1.6.0

    Note

    This is extremely inefficient and should only be used as the last resort.

  27. def kryo[T](clazz: Class[T]): Encoder[T]

    Permalink

    Creates an encoder that serializes objects of type T using Kryo.

    Creates an encoder that serializes objects of type T using Kryo. This encoder maps T into a single byte array (binary) field.

    T must be publicly accessible.

    Since

    1.6.0

  28. def kryo[T](implicit arg0: ClassTag[T]): Encoder[T]

    Permalink

    (Scala-specific) Creates an encoder that serializes objects of type T using Kryo.

    (Scala-specific) Creates an encoder that serializes objects of type T using Kryo. This encoder maps T into a single byte array (binary) field.

    T must be publicly accessible.

    Since

    1.6.0

  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def product[T <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]

    Permalink

    An encoder for Scala's product type (tuples, case classes, etc).

    An encoder for Scala's product type (tuples, case classes, etc).

    Since

    2.0.0

  33. def scalaBoolean: Encoder[Boolean]

    Permalink

    An encoder for Scala's primitive boolean type.

    An encoder for Scala's primitive boolean type.

    Since

    2.0.0

  34. def scalaByte: Encoder[Byte]

    Permalink

    An encoder for Scala's primitive byte type.

    An encoder for Scala's primitive byte type.

    Since

    2.0.0

  35. def scalaDouble: Encoder[Double]

    Permalink

    An encoder for Scala's primitive double type.

    An encoder for Scala's primitive double type.

    Since

    2.0.0

  36. def scalaFloat: Encoder[Float]

    Permalink

    An encoder for Scala's primitive float type.

    An encoder for Scala's primitive float type.

    Since

    2.0.0

  37. def scalaInt: Encoder[Int]

    Permalink

    An encoder for Scala's primitive int type.

    An encoder for Scala's primitive int type.

    Since

    2.0.0

  38. def scalaLong: Encoder[Long]

    Permalink

    An encoder for Scala's primitive long type.

    An encoder for Scala's primitive long type.

    Since

    2.0.0

  39. def scalaShort: Encoder[Short]

    Permalink

    An encoder for Scala's primitive short type.

    An encoder for Scala's primitive short type.

    Since

    2.0.0

  40. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  42. def tuple[T1, T2, T3, T4, T5](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3], e4: Encoder[T4], e5: Encoder[T5]): Encoder[(T1, T2, T3, T4, T5)]

    Permalink

    An encoder for 5-ary tuples.

    An encoder for 5-ary tuples.

    Since

    1.6.0

  43. def tuple[T1, T2, T3, T4](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3], e4: Encoder[T4]): Encoder[(T1, T2, T3, T4)]

    Permalink

    An encoder for 4-ary tuples.

    An encoder for 4-ary tuples.

    Since

    1.6.0

  44. def tuple[T1, T2, T3](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3]): Encoder[(T1, T2, T3)]

    Permalink

    An encoder for 3-ary tuples.

    An encoder for 3-ary tuples.

    Since

    1.6.0

  45. def tuple[T1, T2](e1: Encoder[T1], e2: Encoder[T2]): Encoder[(T1, T2)]

    Permalink

    An encoder for 2-ary tuples.

    An encoder for 2-ary tuples.

    Since

    1.6.0

  46. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped