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)
Value members
Concrete methods
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- capacity
of the operator which is equivalent to the number of concurrent asynchronous operations
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- capacity
of the operator which is equivalent to the number of concurrent asynchronous operations
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
Apply an asynchronous function on the input data stream. The output order is the same as the input order of the elements.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
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.
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.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- capacity
of the operator which is equivalent to the number of concurrent asynchronous operations
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
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.
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.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
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.
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.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- capacity
of the operator which is equivalent to the number of concurrent asynchronous operations
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results
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.
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.
- Type parameters:
- IN
Type of the input record
- OUT
Type of the output record
- Value parameters:
- asyncFunction
to use
- input
to apply the async function on
- timeUnit
of the timeout
- timeout
for the asynchronous operation to complete
- Returns:
the resulting stream containing the asynchronous results