Trait

com.mnubo.flink.streaming.connectors

RecordMarshaller

Related Doc: package connectors

Permalink

trait RecordMarshaller[T] extends Serializable

An interface helping datasources to convert emmitted records from an internal list of values to the desired type T.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RecordMarshaller
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def configureFields(fieldDescriptors: Seq[MarshallerFieldDescriptor]): Unit

    Permalink

    The datasource will call this method before emmiting records.

    The datasource will call this method before emmiting records. It will give a chance to the marshaller either to configure itself for accepting this sequence of name / type, or to check that the given sequence is compatible with type T.

    fieldDescriptors

    The list of fields the datasource will emmit.

  2. abstract def createOrReuseInstance(fieldValues: Seq[AnyRef], reuse: T): T

    Permalink

    The datasource will call this method each time a new record is available.

    The datasource will call this method each time a new record is available. It expect the marshaller to convert the list of values to an instance of type T. If T is not immutable, the marshaller is expected to mutate the reuse instance with the given field values. If T is mutable, the marshaller is expected to create an instance of its own.

    fieldValues

    the values emmited by the datasource

    reuse

    if not immutable, the instance to set values in and return

    returns

    the record of type T filled with the given values

  3. abstract def typeInformation: TypeInformation[T]

    Permalink

    The underlying type information.

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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped