Trait/Object

com.svenvandam.htypes.hbase

RowCodec

Related Docs: object RowCodec | package hbase

Permalink

trait RowCodec[A] extends RowDecoder[A] with RowEncoder[A]

Type class that combines a RowEncoder and a RowDecoder for type A

Self Type
RowCodec[A]
Linear Supertypes
RowEncoder[A], Encoder[Row, A], RowDecoder[A], Decoder[Row, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RowCodec
  2. RowEncoder
  3. Encoder
  4. RowDecoder
  5. Decoder
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def decode(a: Row): Option[A]

    Permalink

    Produce a B from an A which could fail.

    Produce a B from an A which could fail.

    Definition Classes
    Decoder
  2. abstract def encode(b: A): Row

    Permalink

    Produce an A from a B.

    Produce an A from a B.

    Definition Classes
    Encoder
  3. abstract def getColumns: Set[Column]

    Permalink
    Definition Classes
    RowDecoder

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def combine[B, C](that: RowCodec[B], f: (C) ⇒ (A, B), g: (A, B) ⇒ C): RowCodec[C]

    Permalink

    Create a new RowCodec by combining both the RowDecoder and RowEncoder with a type B to a type C

  7. def combine[B, C](that: RowEncoder[B], f: (C) ⇒ (A, B)): RowEncoder[C]

    Permalink

    Create a new RowEncoder for type C by combining this decoder with a RowEncoder for type B and a function which splits a C into an A and a B.

    Create a new RowEncoder for type C by combining this decoder with a RowEncoder for type B and a function which splits a C into an A and a B.

    Note: it is assumed that the Rows produced by encoding the A and B target the same key!

    Definition Classes
    RowEncoder
  8. def combine[B, C](that: RowDecoder[B], f: (A, B) ⇒ C): RowDecoder[C]

    Permalink

    Create a new RowDecoder for type C by combining this decoder with a RowDecoder for type B and a function which combines an A and a B to a C.

    Create a new RowDecoder for type C by combining this decoder with a RowDecoder for type B and a function which combines an A and a B to a C.

    Definition Classes
    RowDecoder
  9. def contramap[B](f: (B) ⇒ A): RowEncoder[B]

    Permalink

    Create a new RowEncoder for type B by applying a function to a value of type B before encoding as an A.

    Create a new RowEncoder for type B by applying a function to a value of type B before encoding as an A.

    Definition Classes
    RowEncoder
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (A) ⇒ Option[B]): RowDecoder[B]

    Permalink

    Create a new RowDecoder for type B by applying a function which might fail to a value of type A after decoding.

    Create a new RowDecoder for type B by applying a function which might fail to a value of type A after decoding.

    Definition Classes
    RowDecoder
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def iflatMap[B](f: (B) ⇒ A, g: (A) ⇒ Option[B], newColumns: Set[Column]): RowCodec[B]

    Permalink

    Create a new RowCodec by flatMapping the RowDecoder and contramapping the RowEncoder to type B

  17. def imap[B](f: (B) ⇒ A, g: (A) ⇒ B, newColumns: Set[Column]): RowCodec[B]

    Permalink

    Create a new RowCodec by mapping the RowDecoder and contramapping the RowEncoder to type B

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def map[B](f: (A) ⇒ B): RowDecoder[B]

    Permalink

    Create a new RowDecoder for type B by applying a function to a value of type A after decoding.

    Create a new RowDecoder for type B by applying a function to a value of type A after decoding.

    Definition Classes
    RowDecoder
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

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

Inherited from RowEncoder[A]

Inherited from Encoder[Row, A]

Inherited from RowDecoder[A]

Inherited from Decoder[Row, A]

Inherited from AnyRef

Inherited from Any

Ungrouped