trait ConcurrentContext extends AnyRef
TaskLevelConcurrentContext is used to control a multithreaded context within a Spark Task.
- Alphabetic
- By Inheritance
- ConcurrentContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
ec: ExecutionContext
We allow implementations to define the ExecutionContext to be used.
We allow implementations to define the ExecutionContext to be used.
- returns
ExecutionContext to be used when spawning new threads.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
async[A](task: ⇒ A): Future[A]
Wraps a block within a concurrent tasks
Wraps a block within a concurrent tasks
- A
Result type of the passed in block.
- task
Block to be executed in concurrently.
- returns
A concurrent task, that is a Future[A].
-
def
awaitSliding[A](it: Iterator[Future[A]], batchSize: Int = 20): Iterator[A]
Awaits for multiple concurrent tasks using a sliding windows so we don't have to hold all task results in memory at once.
Awaits for multiple concurrent tasks using a sliding windows so we don't have to hold all task results in memory at once.
- A
Result type of each concurrent task.
- it
Iterator of concurrent tasks.
- batchSize
The number of concurrent tasks we want to wait at a time.
- returns
An iterator that contains the result of executing each concurrent task.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated