void collect(Collection<OUT> result)
Note that it should be called for exactly one time in the user code. Calling this function for multiple times will cause data lose.
result- A list of results.
void collect(Throwable error)
error- A Throwable object.
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.