JavaResultFutureWrapper

org.apache.flink.api.async.JavaResultFutureWrapper
@Internal
class JavaResultFutureWrapper[OUT](val javaResultFuture: ResultFuture[OUT]) extends ResultFuture[OUT]

Internal wrapper class to map a Flink's Java API org.apache.flink.streaming.api.functions.async.ResultFuture to a Scala org.apache.flink.api.async.ResultFuture.

Attributes

OUT

type of the output elements

javaResultFuture

to forward the calls to

Graph
Supertypes
trait ResultFuture[OUT]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override 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

Definition Classes
override 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

Definition Classes

Concrete fields

val javaResultFuture: ResultFuture[OUT]