com.twitter.summingbird.spark

PlatformPlanner

trait PlatformPlanner[P <: Platform[P]] extends AnyRef

The DAG handed to a platform by summingbird is a little hard to work with given that all the generic types have been erased. This helper gives you type safe methods to implement, and casts / coerces things for you.

TODO: Is this useful outside of the spark platform? Is it useful at all?

Source
PlatformPlanner.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PlatformPlanner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class PlanState[T](plan: P.Plan[T], visited: Visited) extends Product with Serializable

  2. type Prod[T] = Producer[P, T]

  3. type TailProd[T] = TailProducer[P, T]

  4. type Visited = Map[Prod[_], P.Plan[_]]

Abstract Value Members

  1. abstract def planAlsoProducer[E, R](ensure: TailProd[E], result: Prod[R], visited: Visited)(implicit arg0: ClassTag[R]): PlanState[R]

  2. abstract def planFlatMappedProducer[T, U](prod: Prod[T], visited: Visited, fn: (T) ⇒ TraversableOnce[U])(implicit arg0: ClassTag[U]): PlanState[U]

  3. abstract def planIdentityKeyedProducer[K, V](prod: Prod[(K, V)], visited: Visited): PlanState[(K, V)]

  4. abstract def planKeyFlatMappedProducer[K, V, K2](prod: Prod[(K, V)], visited: Visited, fn: (K) ⇒ TraversableOnce[K2]): PlanState[(K2, V)]

  5. abstract def planLeftJoinedProducer[K, V, JoinedV](prod: Prod[(K, V)], visited: Visited, service: P.Service[K, JoinedV])(implicit arg0: ClassTag[K], arg1: ClassTag[V]): PlanState[(K, (V, Option[JoinedV]))]

  6. abstract def planMergedProducer[T](l: Prod[T], r: Prod[T], visited: Visited): PlanState[T]

  7. abstract def planNamedProducer[T](prod: Prod[T], name: String, visited: Visited): PlanState[T]

  8. abstract def planOptionMappedProducer[T, U](prod: Prod[T], visited: Visited, fn: (T) ⇒ Option[U])(implicit arg0: ClassTag[U]): PlanState[U]

  9. abstract def planSource[T](source: P.Source[T], visited: Visited): PlanState[T]

  10. abstract def planSummer[K, V](summer: Summer[P, K, V], prod: Prod[(K, V)], visited: Visited, store: P.Store[K, V], semigroup: Semigroup[V])(implicit arg0: ClassTag[K], arg1: ClassTag[V]): PlanState[(K, (Option[V], V))]

  11. abstract def planValueFlatMappedProducer[K, V, U](prod: Prod[(K, V)], visited: Visited, fn: (V) ⇒ TraversableOnce[U])(implicit arg0: ClassTag[U]): PlanState[(K, U)]

  12. abstract def planWrittenProducer[T](prod: Prod[T], visited: Visited, sink: P.Sink[T])(implicit arg0: ClassTag[T]): PlanState[T]

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  18. def toPlan[T](producer: Prod[T], visited: Visited): PlanState[T]

    Attributes
    protected
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. def visit[T](producer: Prod[T]): PlanState[T]

  21. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped