Packages

c

cloudflow.spark.avro

SparkAvroEncoder

case class SparkAvroEncoder[T](avroSchema: String)(implicit evidence$3: Encoder[T], evidence$4: scala.reflect.api.JavaUniverse.TypeTag[T]) extends Product with Serializable

Instances of this class are used to translate a Dataset[T] into a Byte Array using an AVRO schema in its String JSON representation for the type T being encoded. The type T must have a matching implicit Spark Encoder in scope. Note that most supported Encoders can be imported from cloudflow.spark.sql.SQLImplicits

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkAvroEncoder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkAvroEncoder(avroSchema: String)(implicit arg0: Encoder[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T])

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. val BufferSize: Int
  5. lazy val _avroSchema: Schema
    Annotations
    @transient()
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val avroSchema: String
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. lazy val converter: (Any) ⇒ Any
    Annotations
    @transient()
  10. def encode(dataset: Dataset[T]): Dataset[Array[Byte]]
  11. def encodeWithKey(dataset: Dataset[T], keyFun: (T) ⇒ String): Dataset[EncodedKV]
  12. val encoder: Encoder[T]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. lazy val log: Logger
    Annotations
    @transient()
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val recordName: String
  22. val recordNamespace: String
  23. def rowToBytes(row: Row): Array[Byte]
  24. val sqlSchema: StructType
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped