@PublicEvolving public class AsyncDataStream extends Object
AsyncFunction
to a data stream.
DataStream<String> input = ...
AsyncFunction<String, Tuple<String, String>> asyncFunc = ...
AsyncDataStream.orderedWait(input, asyncFunc, timeout, TimeUnit.MILLISECONDS, 100);
限定符和类型 | 类和说明 |
---|---|
static class |
AsyncDataStream.OutputMode
Output mode for asynchronous operations.
|
构造器和说明 |
---|
AsyncDataStream() |
限定符和类型 | 方法和说明 |
---|---|
static <IN,OUT> SingleOutputStreamOperator<OUT> |
orderedWait(DataStream<IN> in,
AsyncFunction<IN,OUT> func,
long timeout,
TimeUnit timeUnit)
Add an AsyncWaitOperator.
|
static <IN,OUT> SingleOutputStreamOperator<OUT> |
orderedWait(DataStream<IN> in,
AsyncFunction<IN,OUT> func,
long timeout,
TimeUnit timeUnit,
int capacity)
Add an AsyncWaitOperator.
|
static <IN,OUT> SingleOutputStreamOperator<OUT> |
unorderedWait(DataStream<IN> in,
AsyncFunction<IN,OUT> func,
long timeout,
TimeUnit timeUnit)
Add an AsyncWaitOperator.
|
static <IN,OUT> SingleOutputStreamOperator<OUT> |
unorderedWait(DataStream<IN> in,
AsyncFunction<IN,OUT> func,
long timeout,
TimeUnit timeUnit,
int capacity)
Add an AsyncWaitOperator.
|
public static <IN,OUT> SingleOutputStreamOperator<OUT> unorderedWait(DataStream<IN> in, AsyncFunction<IN,OUT> func, long timeout, TimeUnit timeUnit, int capacity)
IN
- Type of input recordOUT
- Type of output recordin
- Input DataStream
func
- AsyncFunction
timeout
- for the asynchronous operation to completetimeUnit
- of the given timeoutcapacity
- The max number of async i/o operation that can be triggeredSingleOutputStreamOperator
.public static <IN,OUT> SingleOutputStreamOperator<OUT> unorderedWait(DataStream<IN> in, AsyncFunction<IN,OUT> func, long timeout, TimeUnit timeUnit)
IN
- Type of input recordOUT
- Type of output recordin
- Input DataStream
func
- AsyncFunction
timeout
- for the asynchronous operation to completetimeUnit
- of the given timeoutSingleOutputStreamOperator
.public static <IN,OUT> SingleOutputStreamOperator<OUT> orderedWait(DataStream<IN> in, AsyncFunction<IN,OUT> func, long timeout, TimeUnit timeUnit, int capacity)
IN
- Type of input recordOUT
- Type of output recordin
- Input DataStream
func
- AsyncFunction
timeout
- for the asynchronous operation to completetimeUnit
- of the given timeoutcapacity
- The max number of async i/o operation that can be triggeredSingleOutputStreamOperator
.public static <IN,OUT> SingleOutputStreamOperator<OUT> orderedWait(DataStream<IN> in, AsyncFunction<IN,OUT> func, long timeout, TimeUnit timeUnit)
IN
- Type of input recordOUT
- Type of output recordin
- Input DataStream
func
- AsyncFunction
timeout
- for the asynchronous operation to completetimeUnit
- of the given timeoutSingleOutputStreamOperator
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.