ResultFuture

org.apache.flink.api.async.ResultFuture
@PublicEvolving
trait ResultFuture[OUT]

The result future collects data/errors from the user code while processing asynchronous I/O operations.

Attributes

OUT

type of the output element

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def complete(result: Iterable[OUT]): Unit

Complete the ResultFuture with a set of result elements.

Complete the ResultFuture with a set of result elements.

Note that it should be called for exactly one time in the user code. Calling this function for multiple times will cause data lose.

Put all results in a Iterable and then issue ResultFuture.complete(Iterable).

Attributes

result

to complete the async collector with

def completeExceptionally(throwable: Throwable): Unit

Complete this ResultFuture with an error.

Complete this ResultFuture with an error.

Attributes

throwable

to complete the async collector with