com.fsist.stream

SourceOps

Related Doc: package stream

trait SourceOps[+Out] extends AnyRef

Mixed into Source implementations to add shortcut methods to constructors of Source, Transform, Sink and Connect.

All methods here have three variants: - One taking function literals A => B - Another called xxxAsync taking function literals A => Future[B] - And a third called xxxFunc taking Func objects.

Although they have different signatures, making them into overloads would remove the ability to call the synchronous variant (the most common case) with function literals like source.map(_ + 1).

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

Abstract Value Members

  1. abstract def sourceComponent: SourceComponent[Out]

    Attributes
    protected

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def append[Super >: Out](elems: Iterable[Super]): Transform[_ <: Out, Super]

  5. def appendThese[Super >: Out](elems: Super*): Transform[_ <: Out, Super]

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[M[_]]()(implicit cbf: CanBuildFrom[Nothing, Out, M[Out]]): Transform[_ <: Out, M[Out]]

  9. def collectSuper[Super >: Out, M[_]]()(implicit cbf: CanBuildFrom[Nothing, Super, M[Super]]): Transform[Super, M[Super]]

    This overload of collect lets you specify an explicit supertype bound of Out (so you cannot upcast past it) and in exchange get a precise non-existential return type.

  10. def concat[Elem, Super >: Out]()(implicit ev: <:<[Super, TraversableOnce[Elem]], cbf: CanBuildFrom[Nothing, Elem, Super]): Transform[_ <: Out, Super]

  11. def concatWith[Super >: Out](sources: SourceComponent[Super]*): SourceComponent[Super]

    Concatenate these sources after the current one.

    Concatenate these sources after the current one.

    This is named concatWith and not simply Concat because SourceOps.concat refers to the unrelated Transform.concat.

    See also

    com.fsist.stream.Source.concat

  12. def discard(): StreamOutput[_ <: Out, Unit]

  13. def drive[Res](consumer: StreamConsumer[Out, Res]): StreamOutput[_ <: Out, Res]

  14. def drop(count: Long): SourceComponent[Out]

  15. def dropElements[Elem](count: Long)(implicit ev: <:<[Out, Traversable[Elem]], cbf: CanBuildFrom[Nothing, Elem, Out]): Transform[_ <: Out, Out]

  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def filter(filter: (Out) ⇒ Boolean)(implicit ec: ExecutionContext): SourceComponent[Out]

  19. def filterAsync(filter: (Out) ⇒ Future[Boolean])(implicit ec: ExecutionContext): SourceComponent[Out]

  20. def filterFunc(filter: Func[Out, Boolean])(implicit ec: ExecutionContext): SourceComponent[Out]

  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def flatMap[Next](mapper: (Out) ⇒ Iterable[Next], onComplete: ⇒ Iterable[Next]): SourceComponent[Next]

  23. def flatMap[Next](mapper: (Out) ⇒ Iterable[Next]): SourceComponent[Next]

  24. def flatMapAsync[Next](mapper: (Out) ⇒ Future[Iterable[Next]], onComplete: ⇒ Future[Iterable[Next]]): SourceComponent[Next]

  25. def flatMapAsync[Next](mapper: (Out) ⇒ Future[Iterable[Next]]): SourceComponent[Next]

  26. def flatMapFunc[Next](mapper: Func[Out, Iterable[Next]], onComplete: Func[Unit, Iterable[Next]] = Func(emptyIterable)): SourceComponent[Next]

  27. def flatten[Elem]()(implicit ev: <:<[Out, Iterable[Elem]]): SourceComponent[Elem]

  28. def fold[Super >: Out, Res](init: Res)(onNext: (Res, Super) ⇒ Res): SourceComponent[Res]

  29. def foldAsync[Super >: Out, Res](init: Res)(onNext: ((Res, Super)) ⇒ Future[Res]): SourceComponent[Res]

  30. def foldFunc[Super >: Out, Res](init: Res)(onNext: Func[(Res, Super), Res]): SourceComponent[Res]

  31. def foreach[Super >: Out, Res](func: (Super) ⇒ Unit, onComplete: ⇒ Res, onError: (Throwable) ⇒ Unit): StreamOutput[Super, Res]

  32. def foreach[Super >: Out, Res](func: (Super) ⇒ Unit, onComplete: ⇒ Res): StreamOutput[Super, Res]

  33. def foreach[Super >: Out](func: (Super) ⇒ Unit): StreamOutput[Super, Unit]

  34. def foreachAsync[Super >: Out, Res](func: (Super) ⇒ Future[Unit], onComplete: ⇒ Future[Res], onError: (Throwable) ⇒ Unit): StreamOutput[Super, Res]

  35. def foreachAsync[Super >: Out, Res](func: (Super) ⇒ Future[Unit], onComplete: ⇒ Future[Res]): StreamOutput[Super, Res]

  36. def foreachAsync[Super >: Out](func: (Super) ⇒ Future[Unit]): StreamOutput[Super, Unit]

  37. def foreachFunc[Super >: Out, Res](func: Func[Super, Unit], onComplete: Func[Unit, Res] = Func.nop, onError: Func[Throwable, Unit] = Func.nop): StreamOutput[Super, Res]

  38. def foreachTr(func: (Out) ⇒ Unit): Transform[_ <: Out, Out]

  39. def foreachTrAsync(func: (Out) ⇒ Future[Unit]): Transform[_ <: Out, Out]

  40. def foreachTrFunc(func: Func[Out, Unit]): Transform[_ <: Out, Out]

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

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

    Definition Classes
    AnyRef → Any
  43. def head(): Transform[_ <: Out, Out]

  44. def headOption(): Transform[_ <: Out, Option[Out]]

  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. def map[Next](mapper: (Out) ⇒ Next, onComplete: ⇒ Unit): SourceComponent[Next]

  47. def map[Next](mapper: (Out) ⇒ Next): SourceComponent[Next]

  48. def mapAsync[Next](mapper: (Out) ⇒ Future[Next], onComplete: ⇒ Future[Unit]): SourceComponent[Next]

  49. def mapAsync[Next](mapper: (Out) ⇒ Future[Next]): SourceComponent[Next]

  50. def mapFunc[Next](mapper: Func[Out, Next], onComplete: Func[Unit, Unit] = Func.nop): SourceComponent[Next]

  51. def merge[Super >: Out](sources: SourceComponent[Super]*): Merger[Super]

  52. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  55. def onComplete(onComplete: ⇒ Unit): Transform[_ <: Out, Out]

  56. def onCompleteAsync(onComplete: ⇒ Future[Unit]): Transform[_ <: Out, Out]

  57. def onCompleteFunc(onComplete: Func[Unit, Unit]): Transform[_ <: Out, Out]

  58. def onError(onError: (Throwable) ⇒ Unit): Transform[_ <: Out, Out]

  59. def onErrorAsync(onError: (Throwable) ⇒ Future[Unit]): Transform[_ <: Out, Out]

  60. def onErrorFunc(onError: Func[Throwable, Unit]): Transform[_ <: Out, Out]

  61. def prepend[Super >: Out](elems: Iterable[Super]): Transform[_ <: Out, Super]

  62. def prependThese[Super >: Out](elems: Super*): Transform[_ <: Out, Super]

  63. def roundRobin(outputCount: Int): Splitter[_ <: Out]

  64. def scatter(outputCount: Int): Scatterer[_ <: Out]

  65. def single(): StreamOutput[_, Out]

  66. def singleResult()(implicit ec: ExecutionContext): Future[Out]

  67. def split(outputCount: Int, outputChooser: (Out) ⇒ BitSet): Splitter[_ <: Out]

  68. def splitAsync(outputCount: Int, outputChooser: (Out) ⇒ Future[BitSet]): Splitter[_ <: Out]

  69. def splitFunc(outputCount: Int, outputChooser: Func[Out, BitSet]): Splitter[_ <: Out]

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

    Definition Classes
    AnyRef
  71. def take(count: Long): SourceComponent[Out]

  72. def takeElements[Elem](count: Long)(implicit ev: <:<[Out, Traversable[Elem]], cbf: CanBuildFrom[Nothing, Elem, Out]): Transform[_ <: Out, Out]

  73. def tapHead(): Transform[_ <: Out, Out] with Aside[Option[Out]]

  74. def tee(outputCount: Int): Splitter[_ <: Out]

  75. def toIndexedSeq(): Transform[_ <: Out, IndexedSeq[Out]]

  76. def toList(): Transform[_ <: Out, List[Out]]

  77. def toSeq(): Transform[_ <: Out, Seq[Out]]

  78. def toSet[Super >: Out](): Transform[_ <: Out, Set[Super]]

  79. def toString(): String

    Definition Classes
    AnyRef → Any
  80. def toVector(): Transform[_ <: Out, Vector[Out]]

  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped