com.twitter.summingbird

Source

case class Source[P <: Platform[P], T](source: P.Source[T]) extends Producer[P, T] with Product with Serializable

Wraps the sources of the given Platform

Source
Producer.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Producer[P, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Source
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Producer
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Source(source: P.Source[T])

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. def ++[U >: T](r: Producer[P, U]): Producer[P, U]

    Exactly the same as merge.

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

    Definition Classes
    Producer
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Prefer to flatMap for transforming a subset of items like optionMap but convenient with case syntax in scala prod.

    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[T, U]]

    Merge a different type of Producer into a single stream

    Merge a different type of Producer into a single stream

    Definition Classes
    Producer
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def filter(fn: (T) ⇒ Boolean): Producer[P, T]

    Keep only the items that satisfy the fn

    Keep only the items that satisfy the fn

    Definition Classes
    Producer
  13. def finalize(): Unit

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

    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
  15. final def getClass(): Class[_]

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

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

    This is identical to a certain leftJoin: map((_, ())).

    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
  18. def map[U](fn: (T) ⇒ U): Producer[P, U]

    Map each item to a new value

    Map each item to a new value

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

    Combine the output into one Producer

    Combine the output into one Producer

    Definition Classes
    Producer
  20. def name(id: String): Producer[P, T]

    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
    Producer
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def optionMap[U](fn: (T) ⇒ Option[U]): Producer[P, U]

    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
  25. val source: P.Source[T]

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. final def wait(): Unit

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

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

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

    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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Producer[P, T]

Inherited from AnyRef

Inherited from Any

Ungrouped