|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.partial.PartialResult<R>
public class PartialResult<R>
| Constructor Summary | |
|---|---|
PartialResult(R initialVal,
boolean isFinal)
|
|
| Method Summary | ||
|---|---|---|
R |
getFinalValue()
Blocking method to wait for and return the final value. |
|
R |
initialValue()
|
|
boolean |
isInitialValueFinal()
|
|
|
map(scala.Function1<R,T> f)
Transform this PartialResult into a PartialResult of type T. |
|
PartialResult<R> |
onComplete(scala.Function1<R,scala.runtime.BoxedUnit> handler)
Set a handler to be called when this PartialResult completes. |
|
void |
onFail(scala.Function1<Exception,scala.runtime.BoxedUnit> handler)
Set a handler to be called if this PartialResult's job fails. |
|
String |
toString()
|
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartialResult(R initialVal,
boolean isFinal)
| Method Detail |
|---|
public R initialValue()
public boolean isInitialValueFinal()
public R getFinalValue()
public PartialResult<R> onComplete(scala.Function1<R,scala.runtime.BoxedUnit> handler)
handler - (undocumented)
public void onFail(scala.Function1<Exception,scala.runtime.BoxedUnit> handler)
handler - (undocumented)public <T> PartialResult<T> map(scala.Function1<R,T> f)
f - (undocumented)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||