Interface KastResultFuture
-
public interface KastResultFuture
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete(Collection<KastRow> kastRows)Completes the result future with a collection of result objects.voidcompleteExceptionally(Throwable throwable)Completes the result future exceptionally with an exception.
-
-
-
Method Detail
-
complete
void complete(Collection<KastRow> kastRows)
Completes the result future with a collection of result objects.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
Collectionand then emit output.- Parameters:
kastRows- A list of results.
-
completeExceptionally
void completeExceptionally(Throwable throwable)
Completes the result future exceptionally with an exception.- Parameters:
throwable- A Throwable object.
-
-