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, U] extends Attribute[T, U] with org.kiama.attribution.AttributionCore.IdMemoised[T, Option[U]]

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

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

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

    Definition Classes
    AttributionCore
  5. class ConstantAttribute[T, 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[U] <: Traversable[U]](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, U](name: String, f: (T) ⇒ U): CachedAttribute[T, U]

    Definition Classes
    AttributionCore
  30. def attr[T, 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], graph: Graph): 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, U](name: String, init: U)(f: (T) ⇒ U): CircularAttribute[T, U]

    Definition Classes
    AttributionCore
  48. def circular[T, 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[X] <: Traversable[X], U](f: ==>[Any, U])(implicit cbf: CanBuildFrom[CC[Any], U, CC[U]]): (Any) ⇒ CC[U]

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  51. def collectWithName[CC[X] <: Traversable[X], U](name: String, f: ==>[Any, U])(implicit cbf: CanBuildFrom[CC[Any], U, CC[U]]): (Any) ⇒ CC[U]

    Definition Classes
    Rewriter
  52. def collectall[CC[X] <: Traversable[X], U](f: ==>[Any, CC[U]])(implicit cbf: CanBuildFrom[CC[Any], U, CC[U]]): (Any) ⇒ CC[U]

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  53. def collectallWithName[CC[X] <: Traversable[X], U](name: String, f: ==>[Any, CC[U]])(implicit cbf: CanBuildFrom[CC[Any], U, CC[U]]): (Any) ⇒ CC[U]

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

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

    Definition Classes
    Rewriter
  56. 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
  57. def congruence(name: String, ss: Strategy*): Strategy

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

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

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

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

    Definition Classes
    AttributionCommon
    Annotations
    @macroImpl( ... )
  62. def count(name: String, f: ==>[Any, Int]): (Any) ⇒ Int

    Definition Classes
    Rewriter
  63. def count(f: ==>[Any, Int]): (Any) ⇒ Int

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  64. 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
  65. def createMscr(inputOutputLayer: Seq[CompNode], graph: Graph): Mscr

    find the input and output channels on the layer and create a Mscr from those channels

    find the input and output channels on the layer and create a Mscr from those channels

    Attributes
    protected
  66. def createMscr(inputNodes: Seq[CompNode], visited: Seq[CompNode], graph: Graph): Mscr

    create a Mscr from input nodes, making sure not to use already visited nodes

    create a Mscr from input nodes, making sure not to use already visited nodes

    Attributes
    protected
  67. def createMscrs(startNodes: Seq[CompNode], graph: Graph, visited: Seq[CompNode] = Vector()): Seq[Mscr]

    From start nodes in the graph and the list of already visited nodes, create new MapReduce jobs

  68. def createMscrs(start: CompNode): Seq[Mscr]

    create MapReduce jobs from the computation graph defined by the start node where each map reduce job is independent for the next map reduce jobs in the list

  69. def debug(name: String, msg: String, emitter: Emitter): Strategy

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  71. 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
  72. lazy val descendentsUntil: CachedParamAttribute[(T) ⇒ Boolean, T, Seq[T]]

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    RewriterCore
  85. lazy val duplicate: (CompNode) ⇒ CompNode

    duplicate the whole graph by copying all nodes

    duplicate the whole graph by copying all nodes

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

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

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

    Definition Classes
    AnyRef
  89. val eq: Strategy

    Definition Classes
    Rewriter
  90. val equal: Strategy

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    RewriterCore
  101. 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
  102. def finalize(): Unit

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

    Attributes
    protected
  104. def gbkInputChannels(layer: Seq[CompNode], graph: Graph): Seq[GbkInputChannel]

    Attributes
    protected
  105. def gbkOutputChannel(gbk: GroupByKey, graph: Graph): GbkOutputChannel

    returns

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

    Attributes
    protected
  106. def gbkOutputChannels(layer: Seq[CompNode], graph: Graph): Seq[OutputChannel]

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

    Definition Classes
    AnyRef → Any
  108. def groupInputChannelsByOutputTags(layer: Seq[CompNode], graph: Graph): Seq[Seq[InputChannel]]

    returns

    groups of input channels having at least one output tag in common

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

    returns

    true if a given Sink has already received data

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

    Definition Classes
    AnyRef → Any
  111. val id: Strategy

    Definition Classes
    RewriterCore
  112. 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
  113. def initTree[T <: Attributable](t: T): Unit

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  118. def inputChannels(layer: Seq[CompNode], graph: Graph): Seq[InputChannel]

    Attributes
    protected
  119. 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
  120. 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
  121. implicit def internalToDynamicAttribute[T, U](f: (T) ⇒ U): CachedDynamicAttribute[T, U]

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

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

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

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

    returns

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

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

    returns

    true if a node is a candidate for outputing values

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

    Attributes
    protected
  128. 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
  129. def isDefinedAtArg[T](anyf: ==>[Any, T], t: Any): Boolean

    Definition Classes
    RewriterCore
  130. def isEndNode: (CompNode) ⇒ Boolean

    node at the end of the graph

    node at the end of the graph

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

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

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

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

    Attributes
    protected
  135. 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
  136. 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
  137. val isinnernode: Strategy

    Definition Classes
    Rewriter
  138. val isleaf: Strategy

    Definition Classes
    Rewriter
  139. val ispropersubterm: Strategy

    Definition Classes
    Rewriter
  140. val ispropersuperterm: Strategy

    Definition Classes
    Rewriter
  141. val issubterm: Strategy

    Definition Classes
    Rewriter
  142. val issuperterm: Strategy

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  145. def layersOf(nodes: Seq[T]): Seq[Seq[T]]

    Specialisation of the layersOf function taking a selection function in the case where all nodes are selected

    Specialisation of the layersOf function taking a selection function in the case where all nodes are selected

    Definition Classes
    Layering
  146. def layersOf(nodes: Seq[T], select: (T) ⇒ Boolean = (n: T) => true): Seq[Seq[T]]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  173. 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
  174. def memo(name: String, s: ⇒ Strategy): Strategy

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

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

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

    returns

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

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

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

    returns

    true if a process node has been filled

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  190. 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
  191. def oneProduct(s: Strategy, p: Product): Option[Any]

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

    Definition Classes
    RewriterCore
  193. 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
  194. 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
  195. def option(name: String, o: ⇒ Option[Any]): Strategy

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  201. def outputChannels(layer: Seq[CompNode], graph: Graph): Seq[OutputChannel]

    returns

    all output channels for a given layer

    Attributes
    protected
  202. 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
  203. def parDoFuseRule: Strategy

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

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

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

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  207. 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
  208. 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
  209. lazy val pathsToNode: (CompNode) ⇒ (CompNode) ⇒ Seq[Seq[CompNode]]

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

    returns

    a nested text representation of the nodes graph

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

    returns

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

    Definition Classes
    ShowNode
  212. val prettyPrinter: PrettyPrinter

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

    returns

    non-empty layers of processing nodes

    Attributes
    protected
  214. def query[T](f: ==>[T, Unit]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  215. def queryWithName[T](name: String, f: ==>[T, Unit]): Strategy

    Definition Classes
    RewriterCore
  216. def queryf(name: String, f: (Any) ⇒ Unit): Strategy

    Definition Classes
    RewriterCore
  217. def queryf(f: (Any) ⇒ Unit): Strategy

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  220. 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
  221. def repeat(name: String, s: Strategy, n: Int): Strategy

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

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

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

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

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  231. 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
  232. def repeatuntil(name: String, s: Strategy, r: Strategy): Strategy

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

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

    Definition Classes
    Memoiser
  235. def resetUses: Unit

    reinit usages

    reinit usages

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

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

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

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

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

    Definition Classes
    Rewriter
  241. 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
  242. def rule[T](f: ==>[T, T]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  243. def ruleWithName[T](name: String, f: ==>[T, T]): Strategy

    Definition Classes
    RewriterCore
  244. def rulef(name: String, f: (Any) ⇒ Any): Strategy

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  246. def rulefs[T](f: ==>[T, Strategy]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  247. def rulefsWithName[T](name: String, f: ==>[T, Strategy]): Strategy

    Definition Classes
    RewriterCore
  248. lazy val shortestPathToNode: (CompNode) ⇒ (CompNode) ⇒ Seq[CompNode]

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

    Show instance for a CompNode

    Show instance for a CompNode

    Definition Classes
    ShowNode
  250. 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
  251. 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
  252. def some(name: String, s: ⇒ Strategy): Strategy

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  254. 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
  255. def someProduct(s: Strategy, p: Product): Option[Any]

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

    Definition Classes
    RewriterCore
  257. 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
  258. def somebu(name: String, s: Strategy): Strategy

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  264. def strategy[T](f: ==>[T, Option[T]]): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  265. def strategyWithName[T](name: String, f: ==>[T, Option[T]]): Strategy

    Definition Classes
    RewriterCore
  266. def strategyf(name: String, f: (Any) ⇒ Option[Any]): Strategy

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

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

    Definition Classes
    AnyRef
  269. def term[T](t: T): Strategy

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  270. def termWithName[T](name: String, t: T): Strategy

    Definition Classes
    RewriterCore
  271. def test(name: String, s: Strategy): Strategy

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

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

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

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

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

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

    Definition Classes
    RewriterCore
    Annotations
    @macroImpl( ... )
  278. 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
  279. def traverseOncebu(s: Strategy): Strategy

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

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

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

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

    Definition Classes
    AttributionCore
    Annotations
    @macroImpl( ... )
  284. 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
  285. def truncateAlreadyExecutedNodes(node: CompNode)(implicit sc: ScoobiConfiguration): CompNode

    Definition Classes
    Optimiser
  286. 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
  287. 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
  288. final def wait(): Unit

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

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

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

    Definition Classes
    Rewriter
  292. 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