Packages

o

org.apache.flinkx.api

AsyncDataStream

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def orderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

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

    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

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

    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

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

    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

  18. def orderedWaitWithRetry[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit, asyncRetryStrategy: AsyncRetryStrategy[OUT])(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

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

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  20. def orderedWaitWithRetry[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, asyncRetryStrategy: AsyncRetryStrategy[OUT])(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    returns

    the resulting stream containing the asynchronous results

  21. def orderedWaitWithRetry[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, capacity: Int, asyncRetryStrategy: AsyncRetryStrategy[OUT])(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    returns

    the resulting stream containing the asynchronous results

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unorderedWait[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit)(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

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

    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

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

    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

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

    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

  28. def unorderedWaitWithRetry[IN, OUT](input: DataStream[IN], timeout: Long, timeUnit: TimeUnit, asyncRetryStrategy: AsyncRetryStrategy[OUT])(asyncFunction: (IN, ResultFuture[OUT]) ⇒ Unit)(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

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

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    asyncFunction

    to use

    returns

    the resulting stream containing the asynchronous results

  30. def unorderedWaitWithRetry[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, asyncRetryStrategy: AsyncRetryStrategy[OUT])(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    returns

    the resulting stream containing the asynchronous results

  31. def unorderedWaitWithRetry[IN, OUT](input: DataStream[IN], asyncFunction: AsyncFunction[IN, OUT], timeout: Long, timeUnit: TimeUnit, capacity: Int, asyncRetryStrategy: AsyncRetryStrategy[OUT])(implicit arg0: TypeInformation[OUT]): DataStream[OUT]

    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

    asyncRetryStrategy

    The strategy of reattempt async i/o operation that can be triggered

    returns

    the resulting stream containing the asynchronous results

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped