case class TransformingEncoder[I, O](clsTag: ClassTag[I], transformed: AgnosticEncoder[O], codecProvider: () => Codec[_ >: I, O], nullable: Boolean = false) extends AgnosticEncoder[I] with Product with Serializable

Encoder that transforms external data into a representation that can be further processed by another encoder. This is fallback for scenarios where objects can't be represented using standard encoders, an example of this is where we use a different (opaque) serialization format (i.e. java serialization, kryo serialization, or protobuf).

nullable

defaults to false indicating the codec guarantees decode / encode results are non-nullable

Linear Supertypes
Product, Equals, AgnosticEncoder[I], Encoder[I], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransformingEncoder
  2. Product
  3. Equals
  4. AgnosticEncoder
  5. Encoder
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TransformingEncoder(clsTag: ClassTag[I], transformed: AgnosticEncoder[O], codecProvider: () => Codec[_ >: I, O], nullable: Boolean = false)

    nullable

    defaults to false indicating the codec guarantees decode / encode results are non-nullable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val clsTag: ClassTag[I]

    A ClassTag that can be used to construct an Array to contain a collection of T.

    A ClassTag that can be used to construct an Array to contain a collection of T.

    Definition Classes
    TransformingEncoderEncoder
  7. val codecProvider: () => Codec[_ >: I, O]
  8. def dataType: DataType
    Definition Classes
    TransformingEncoderAgnosticEncoder
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def isPrimitive: Boolean
    Definition Classes
    TransformingEncoderAgnosticEncoder
  13. def isStruct: Boolean
    Definition Classes
    TransformingEncoderAgnosticEncoder
  14. def lenientSerialization: Boolean
    Definition Classes
    AgnosticEncoder
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. val nullable: Boolean
    Definition Classes
    TransformingEncoderAgnosticEncoder
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. def schema: StructType

    Returns the schema of encoding this type of object as a Row.

    Returns the schema of encoding this type of object as a Row.

    Definition Classes
    TransformingEncoderAgnosticEncoderEncoder
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. val transformed: AgnosticEncoder[O]
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Product

Inherited from Equals

Inherited from AgnosticEncoder[I]

Inherited from Encoder[I]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped