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()
- Alphabetic
- By Inheritance
- AsyncDataStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated