Class

com.twitter.summingbird

AlsoTailProducer

Related Doc: package summingbird

Permalink

class AlsoTailProducer[P <: Platform[P], +T, +R] extends AlsoProducer[P, T, R] with TailProducer[P, R]

Linear Supertypes
TailProducer[P, R], AlsoProducer[P, T, R], Serializable, Serializable, Product, Equals, Producer[P, R], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AlsoTailProducer
  2. TailProducer
  3. AlsoProducer
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. Producer
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AlsoTailProducer(ensure: TailProducer[P, T], result: TailProducer[P, R])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[U >: R](r: Producer[P, U]): Producer[P, U]

    Permalink

    Exactly the same as merge.

    Exactly the same as merge. Here by analogy with the scala.collections API

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def also[R](that: Producer[P, R]): Producer[P, R]

    Permalink
    Definition Classes
    TailProducer
  6. def also[R](that: TailProducer[P, R])(implicit ev: DummyImplicit): TailProducer[P, R]

    Permalink

    Ensure this is scheduled, but return something equivalent to the argument like the function par in Haskell.

    Ensure this is scheduled, but return something equivalent to the argument like the function par in Haskell. This can be used to combine two independent Producers in a way that ensures that the Platform will plan both into a single Plan.

    Definition Classes
    TailProducer
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def collect[U](fn: PartialFunction[R, U]): Producer[P, U]

    Permalink

    Prefer to flatMap for transforming a subset of items like optionMap but convenient with case syntax in scala prod.collect { case x if fn(x) => g(x) }

    Prefer to flatMap for transforming a subset of items like optionMap but convenient with case syntax in scala prod.collect { case x if fn(x) => g(x) }

    Definition Classes
    Producer
  10. def either[U](other: Producer[P, U]): Producer[P, Either[R, U]]

    Permalink

    Merge a different type of Producer into a single stream

    Merge a different type of Producer into a single stream

    Definition Classes
    Producer
  11. val ensure: TailProducer[P, T]

    Permalink
    Definition Classes
    AlsoProducer
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def filter(fn: (R) ⇒ Boolean): Producer[P, R]

    Permalink

    Keep only the items that satisfy the fn

    Keep only the items that satisfy the fn

    Definition Classes
    Producer
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap[U](fn: (R) ⇒ TraversableOnce[U]): Producer[P, U]

    Permalink

    Only use this function if you may return more than 1 item sometimes.

    Only use this function if you may return more than 1 item sometimes. otherwise use collect or optionMap, which can be pushed up the graph

    Definition Classes
    Producer
  16. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  18. def lookup[U >: R, V](service: P.Service[U, V]): KeyedProducer[P, U, Option[V]]

    Permalink

    This is identical to a certain leftJoin: map((_, ())).leftJoin(srv).mapValues{case (_, v) => v} Useful when you are looking up values from say a stream of inputs, such as IDs.

    This is identical to a certain leftJoin: map((_, ())).leftJoin(srv).mapValues{case (_, v) => v} Useful when you are looking up values from say a stream of inputs, such as IDs.

    Definition Classes
    Producer
  19. def map[U](fn: (R) ⇒ U): Producer[P, U]

    Permalink

    Map each item to a new value

    Map each item to a new value

    Definition Classes
    Producer
  20. def merge[U >: R](r: Producer[P, U]): Producer[P, U]

    Permalink

    Combine the output into one Producer

    Combine the output into one Producer

    Definition Classes
    Producer
  21. def name(id: String): TailProducer[P, R]

    Permalink

    Naming a node is so that you may give Options for that node that may change the run-time performance of the job (parameter tuning, etc...)

    Naming a node is so that you may give Options for that node that may change the run-time performance of the job (parameter tuning, etc...)

    Definition Classes
    TailProducerProducer
  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. def optionMap[U](fn: (R) ⇒ Option[U]): Producer[P, U]

    Permalink

    Prefer this or collect to flatMap if you are always emitting 0 or 1 items

    Prefer this or collect to flatMap if you are always emitting 0 or 1 items

    Definition Classes
    Producer
  26. val result: Producer[P, R]

    Permalink
    Definition Classes
    AlsoProducer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def write[U >: R](sink: P.Sink[U]): TailProducer[P, R]

    Permalink

    Cause some side effect on the sink, but pass through the values so they can be consumed downstream

    Cause some side effect on the sink, but pass through the values so they can be consumed downstream

    Definition Classes
    Producer

Inherited from TailProducer[P, R]

Inherited from AlsoProducer[P, T, R]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Producer[P, R]

Inherited from AnyRef

Inherited from Any

Ungrouped