scala.collection.par.workstealing.IndexedStealer

IndexedKernel

trait IndexedKernel[T, R] extends Kernel[T, R]

Linear Supertypes
Kernel[T, R], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IndexedKernel
  2. Kernel
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(node: Node[T, R], chunkSize: Int): R

    Processes the specified chunk.

    Processes the specified chunk.

    Definition Classes
    Kernel
  2. abstract def combine(a: R, b: R): R

    Combines results from two chunks into the aggregate result.

    Combines results from two chunks into the aggregate result.

    Definition Classes
    Kernel
  3. abstract def zero: R

    The neutral element of the reduction.

    The neutral element of the reduction.

    Definition Classes
    Kernel

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def afterCreateRoot(tree: Ref[T, R]): Unit

    Initializes the workstealing tree root.

    Initializes the workstealing tree root.

    By default does nothing, but some kernels may choose to override this default behaviour.

    Definition Classes
    Kernel
  7. def afterExpand(old: Node[T, R], node: Node[T, R]): Unit

    Initializes a node that has just been stolen.

    Initializes a node that has just been stolen.

    By default does nothing, but some kernels may choose to override this default behaviour to store operation-specific information into the node.

    Definition Classes
    Kernel
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def beforeWorkOn(tree: Ref[T, R], node: Node[T, R]): Unit

    Initializes the workstealing tree node.

    Initializes the workstealing tree node.

    By default does nothing, but some kernels may choose to override this default behaviour to store operation-specific information into the node.

    Definition Classes
    Kernel
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def completeIteration(stealer: Stealer[T]): Unit

    Completes the iteration in the stealer.

    Completes the iteration in the stealer.

    Some parallel operations do not traverse all the elements in a chunk or a node. The purpose of this method is to bring the node into a Completed or Stolen state before proceeding.

    Attributes
    protected
    Definition Classes
    Kernel
  12. def completeNode(intermediate: R, tree: Ref[T, R], worker: WorkerTask): Boolean

    Completes the iteration in the node.

    Completes the iteration in the node.

    Some parallel operations do not traverse all the elements in a chunk or a node. The purpose of this method is to bring the node into a Completed or Stolen state before proceeding.

    Attributes
    protected
    Definition Classes
    Kernel
  13. def defaultIncrementStepFactor: Int

    Definition Classes
    Kernel
  14. def defaultIncrementStepFrequency: Int

    Definition Classes
    Kernel
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def incrementStepFactor(config: Config): Int

    Definition Classes
    Kernel
  21. def incrementStepFrequency(config: Config): Int

    Definition Classes
    Kernel
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def notTerminated: Boolean

    Returns true as long as terminationCause is null.

    Returns true as long as terminationCause is null.

    Definition Classes
    Kernel
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def pushUp(tree: Ref[T, R], worker: WorkerTask): Unit

    Pushes the result up the tree

    Pushes the result up the tree

    After completing node worker tryes to push the result up the tree, as far as he could

    Attributes
    protected
    Definition Classes
    Kernel
    Annotations
    @tailrec()
  28. final def setTerminationCause(tc: TerminationCause): Unit

    Definition Classes
    Kernel
    Annotations
    @tailrec()
  29. def storeIntermediateResult(node: Node[T, R], res: R): Unit

    Stores the result of processing the node into the lresult field.

    Stores the result of processing the node into the lresult field.

    This behaviour can be overridden.

    Definition Classes
    Kernel
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. val terminationCauseRef: AtomicReference[TerminationCause]

    Used for cancelling operations early (e.

    Used for cancelling operations early (e.g. due to exceptions). Holds information on why the operation failed

    Attributes
    protected
    Definition Classes
    Kernel
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def validateResult(r: R): R

    Returns the result if there was no early termination.

    Returns the result if there was no early termination. Otherwise may throw an exception based on the termination cause.

    Definition Classes
    Kernel
    Annotations
    @inline()
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def workOn(tree: Ref[T, R], config: Config, worker: WorkerTask): Boolean

    Returns true if completed with no stealing.

    Returns true if completed with no stealing. Returns false if steal occurred.

    May be overridden in subclass to specialize for better performance.

    Definition Classes
    IndexedKernelKernel

Inherited from Kernel[T, R]

Inherited from AnyRef

Inherited from Any

Ungrouped