Package

com.twitter.finatra.kafkastreams.transformer

aggregation

Permalink

package aggregation

Visibility
  1. Public
  2. All

Type Members

  1. class AggregatorTransformer[K, V, Aggregate] extends FinatraTransformer[K, V, TimeWindowed[K], WindowedValue[Aggregate]] with CachingKeyValueStores[K, V, TimeWindowed[K], WindowedValue[Aggregate]] with PersistentTimers

    Permalink

    An aggregating transformer for fixed windows which offers additional controls that are not included in the built in Kafka Streams Windowing DSL

    An aggregating transformer for fixed windows which offers additional controls that are not included in the built in Kafka Streams Windowing DSL

    A TimeWindow is a tumbling window of fixed length defined by the windowSize parameter.

    A Window is closed after event time passes the end of a TimeWindow + allowedLateness.

    After a window is closed, if emitOnClose=true it is forwarded out of this transformer with a WindowedValue.windowResultType of WindowClosed

    If a record arrives after a window is closed it is immediately forwarded out of this transformer with a WindowedValue.windowResultType of Restatement

    returns

    a stream of Keys for a particular timewindow, and the aggregations of the values for that key within a particular timewindow.

  2. class FixedTimeWindowedSerde[K] extends AbstractSerde[TimeWindowed[K]]

    Permalink

    Serde for use when your time windows are fixed length and non-overlapping.

    Serde for use when your time windows are fixed length and non-overlapping. When this condition is met, we are able to avoid serializing 8 bytes for TimeWindowed.endTime

  3. case class TimeWindowed[V](start: Time, end: Time, value: V) extends Product with Serializable

    Permalink

    A time windowed value specified by a start and end time

    A time windowed value specified by a start and end time

    start

    the start time of the window (inclusive)

    end

    the end time of the window (exclusive)

  4. class WindowResultType extends AnyRef

    Permalink
  5. case class WindowedValue[V](windowResultType: WindowResultType, value: V) extends Product with Serializable

    Permalink
  6. class WindowedValueSerde[V] extends AbstractSerde[WindowedValue[V]]

    Permalink

    Serde for the WindowedValue class.

Ungrouped