JavaResultFutureWrapper

org.apache.flinkx.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.

Type parameters

OUT

type of the output elements

Value parameters

javaResultFuture

to forward the calls to

Attributes

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

Members list

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).

Value parameters

result

to complete the async collector with

Attributes

Definition Classes
override def completeExceptionally(throwable: Throwable): Unit

Complete this ResultFuture with an error.

Complete this ResultFuture with an error.

Value parameters

throwable

to complete the async collector with

Attributes

Definition Classes

Concrete fields

val javaResultFuture: ResultFuture[OUT]