Packages

c

com.twitter.bijection.avro

JsonAvroCodec

class JsonAvroCodec[T] extends Injection[T, String]

Provides methods to serializing and deserializing a generic and compiled avro record using org.apache.avro.io.JsonEncoder to a UTF-8 String

T

avro record

Exceptions thrown

RuntimeException if Avro Records cannot be converted to a UTF-8 String

Linear Supertypes
Injection[T, String], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonAvroCodec
  2. Injection
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonAvroCodec(schema: Schema, writer: DatumWriter[T], reader: DatumReader[T])

    writer

    Datum writer

    reader

    Datum reader

    Exceptions thrown

    RuntimeException if Avro Records cannot be converted to a UTF-8 String

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. def andThen[C](g: (String) ⇒ C): (T) ⇒ C
    Definition Classes
    Injection
  5. def andThen[C](bij: Bijection[String, C]): Injection[T, C]
    Definition Classes
    Injection
  6. def andThen[C](g: Injection[String, C]): Injection[T, C]
    Definition Classes
    Injection
  7. def apply(a: T): String
    Definition Classes
    JsonAvroCodec → Injection
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def compose[T](g: (T) ⇒ T): (T) ⇒ String
    Definition Classes
    Injection
  11. def compose[T](bij: Bijection[T, T]): Injection[T, String]
    Definition Classes
    Injection
  12. def compose[T](g: Injection[T, T]): Injection[T, String]
    Definition Classes
    Injection
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def invert(str: String): Attempt[T]
    Definition Classes
    JsonAvroCodec → Injection
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toFunction: (T) ⇒ String
    Definition Classes
    Injection
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  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 Injection[T, String]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped