Trait/Object

com.twitter.summingbird.graph

ExpressionDag

Related Docs: object ExpressionDag | package graph

Permalink

sealed trait ExpressionDag[N[_]] extends AnyRef

Self Type
ExpressionDag[N]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ExpressionDag
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type E[t] = Expr[t, N]

    Permalink
  2. type Lit[t] = Literal[t, N]

    Permalink

Abstract Value Members

  1. abstract def idToExp: HMap[Id, E]

    Permalink

    These have package visibility to test the law that for all Expr, the node they evaluate to is unique

    These have package visibility to test the law that for all Expr, the node they evaluate to is unique

    Attributes
    protected[com.twitter.summingbird.graph]
  2. abstract def nextId: Int

    Permalink
    Attributes
    protected
  3. abstract def nodeToLiteral: GenFunction[N, Lit]

    Permalink
    Attributes
    protected
  4. abstract def roots: Set[Id[_]]

    Permalink
    Attributes
    protected

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(rule: Rule[N]): ExpressionDag[N]

    Permalink

    Apply the given rule to the given dag until the graph no longer changes.

  5. def applyOnce(rule: Rule[N]): ExpressionDag[N]

    Permalink

    apply the rule at the first place that satisfies it, and return from there.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contains(node: N[_]): Boolean

    Permalink
  9. def ensure[T](node: N[T]): (ExpressionDag[N], Id[T])

    Permalink

    ensure the given literal node is present in the Dag Note: it is important that at each moment, each node has at most one id in the graph.

    ensure the given literal node is present in the Dag Note: it is important that at each moment, each node has at most one id in the graph. Put another way, for all Id[T] in the graph evaluate(id) is distinct.

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def evaluate[T](id: Id[T]): N[T]

    Permalink

    After applying rules to your Dag, use this method to get the original node type.

    After applying rules to your Dag, use this method to get the original node type. Only call this on an Id[T] that was generated by this dag or a parent.

  13. def evaluateOption[T](id: Id[T]): Option[N[T]]

    Permalink
  14. def fanOut(node: N[_]): Int

    Permalink

    Returns 0 if the node is absent, which is true use .contains(n) to check for containment

  15. def fanOut(id: Id[_]): Int

    Permalink

    Return the number of nodes that depend on the given Id, TODO we might want to cache these.

    Return the number of nodes that depend on the given Id, TODO we might want to cache these. We need to garbage collect nodes that are no longer reachable from the root

  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def find[T](node: N[T]): Option[Id[T]]

    Permalink

    This finds the Id[T] in the current graph that is equivalent to the given N[T]

  18. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def idOf[T](node: N[T]): Id[T]

    Permalink

    This throws if the node is missing, use find if this is not a logic error in your programming.

    This throws if the node is missing, use find if this is not a logic error in your programming. With dependent types we could possibly get this to not compile if it could throw.

  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toExpr[T](n: N[T]): (ExpressionDag[N], Expr[T, N])

    Permalink
    Attributes
    protected
  27. def toLiteral[T](n: N[T]): Literal[T, N]

    Permalink

    Convert a N[T] to a Literal[T, N]

  28. def toString(): String

    Permalink
    Definition Classes
    ExpressionDag → AnyRef → Any
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped