Package org.apache.spark.rdd
Class AsyncRDDActions<T>
Object
org.apache.spark.rdd.AsyncRDDActions<T>
- All Implemented Interfaces:
- Serializable,- org.apache.spark.internal.Logging
public class AsyncRDDActions<T>
extends Object
implements Serializable, org.apache.spark.internal.Logging
A set of asynchronous RDD actions available through an implicit conversion.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.spark.internal.Loggingorg.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionFutureAction<scala.collection.immutable.Seq<T>>Returns a future for retrieving all elements of this RDD.Returns a future for counting the number of elements in the RDD.FutureAction<scala.runtime.BoxedUnit>foreachAsync(scala.Function1<T, scala.runtime.BoxedUnit> f) Applies a function f to all elements of this RDD.FutureAction<scala.runtime.BoxedUnit>foreachPartitionAsync(scala.Function1<scala.collection.Iterator<T>, scala.runtime.BoxedUnit> f) Applies a function f to each partition of this RDD.static scala.concurrent.ExecutionContextExecutorServiceFutureAction<scala.collection.immutable.Seq<T>>takeAsync(int num) Returns a future for retrieving the first num elements of the RDD.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.LogginginitializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
- 
Constructor Details- 
AsyncRDDActions
 
- 
- 
Method Details- 
futureExecutionContextpublic static scala.concurrent.ExecutionContextExecutorService futureExecutionContext()
- 
countAsyncReturns a future for counting the number of elements in the RDD.- Returns:
- (undocumented)
 
- 
collectAsyncReturns a future for retrieving all elements of this RDD.- Returns:
- (undocumented)
 
- 
takeAsyncReturns a future for retrieving the first num elements of the RDD.- Parameters:
- num- (undocumented)
- Returns:
- (undocumented)
 
- 
foreachAsyncpublic FutureAction<scala.runtime.BoxedUnit> foreachAsync(scala.Function1<T, scala.runtime.BoxedUnit> f) Applies a function f to all elements of this RDD.- Parameters:
- f- (undocumented)
- Returns:
- (undocumented)
 
- 
foreachPartitionAsyncpublic FutureAction<scala.runtime.BoxedUnit> foreachPartitionAsync(scala.Function1<scala.collection.Iterator<T>, scala.runtime.BoxedUnit> f) Applies a function f to each partition of this RDD.- Parameters:
- f- (undocumented)
- Returns:
- (undocumented)
 
 
-