com.nicta.scoobi.impl.plan.mscr

MscrsDefinition

trait MscrsDefinition extends Layering with Optimiser

This trait processes the computation graph created out of DLists and creates map-reduce jobs from it.

The algorithm consists in:

- building layers of independent nodes in the graph - finding the input nodes for the first layer - reaching "output" nodes from the input nodes - building output channels with those nodes - building input channels connecting the output to the input nodes - aggregating input and output channels as Mscr representing a full map reduce job - iterating on any processing node that is not part of a Mscr

Self Type
MscrsDefinition
Linear Supertypes
Optimiser, MemoRewriter, Rewriter, RewriterCore, Layering, ShowNode, CompNodes, GraphNodes, AttributionCore, Memoiser, AttributionCommon, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MscrsDefinition
  2. Optimiser
  3. MemoRewriter
  4. Rewriter
  5. RewriterCore
  6. Layering
  7. ShowNode
  8. CompNodes
  9. GraphNodes
  10. AttributionCore
  11. Memoiser
  12. AttributionCommon
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class CachedAttribute[T <: AnyRef, U] extends Attribute[T, U] with org.kiama.attribution.AttributionCore.IdMemoised[T, Option[U]]

    Definition Classes
    AttributionCore
  2. class CachedDynamicAttribute[T <: AnyRef, U] extends CachedAttribute[T, U]

    Definition Classes
    AttributionCore
  3. class CachedParamAttribute[A, T <: AnyRef, U] extends (A) ⇒ Attribute[T, U] with org.kiama.attribution.AttributionCore.Memoised[ParamAttributeKey, Option[U]]

    Definition Classes
    AttributionCore
  4. class CircularAttribute[T <: AnyRef, U] extends Attribute[T, U] with org.kiama.attribution.AttributionCore.IdMemoised[T, U]

    Definition Classes
    AttributionCore
  5. class ConstantAttribute[T <: AnyRef, U] extends Attribute[T, U]

    Definition Classes
    AttributionCommon
  6. trait IdMemoised[T, U] extends MemoisedBase[T, U]

    Definition Classes
    Memoiser
  7. case class Layer(mscrs: Seq[Mscr] = ...) extends Product with Serializable

    A layer contains group by keys and floating nodes defining mscrs so that none of them have dependencies relationship

  8. abstract class MemoStrategy extends Strategy with org.kiama.rewriting.MemoRewriter.IdMemoised[Any, Option[Any]]

    Definition Classes
    MemoRewriter
  9. trait Memoised[T, U] extends MemoisedBase[T, U]

    Definition Classes
    Memoiser
  10. trait MemoisedBase[T, U] extends AnyRef

    Definition Classes
    Memoiser
  11. type T = CompNode

    Definition Classes
    CompNodesGraphNodes

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. object Layer extends Serializable

    Definition Classes
    Layering
  7. def addParallelDoForNonFilledSinks: Strategy

    add a map to output values to non-filled sink nodes if there are some

    add a map to output values to non-filled sink nodes if there are some

    Definition Classes
    Optimiser
  8. def all(name: String, s: ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
  9. def all(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  10. def allMap[CC[V, W] <: Map[V, W]](s: Strategy, t: CC[Any, Any])(implicit cbf: CanBuildFrom[CC[Any, Any], (Any, Any), CC[Any, Any]]): Option[CC[Any, Any]]

    Definition Classes
    RewriterCore
  11. def allProduct(s: Strategy, p: Product): Option[Any]

    Definition Classes
    RewriterCore
  12. def allRewritable(s: Strategy, r: Rewritable): Option[Any]

    Definition Classes
    RewriterCore
  13. lazy val allSinks: CachedAttribute[CompNode, Seq[Sink]]

    collect all the sinks in the computation graph

    collect all the sinks in the computation graph

    Attributes
    protected
    Definition Classes
    CompNodes
  14. def allStrategies: Strategy

    all the strategies to apply, in sequence

    all the strategies to apply, in sequence

    Definition Classes
    Optimiser
  15. def allTraversable[CC[_] <: Traversable[Any]](s: Strategy, t: CC[Any])(implicit cbf: CanBuildFrom[CC[Any], Any, CC[Any]]): Option[CC[Any]]

    Definition Classes
    RewriterCore
  16. def allbu(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  17. def allbu(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  18. def alldownup2(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  19. def alldownup2(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  20. def alltd(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  21. def alltd(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  22. def alltdfold(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  23. def alltdfold(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  24. def and(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  25. def and(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  26. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  27. def attempt(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  28. def attempt(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  29. def attr[T <: AnyRef, U](name: String, f: (T) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
  30. def attr[T <: AnyRef, U](f: (T) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  31. def bottomup(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  32. def bottomup(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  33. def bottomupS(name: String, s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  34. def bottomupS(s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  35. def breadthfirst(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  36. def breadthfirst(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  37. def build(name: String, t: ⇒ Any): Strategy

    Definition Classes
    RewriterCore
  38. def build(t: Any): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  39. def bypassOutputChannels(layer: Seq[CompNode]): Seq[OutputChannel]

    returns

    the bypass output channels for a given layer

    Attributes
    protected
  40. def child(name: String, i: Int, s: ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
  41. def child(i: Int, s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  42. def childAttr[T <: Attributable, U](name: String, f: (T) ⇒ (Attributable) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
  43. def childAttr[T <: Attributable, U](f: (T) ⇒ (Attributable) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  44. def childProduct(s: Strategy, i: Int, p: Product): Option[Any]

    Definition Classes
    RewriterCore
  45. def childSeq[CC[U] <: Seq[U]](s: Strategy, i: Int, t: CC[Any])(implicit cbf: CanBuildFrom[CC[Any], Any, CC[Any]]): Option[CC[Any]]

    Definition Classes
    RewriterCore
  46. lazy val children: CachedAttribute[T, Seq[T]]

    compute the children of a node.

    compute the children of a node.

    This is similar to calling the initTree method on the node but this stores the information as an attribute instead of storing it as a tree. This is a way to avoid conflicts if we have 2 processes trying to initialise the same graph

    Definition Classes
    GraphNodes
  47. def circular[T <: AnyRef, U](name: String, init: U)(f: (T) ⇒ U): CircularAttribute[T, U]

    Definition Classes
    AttributionCore
  48. def circular[T <: AnyRef, U](init: U)(f: (T) ⇒ U): CircularAttribute[T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  49. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def collect[CC[U] <: Traversable[U], T](f: ==>[Any, T])(implicit cbf: CanBuildFrom[CC[T], T, CC[T]]): (Any) ⇒ CC[T]

    Definition Classes
    Rewriter
  51. def collectl[T](f: ==>[Any, T]): (Any) ⇒ List[T]

    Definition Classes
    Rewriter
  52. def collects[T](f: ==>[Any, T]): (Any) ⇒ Set[T]

    Definition Classes
    Rewriter
  53. def combineToParDo: Strategy

    Combine nodes which are not the output of a GroupByKey must be transformed to a ParallelDo

    Combine nodes which are not the output of a GroupByKey must be transformed to a ParallelDo

    Definition Classes
    Optimiser
  54. def congruence(name: String, ss: Strategy*): Strategy

    Definition Classes
    RewriterCore
  55. def congruence(ss: Strategy*): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  56. def congruenceProduct(p: Product, ss: Strategy*): Option[Any]

    Definition Classes
    RewriterCore
  57. def constant[T <: AnyRef, U](name: String, u: ⇒ U): Attribute[T, U]

    Definition Classes
    AttributionCommon
  58. def constant[T <: AnyRef, U](u: ⇒ U): Attribute[T, U]

    Definition Classes
    AttributionCommon
    Annotations
    @macroImpl( ... )
  59. val constrcache: WeakHashMap[Class[_], Constructor[_]]

    Attributes
    protected
    Definition Classes
    RewriterCore
  60. def count(f: ==>[Any, Int]): (Any) ⇒ Int

    Definition Classes
    Rewriter
  61. def createInputOutputLayer(inputNodes: Seq[CompNode], visited: Seq[CompNode]): Seq[CompNode]

    get all the non-visited nodes going from an input nodes to an output

    get all the non-visited nodes going from an input nodes to an output

    Attributes
    protected
  62. def createMapReduceLayers(start: CompNode): Seq[Layer]

    create layers of MapReduce jobs from the computation graph defined by the start node where each layer contains independent map reduce jobs

  63. def createMscrs(inputOutputLayer: Seq[CompNode]): Layer

    find the input and output channels on the layer, assemble them into Mscrs when they have common tags

    find the input and output channels on the layer, assemble them into Mscrs when they have common tags

    Attributes
    protected
  64. def createMscrs(inputNodes: Seq[CompNode], visited: Seq[CompNode]): Layer

    create a layer of Mscrs from input nodes, making sure not to use already visited nodes

    create a layer of Mscrs from input nodes, making sure not to use already visited nodes

    Attributes
    protected
  65. def debug(name: String, msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
  66. def debug(msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  67. lazy val descendents: CachedAttribute[T, Seq[T]]

    compute all the descendents of a node They are all the recursive children reachable from this node

    compute all the descendents of a node They are all the recursive children reachable from this node

    Definition Classes
    GraphNodes
  68. lazy val descendentsUntil: CachedParamAttribute[(T) ⇒ Boolean, T, Seq[T]]

    Definition Classes
    GraphNodes
  69. def doloop(name: String, s: Strategy, r: Strategy): Strategy

    Definition Classes
    Rewriter
  70. def doloop(s: Strategy, r: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  71. def dontstop(s: ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  72. def downup(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  73. def downup(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  74. def downup(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  75. def downup(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  76. def downupS(name: String, s1: Strategy, s2: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  77. def downupS(name: String, s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  78. def downupS(s1: Strategy, s2: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  79. def downupS(s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  80. def dup[T <: Product](t: T, children: Seq[AnyRef]): T

    Attributes
    protected
    Definition Classes
    RewriterCore
  81. lazy val duplicate: (CompNode) ⇒ CompNode

    duplicate the whole graph by copying all nodes

    duplicate the whole graph by copying all nodes

    Definition Classes
    Optimiser
  82. def dynAttr[T <: AnyRef, U](name: String, f: (T) ⇒ U): CachedDynamicAttribute[T, U]

    Definition Classes
    AttributionCore
  83. def dynAttr[T <: AnyRef, U](f: (T) ⇒ U): CachedDynamicAttribute[T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  84. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  85. val eq: Strategy

    Definition Classes
    Rewriter
  86. val equal: Strategy

    Definition Classes
    Rewriter
  87. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  88. def everything[T](v: T)(f: (T, T) ⇒ T)(g: ==>[Any, T])(t: Any): T

    Definition Classes
    Rewriter
  89. def everywhere(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  90. def everywhere(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  91. def everywherebu(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  92. def everywherebu(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  93. def everywheretd(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  94. def everywheretd(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  95. val fail: Strategy

    Definition Classes
    RewriterCore
  96. lazy val filledSink: CachedAttribute[String, String]

    this attribute stores the fact that a Sink has received data

    this attribute stores the fact that a Sink has received data

    Attributes
    protected
    Definition Classes
    CompNodes
  97. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  98. def floatingInputChannels(layer: Seq[CompNode]): Seq[FloatingInputChannel]

    Attributes
    protected
  99. def gbkInputChannels(layer: Seq[CompNode]): Seq[GbkInputChannel]

    Attributes
    protected
  100. def gbkOutputChannel(gbk: GroupByKey): GbkOutputChannel

    returns

    a gbk output channel based on the nodes which are following the gbk

    Attributes
    protected
  101. def gbkOutputChannels(layer: Seq[CompNode]): Seq[OutputChannel]

    Attributes
    protected
  102. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  103. def groupInputChannelsByOutputTags(layer: Seq[CompNode]): Seq[Seq[InputChannel]]

    returns

    groups of input channels having the same output tags

    Attributes
    protected
  104. lazy val hasBeenFilled: (Sink) ⇒ Boolean

    returns

    true if a given Sink has already received data

    Attributes
    protected
    Definition Classes
    CompNodes
  105. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  106. val id: Strategy

    Definition Classes
    RewriterCore
  107. def initAttributable[S <: T](s: S): S

    initialise the parent/child relationship recursively from node s

    initialise the parent/child relationship recursively from node s

    Definition Classes
    GraphNodes
  108. def initTree[T <: Attributable](t: T): Unit

    Definition Classes
    AttributionCommon
  109. def innermost(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  110. def innermost(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  111. def innermost2(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  112. def innermost2(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  113. def inputChannels(layer: Seq[CompNode]): Seq[InputChannel]

    Attributes
    protected
  114. def inputNodes(nodes: Seq[ProcessNode]): Seq[CompNode]

    returns

    Process or Load nodes which are children of the nodes parameters but not included in the group these "input nodes" don't include Return nodes or Op nodes because those inputs are retrieved via environments

    Attributes
    protected
  115. lazy val inputs: CachedAttribute[CompNode, Seq[CompNode]]

    compute the inputs of a given node For a ParallelDo node this does not consider its environment

    compute the inputs of a given node For a ParallelDo node this does not consider its environment

    Definition Classes
    CompNodes
  116. implicit def internalToDynamicAttribute[T <: AnyRef, U](f: (T) ⇒ U): CachedDynamicAttribute[T, U]

    Definition Classes
    AttributionCore
  117. def ior(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  118. def ior(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  119. lazy val isAReducer: (CompNode) ⇒ Boolean

    Attributes
    protected
  120. def isAnInputNode(nodes: Seq[CompNode]): (CompNode) ⇒ Boolean

    returns

    true if a node is an input node for a given layer

    Attributes
    protected
  121. def isAnOutputNode: (CompNode) ⇒ Boolean

    returns

    true if a node is a candidate for outputing values

    Attributes
    protected
  122. def isCheckpoint: (CompNode) ⇒ Boolean

    Attributes
    protected
  123. lazy val isCyclic: CachedAttribute[T, Boolean]

    return true if a CompNode has a cycle in its graph, this will be detected by Kiama throwing an exception when fetching the descendents of a node

    return true if a CompNode has a cycle in its graph, this will be detected by Kiama throwing an exception when fetching the descendents of a node

    Definition Classes
    GraphNodes
  124. def isEndNode: (CompNode) ⇒ Boolean

    node at the end of the graph

    node at the end of the graph

    Attributes
    protected
  125. def isGbkOutput: (CompNode) ⇒ Boolean

    Attributes
    protected
  126. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  127. def isMaterialised: (CompNode) ⇒ Boolean

    Attributes
    protected
  128. lazy val isReducer: (ParallelDo) ⇒ Boolean

    Attributes
    protected
  129. def isReducingNode: (CompNode) ⇒ Boolean

    a node is said to be reducing if it is in a "reducing chain of nodes" after a gbk

    a node is said to be reducing if it is in a "reducing chain of nodes" after a gbk

    • parallelDo(combine(gbk)) // parallelDo and combine are reducing
    • combine(gbk) // combine is reducing
    • parallelDo(gbk) // parallelDo is reducing
    returns

    Attributes
    protected
  130. lazy val isUsedAtMostOnce: CachedAttribute[T, Boolean]

    true if a node is used at most once

    true if a node is used at most once

    Definition Classes
    GraphNodes
  131. val isinnernode: Strategy

    Definition Classes
    Rewriter
  132. val isleaf: Strategy

    Definition Classes
    Rewriter
  133. val ispropersubterm: Strategy

    Definition Classes
    Rewriter
  134. val ispropersuperterm: Strategy

    Definition Classes
    Rewriter
  135. val issubterm: Strategy

    Definition Classes
    Rewriter
  136. val issuperterm: Strategy

    Definition Classes
    Rewriter
  137. def lastly(name: String, s: Strategy, f: Strategy): Strategy

    Definition Classes
    Rewriter
  138. def lastly(s: Strategy, f: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  139. def layersOf(nodes: Seq[T], select: (T) ⇒ Boolean = (n: T) => true): Seq[Seq[T]]

    Definition Classes
    Layering
  140. def leaves(name: String, s: Strategy, isleaf: Strategy, skip: (Strategy) ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  141. def leaves(name: String, s: Strategy, isleaf: Strategy): Strategy

    Definition Classes
    Rewriter
  142. def leaves(s: Strategy, isleaf: Strategy, skip: (Strategy) ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  143. def leaves(s: Strategy, isleaf: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  144. def log(name: String, s: ⇒ Strategy, msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
  145. def log(s: Strategy, msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  146. def logfail[T](name: String, s: ⇒ Strategy, msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
  147. def logfail[T](s: Strategy, msg: String, emitter: Emitter): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  148. lazy val longestPathSizeTo: (Seq[CompNode]) ⇒ (CompNode) ⇒ Int

    Definition Classes
    Layering
  149. lazy val longestPathSizeToNode: (CompNode) ⇒ (CompNode) ⇒ Int

    Definition Classes
    Layering
  150. lazy val longestPathToNode: (CompNode) ⇒ (CompNode) ⇒ Seq[CompNode]

    Definition Classes
    Layering
  151. def loop(name: String, c: Strategy, s: Strategy): Strategy

    Definition Classes
    Rewriter
  152. def loop(r: Strategy, s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  153. def loopiter(name: String, s: (Int) ⇒ Strategy, low: Int, high: Int): Strategy

    Definition Classes
    Rewriter
  154. def loopiter(name: String, i: Strategy, r: Strategy, s: Strategy): Strategy

    Definition Classes
    Rewriter
  155. def loopiter(s: (Int) ⇒ Strategy, low: Int, high: Int): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  156. def loopiter(i: Strategy, r: Strategy, s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  157. def loopnot(name: String, r: Strategy, s: Strategy): Strategy

    Definition Classes
    Rewriter
  158. def loopnot(r: Strategy, s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  159. def makechild(c: Any): AnyRef

    Attributes
    protected
    Definition Classes
    RewriterCore
  160. def manybu(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  161. def manybu(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  162. def manytd(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  163. def manytd(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  164. def map(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  165. def map(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  166. def markSinkAsFilled: (Sink) ⇒ String

    mark a sink as filled so it doesn't have to be recomputed

    mark a sink as filled so it doesn't have to be recomputed

    Attributes
    protected
    Definition Classes
    CompNodes
  167. def memo(name: String, s: ⇒ Strategy): Strategy

    Definition Classes
    MemoRewriter → RewriterCore
  168. def memo(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  169. def mkStrategy(name: String, f: (Any) ⇒ Option[Any]): Strategy

    Definition Classes
    MemoRewriter → RewriterCore
  170. def mustBeRead(pd: ParallelDo): Boolean

    returns

    true if this parallelDo must be read ==> can't be fused

    Definition Classes
    Optimiser
  171. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  172. lazy val nodeHasBeenFilled: (CompNode) ⇒ Boolean

    returns

    true if a process node has been filled

    Attributes
    protected
    Definition Classes
    CompNodes
  173. def not(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  174. def not(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  175. final def notify(): Unit

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

    Definition Classes
    AnyRef
  177. def oncebu(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  178. def oncebu(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  179. def oncetd(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  180. def oncetd(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  181. def one(name: String, s: ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
  182. def one(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  183. def oneMap[CC[V, W] <: Map[V, W]](s: Strategy, t: CC[Any, Any])(implicit cbf: CanBuildFrom[CC[Any, Any], (Any, Any), CC[Any, Any]]): Option[CC[Any, Any]]

    Definition Classes
    RewriterCore
  184. def oneProduct(s: Strategy, p: Product): Option[Any]

    Definition Classes
    RewriterCore
  185. def oneRewritable(s: Strategy, r: Rewritable): Option[Any]

    Definition Classes
    RewriterCore
  186. def oneTraversable[CC[U] <: Traversable[U]](s: Strategy, t: CC[Any])(implicit cbf: CanBuildFrom[CC[Any], Any, CC[Any]]): Option[CC[Any]]

    Definition Classes
    RewriterCore
  187. def optimise(outputs: Seq[CompNode]): Seq[CompNode]

    Optimise a set of CompNodes, starting from the set of outputs

    Optimise a set of CompNodes, starting from the set of outputs

    Definition Classes
    Optimiser
  188. def option(name: String, o: ⇒ Option[Any]): Strategy

    Definition Classes
    RewriterCore
  189. def option(o: Option[Any]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  190. def or(name: String, s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    Rewriter
  191. def or(s1: Strategy, s2: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  192. def outermost(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  193. def outermost(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  194. def outputChannels(layer: Seq[CompNode]): Seq[OutputChannel]

    returns

    all output channels for a given layer

    Attributes
    protected
  195. def parDoFuse: Strategy

    Nested ParallelDos must be fused but only if pd1 is not used anywhere else.

    Nested ParallelDos must be fused but only if pd1 is not used anywhere else.

    We use somebu to fuse the nodes "bottom-up" starting from all leaves of the tree at the same time

    pd1 @ ParallelDo | pd2 @ ParallelDo

    > pd3 @ ParallelDo

    This rule is repeated until nothing can be fused anymore

    Definition Classes
    Optimiser
  196. def parDoFuseRule: Strategy

    Definition Classes
    Optimiser
  197. def para[T](f: (Any, Seq[T]) ⇒ T): (Any) ⇒ T

    Definition Classes
    RewriterCore
  198. def paramAttr[V, T <: AnyRef, U](name: String, f: (V) ⇒ (T) ⇒ U): CachedParamAttribute[V, T, U]

    Definition Classes
    AttributionCore
  199. def paramAttr[V, T <: AnyRef, U](f: (V) ⇒ (T) ⇒ U): CachedParamAttribute[V, T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  200. lazy val parent: CachedAttribute[T, Option[T]]

    compute the parent of a node.

    compute the parent of a node. This relationship is actually maintained while getting the children of a node if the parent node has not been set while recursing for children, then it is None

    Definition Classes
    GraphNodes
  201. lazy val parents: CachedAttribute[T, Seq[T]]

    compute the parents of a node, that is all the chain of parents from this node up to the root of the graph

    compute the parents of a node, that is all the chain of parents from this node up to the root of the graph

    Definition Classes
    GraphNodes
  202. lazy val pathsToNode: (CompNode) ⇒ (CompNode) ⇒ Seq[Seq[CompNode]]

    Definition Classes
    Layering
  203. def pretty(node: CompNode): (prettyPrinter)#Layout

    returns

    a nested text representation of the nodes graph

    Definition Classes
    ShowNode
  204. def prettyGraph: (CompNode) ⇒ (prettyPrinter)#Layout

    returns

    a nested text representation of the nodes graph + graph if it's not too big

    Definition Classes
    ShowNode
  205. val prettyPrinter: PrettyPrinter

    Definition Classes
    ShowNode
  206. def processLayers(startNodes: Seq[CompNode], visited: Seq[CompNode]): Seq[Seq[ProcessNode]]

    returns

    non-empty layers of processing nodes

    Attributes
    protected
  207. def query[T](name: String, f: ==>[Any, T]): Strategy

    Definition Classes
    RewriterCore
  208. def query[T](f: ==>[Any, T]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  209. def queryf[T](name: String, f: (Any) ⇒ T): Strategy

    Definition Classes
    RewriterCore
  210. def queryf[T](f: (Any) ⇒ T): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  211. def reduce(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  212. def reduce(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  213. def reinit[S <: T](s: S): S

    reinitialise all the attributes related to a node, starting from all the parent/children relationships

    reinitialise all the attributes related to a node, starting from all the parent/children relationships

    reset the attributes, then recreate the parent/children relationships recursively

    Definition Classes
    GraphNodes
  214. def repeat(name: String, s: Strategy, n: Int): Strategy

    Definition Classes
    Rewriter
  215. def repeat(name: String, s: Strategy, r: Strategy): Strategy

    Definition Classes
    Rewriter
  216. def repeat(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  217. def repeat(s: Strategy, n: Int): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  218. def repeat(s: Strategy, r: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  219. def repeat(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  220. def repeat1(name: String, s: Strategy, r: Strategy): Strategy

    Definition Classes
    Rewriter
  221. def repeat1(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  222. def repeat1(s: Strategy, r: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  223. def repeat1(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  224. def repeatTraversal(traversal: (String, Strategy) ⇒ Strategy, s: Strategy): Strategy

    apply a traversal strategy but make sure that:

    apply a traversal strategy but make sure that:

    - after each pass the tree is reset in terms of attributable relationships and uses - the strategy to execute is memoised, i.e. if a node has already been processed its result must be reused this ensures that rewritten shared nodes are not duplicated

    Definition Classes
    Optimiser
  225. def repeatuntil(name: String, s: Strategy, r: Strategy): Strategy

    Definition Classes
    Rewriter
  226. def repeatuntil(s: Strategy, r: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  227. def resetMemo(): Unit

    Definition Classes
    Memoiser
  228. def resetUses: Unit

    reinit usages

    reinit usages

    Attributes
    protected
    Definition Classes
    GraphNodes
  229. def restore(name: String, s: Strategy, rest: Strategy): Strategy

    Definition Classes
    Rewriter
  230. def restore(s: Strategy, rest: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  231. def restorealways(name: String, s: Strategy, rest: Strategy): Strategy

    Definition Classes
    Rewriter
  232. def restorealways(s: Strategy, rest: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  233. def rewrite[T](s: Strategy)(t: T): T

    Definition Classes
    Rewriter
  234. lazy val root: CachedAttribute[T, T]

    the root of the graph, computed from a given node

    the root of the graph, computed from a given node

    Definition Classes
    GraphNodes
  235. def rule(name: String, f: ==>[Any, Any]): Strategy

    Definition Classes
    RewriterCore
  236. def rule(f: ==>[Any, Any]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  237. def rulef(name: String, f: (Any) ⇒ Any): Strategy

    Definition Classes
    RewriterCore
  238. def rulef(f: (Any) ⇒ Any): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  239. def rulefs(name: String, f: ==>[Any, Strategy]): Strategy

    Definition Classes
    RewriterCore
  240. def rulefs(f: ==>[Any, Strategy]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  241. def same(v1: Any, v2: Any): Boolean

    Attributes
    protected
    Definition Classes
    RewriterCore
  242. lazy val shortestPathToNode: (CompNode) ⇒ (CompNode) ⇒ Seq[CompNode]

    Definition Classes
    Layering
  243. implicit lazy val showCompNode: Show[CompNode]

    Show instance for a CompNode

    Show instance for a CompNode

    Definition Classes
    ShowNode
  244. implicit def showCompNodeInstance[T <: CompNode]: Show[T]

    Show is not covariant so it is necessary to add this implicit to prove that we can show subclasses of CompNode

    Show is not covariant so it is necessary to add this implicit to prove that we can show subclasses of CompNode

    Definition Classes
    ShowNode
  245. lazy val showStructure: (CompNode) ⇒ String

    show the structure without the ids or type annotations

    show the structure without the ids or type annotations

    Definition Classes
    ShowNode
  246. def some(name: String, s: ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
  247. def some(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  248. def someMap[CC[V, W] <: Map[V, W]](s: Strategy, t: CC[Any, Any])(implicit cbf: CanBuildFrom[CC[Any, Any], (Any, Any), CC[Any, Any]]): Option[CC[Any, Any]]

    Definition Classes
    RewriterCore
  249. def someProduct(s: Strategy, p: Product): Option[Any]

    Definition Classes
    RewriterCore
  250. def someRewritable(s: Strategy, r: Rewritable): Option[Any]

    Definition Classes
    RewriterCore
  251. def someTraversable[CC[U] <: Traversable[U]](s: Strategy, t: CC[Any])(implicit cbf: CanBuildFrom[CC[Any], Any, CC[Any]]): Option[CC[Any]]

    Definition Classes
    RewriterCore
  252. def somebu(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  253. def somebu(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  254. def somedownup(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  255. def somedownup(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  256. def sometd(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  257. def sometd(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  258. def strategy(name: String, f: ==>[Any, Option[Any]]): Strategy

    Definition Classes
    RewriterCore
  259. def strategy(f: ==>[Any, Option[Any]]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  260. def strategyf(name: String, f: (Any) ⇒ Option[Any]): Strategy

    Definition Classes
    RewriterCore
  261. def strategyf(f: (Any) ⇒ Option[Any]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  262. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  263. def term(name: String, t: Any): Strategy

    Definition Classes
    RewriterCore
  264. def term(t: Any): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  265. def test(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  266. def test(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  267. def toString(): String

    Definition Classes
    AnyRef → Any
  268. def topdown(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  269. def topdown(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  270. def topdownS(name: String, s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    Rewriter
  271. def topdownS(s: Strategy, stop: (⇒ Strategy) ⇒ Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  272. lazy val transitiveUses: CachedAttribute[T, Set[T]]

    compute all the indirect uses of a given node, that is all the nodes which have this node as a descendent

    compute all the indirect uses of a given node, that is all the nodes which have this node as a descendent

    Definition Classes
    GraphNodes
  273. def traverseOncebu(s: Strategy): Strategy

    Definition Classes
    Optimiser
  274. def traverseSomebu(s: Strategy): Strategy

    Definition Classes
    Optimiser
  275. def traverseSometd(s: Strategy): Strategy

    Definition Classes
    Optimiser
  276. def tree[T <: Attributable, U <: Attributable](name: String, f: (T) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
  277. def tree[T <: Attributable, U <: Attributable](f: (T) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  278. def truncate(node: CompNode)(condition: (Any) ⇒ Boolean): CompNode

    remove nodes from the tree based on a predicate

    remove nodes from the tree based on a predicate

    Definition Classes
    Optimiser
  279. def truncateAlreadyExecutedNodes(node: CompNode)(implicit sc: ScoobiConfiguration): CompNode

    Definition Classes
    Optimiser
  280. lazy val uses: CachedAttribute[T, Set[T]]

    the nodes which have this node as a direct child

    the nodes which have this node as a direct child

    for efficiency, this uses a table of all the nodes using a given one, computed from the root

    Definition Classes
    GraphNodes
  281. def usesAsEnvironment: CachedAttribute[CompNode, Seq[ParallelDo]]

    compute all the nodes which use a given node as an environment

    compute all the nodes which use a given node as an environment

    Definition Classes
    CompNodes
  282. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  285. def where(name: String, s: Strategy): Strategy

    Definition Classes
    Rewriter
  286. def where(s: Strategy): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )

Inherited from Optimiser

Inherited from MemoRewriter

Inherited from Rewriter

Inherited from RewriterCore

Inherited from Layering

Inherited from ShowNode

Inherited from CompNodes

Inherited from GraphNodes

Inherited from AttributionCore

Inherited from Memoiser

Inherited from AttributionCommon

Inherited from AnyRef

Inherited from Any

Ungrouped