Package org.apache.spark.partial
Class PartialResult<R>
Object
org.apache.spark.partial.PartialResult<R>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionBlocking method to wait for and return the final value.boolean<T> PartialResult<T>Transform this PartialResult into a PartialResult of type T.onComplete(scala.Function1<R, scala.runtime.BoxedUnit> handler) Set a handler to be called when this PartialResult completes.voidSet a handler to be called if this PartialResult's job fails.toString()
- 
Constructor Details- 
PartialResult
 
- 
- 
Method Details- 
getFinalValueBlocking method to wait for and return the final value.- Returns:
- (undocumented)
 
- 
initialValue
- 
isInitialValueFinalpublic boolean isInitialValueFinal()
- 
mapTransform this PartialResult into a PartialResult of type T.- Parameters:
- f- (undocumented)
- Returns:
- (undocumented)
 
- 
onCompleteSet a handler to be called when this PartialResult completes. Only one completion handler is supported per PartialResult.- Parameters:
- handler- (undocumented)
- Returns:
- (undocumented)
 
- 
onFailSet a handler to be called if this PartialResult's job fails. Only one failure handler is supported per PartialResult.- Parameters:
- handler- (undocumented)
 
- 
toString
 
-