Class

org.apache.flink.streaming.api.scala.extensions.impl.acceptPartialFunctions

OnWindowedStream

Related Doc: package acceptPartialFunctions

Permalink

class OnWindowedStream[T, K, W <: Window] extends AnyRef

Wraps a joined data stream, allowing to use anonymous partial functions to perform extraction of items in a tuple, case class instance or collection

T

The type of the data stream items from the right input of the join

K

The type of key

W

The type of the window

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OnWindowedStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OnWindowedStream(stream: WindowedStream[T, K, W])

    Permalink

    stream

    The wrapped data stream

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. def applyWith[ACC, R](initialValue: ACC)(foldFunction: (ACC, T) ⇒ ACC, windowFunction: (K, W, Stream[ACC]) ⇒ TraversableOnce[R])(implicit arg0: TypeInformation[ACC], arg1: TypeInformation[R]): DataStream[R]

    Permalink

    Applies the given window function to each window.

    Applies the given window function to each window. The window function is called for each evaluation of the window for each key individually. The output of the window function is interpreted as a regular non-windowed stream.

    Arriving data is incrementally aggregated using the given fold function.

    initialValue

    The initial value of the fold

    foldFunction

    The fold function that is used for incremental aggregation

    windowFunction

    The window function.

    returns

    The data stream that is the result of applying the window function to the window.

    Annotations
    @PublicEvolving()
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def foldWith[R](initialValue: R)(function: (R, T) ⇒ R)(implicit arg0: TypeInformation[R]): DataStream[R]

    Permalink

    Applies the given fold function to each window.

    Applies the given fold function to each window. The window function is called for each evaluation of the window for each key individually. The output of the reduce function is interpreted as a regular non-windowed stream.

    function

    The fold function.

    returns

    The data stream that is the result of applying the fold function to the window.

    Annotations
    @PublicEvolving()
  11. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def reduceWith(function: (T, T) ⇒ T): DataStream[T]

    Permalink

    Applies a reduce function to the window.

    Applies a reduce function to the window. The window function is called for each evaluation of the window for each key individually. The output of the reduce function is interpreted as a regular non-windowed stream.

    This window will try and pre-aggregate data as much as the window policies permit. For example,tumbling time windows can perfectly pre-aggregate the data, meaning that only one element per key is stored. Sliding time windows will pre-aggregate on the granularity of the slide interval, so a few elements are stored per key (one per slide interval). Custom windows may not be able to pre-aggregate, or may need to store extra values in an aggregation tree.

    function

    The reduce function.

    returns

    The data stream that is the result of applying the reduce function to the window.

    Annotations
    @PublicEvolving()
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped