Class DelegatingAsyncResultFuture
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.calc.async.DelegatingAsyncResultFuture
-
- All Implemented Interfaces:
BiConsumer<Object,Throwable>
public class DelegatingAsyncResultFuture extends Object implements BiConsumer<Object,Throwable>
Inspired byDelegatingResultFutureforAsyncScalarFunction.
-
-
Constructor Summary
Constructors Constructor Description DelegatingAsyncResultFuture(org.apache.flink.streaming.api.functions.async.ResultFuture<Object> delegatedResultFuture, int totalResultSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Object o, Throwable throwable)voidaddAsyncIndex(int resultIndex)voidaddSynchronousResult(int resultIndex, Object object)CompletableFuture<?>createAsyncFuture(DataStructureConverter<Object,Object> converter)voidsetRowKind(org.apache.flink.types.RowKind rowKind)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Constructor Detail
-
DelegatingAsyncResultFuture
public DelegatingAsyncResultFuture(org.apache.flink.streaming.api.functions.async.ResultFuture<Object> delegatedResultFuture, int totalResultSize)
-
-
Method Detail
-
setRowKind
public void setRowKind(org.apache.flink.types.RowKind rowKind)
-
addSynchronousResult
public void addSynchronousResult(int resultIndex, Object object)
-
addAsyncIndex
public void addAsyncIndex(int resultIndex)
-
createAsyncFuture
public CompletableFuture<?> createAsyncFuture(DataStructureConverter<Object,Object> converter)
-
-