Object

org.apache.flink.streaming.api.scala

AsyncDataStream

Related Doc: package scala

Permalink

object AsyncDataStream

A helper class to apply AsyncFunction to a data stream.

Example:

val input: DataStream[String] = ...
val asyncFunction: (String, ResultFuture[String]) => Unit = ...

AsyncDataStream.orderedWait(input, asyncFunction, timeout, TimeUnit.MILLISECONDS, 100)
Annotations
@PublicEvolving()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncDataStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def orderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  16. def orderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit, capacity: Int)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    capacity

    of the operator which is equivalent to the number of concurrent asynchronous operations

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  17. def orderedWait[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    asyncFunction

    to use

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    returns

    the resulting stream containing the asynchronous results

  18. def orderedWait[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, capacity: Int)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    asyncFunction

    to use

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    capacity

    of the operator which is equivalent to the number of concurrent asynchronous operations

    returns

    the resulting stream containing the asynchronous results

  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def unorderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is only maintained with respect to watermarks. Stream records which lie between the same two watermarks, can be re-ordered.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  22. def unorderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit, capacity: Int)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is only maintained with respect to watermarks. Stream records which lie between the same two watermarks, can be re-ordered.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    capacity

    of the operator which is equivalent to the number of concurrent asynchronous operations

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  23. def unorderedWait[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is only maintained with respect to watermarks. Stream records which lie between the same two watermarks, can be re-ordered.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    asyncFunction

    to use

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    returns

    the resulting stream containing the asynchronous results

  24. def unorderedWait[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, capacity: Int)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    Permalink

    Apply an asynchronous function on the input data stream.

    Apply an asynchronous function on the input data stream. The output order is only maintained with respect to watermarks. Stream records which lie between the same two watermarks, can be re-ordered.

    IN

    Type of the input record

    OUT

    Type of the output record

    input

    to apply the async function on

    asyncFunction

    to use

    timeout

    for the asynchronous operation to complete

    timeUnit

    of the timeout

    capacity

    of the operator which is equivalent to the number of concurrent asynchronous operations

    returns

    the resulting stream containing the asynchronous results

  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 AnyRef

Inherited from Any

Ungrouped