Class/Object

com.twitter.finatra.kafkastreams.transformer

FinatraTransformer

Related Docs: object FinatraTransformer | package transformer

Permalink

abstract class FinatraTransformer[InputKey, InputValue, OutputKey, OutputValue] extends Transformer[InputKey, InputValue, (OutputKey, OutputValue)] with OnInit with OnWatermark with OnClose with OnFlush with ProcessorContextLogging

A KafkaStreams Transformer offering an upgraded API over the built in Transformer interface.

This Transformer differs from the built in Transformer interface by exposing an [onMessage] interface that is used to process incoming messages. Within [onMessage] you may use the [forward] method to emit 0 or more records.

This transformer also manages watermarks(see [WatermarkManager]), and extends [OnWatermark] which allows you to track the passage of event time.

InputKey

Type of the input keys

InputValue

Type of the input values

OutputKey

Type of the output keys

OutputValue

Type of the output values

Annotations
@Beta()
Linear Supertypes
ProcessorContextLogging, OnFlush, OnClose, OnWatermark, OnInit, Transformer[InputKey, InputValue, (OutputKey, OutputValue)], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FinatraTransformer
  2. ProcessorContextLogging
  3. OnFlush
  4. OnClose
  5. OnWatermark
  6. OnInit
  7. Transformer
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FinatraTransformer(statsReceiver: StatsReceiver, watermarkAssignor: WatermarkAssignor[InputKey, InputValue] = ...)

    Permalink

Type Members

  1. implicit class RichLong extends AnyRef

    Permalink
    Definition Classes
    ProcessorContextLogging

Abstract Value Members

  1. abstract def onMessage(messageTime: Time, key: InputKey, value: InputValue): Unit

    Permalink

    Callback method which is called for every message in the stream this Transformer is attached to.

    Callback method which is called for every message in the stream this Transformer is attached to. Implementers of this method may emit 0 or more records by using the processorContext.

    messageTime

    the time of the message

    key

    the key of the message

    value

    the value of the message

    Attributes
    protected[com.twitter.finatra]

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 close(): Unit

    Permalink
    Definition Classes
    FinatraTransformer → Transformer
  7. final def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ProcessorContextLogging
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ProcessorContextLogging
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. val finatraKeyValueStoresMap: Map[StoreName, FinatraKeyValueStore[_, _]]

    Permalink
    Attributes
    protected[com.twitter.finatra.kafkastreams]
  13. final def forward(key: OutputKey, value: OutputValue, timestamp: Long): Unit

    Permalink
    Attributes
    protected
  14. final def forward(key: OutputKey, value: OutputValue): Unit

    Permalink
    Attributes
    protected
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getKeyValueStore[KK, VV](name: String)(implicit arg0: ClassTag[KK]): FinatraKeyValueStore[KK, VV]

    Permalink

    Get the state store given the store name.

    Get the state store given the store name.

    KK

    Key type of the state store

    VV

    Value type of the state store

    name

    The store name

    returns

    The state store instance

    Attributes
    protected
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ProcessorContextLogging
  19. final def init(processorContext: ProcessorContext): Unit

    Permalink
    Definition Classes
    FinatraTransformer → Transformer
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def onClose(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OnClose
  25. def onFlush(): Unit

    Permalink

    Callback method for when you should flush any cached data.

    Callback method for when you should flush any cached data. This method is typically called prior to a Kafka commit

    Definition Classes
    FinatraTransformerOnFlush
  26. def onInit(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OnInit
  27. def onWatermark(watermark: Watermark): Unit

    Permalink
    Definition Classes
    FinatraTransformerOnWatermark
  28. def processorContext: ProcessorContext

    Permalink
    Attributes
    protected
    Definition Classes
    FinatraTransformer → ProcessorContextLogging
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. final def taskIdStr: String

    Permalink
    Attributes
    protected
    Definition Classes
    ProcessorContextLogging
  31. final def timeStr: String

    Permalink
    Attributes
    protected
    Definition Classes
    ProcessorContextLogging
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ProcessorContextLogging
  34. final def transform(k: InputKey, v: InputValue): (OutputKey, OutputValue)

    Permalink
    Definition Classes
    FinatraTransformer → Transformer
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ProcessorContextLogging
  39. final def watermark: Watermark

    Permalink
    Attributes
    protected[com.twitter.finatra]

Inherited from ProcessorContextLogging

Inherited from OnFlush

Inherited from OnClose

Inherited from OnWatermark

Inherited from OnInit

Inherited from Transformer[InputKey, InputValue, (OutputKey, OutputValue)]

Inherited from AnyRef

Inherited from Any

Ungrouped