=str 21049 gaps in FlowOps section of stages-overview documentation
This commit is contained in:
parent
e480b7940e
commit
024d95690c
2 changed files with 161 additions and 0 deletions
|
|
@ -559,6 +559,17 @@ it returns false the element is discarded.
|
|||
|
||||
**completes** when upstream completes
|
||||
|
||||
filterNot
|
||||
^^^^^^^^^
|
||||
Filter the incoming elements using a predicate. If the predicate returns false the element is passed downstream, if
|
||||
it returns true the element is discarded.
|
||||
|
||||
**emits** when the given predicate returns false for the element
|
||||
|
||||
**backpressures** when the given predicate returns false for the element and downstream backpressures
|
||||
|
||||
**completes** when upstream completes
|
||||
|
||||
collect
|
||||
^^^^^^^
|
||||
Apply a partial function to each incoming element, if the partial function is defined for a value the returned
|
||||
|
|
@ -619,6 +630,17 @@ complete the current value is emitted downstream.
|
|||
|
||||
**completes** when upstream completes
|
||||
|
||||
reduce
|
||||
^^^^^^
|
||||
Start with first element and then apply the current and next value to the given function, when upstream
|
||||
complete the current value is emitted downstream. Similar to ``fold``.
|
||||
|
||||
**emits** when upstream completes
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes
|
||||
|
||||
drop
|
||||
^^^^
|
||||
Drop ``n`` elements and then pass any subsequent element downstream.
|
||||
|
|
@ -703,6 +725,60 @@ a function has to be provided to calculate the individual cost of each element.
|
|||
|
||||
**completes** when upstream completes
|
||||
|
||||
intersperse
|
||||
^^^^^^^^^^^
|
||||
Intersperse stream with provided element similar to ``List.mkString``. It can inject start and end marker elements to stream.
|
||||
|
||||
**emits** when upstream emits an element or before with the `start` element if provided
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes
|
||||
|
||||
limit
|
||||
^^^^^
|
||||
Limit number of element from upstream to given ``max`` number.
|
||||
|
||||
**emits** when upstream emits and the number of emitted elements has not reached max
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes and the number of emitted elements has not reached max
|
||||
|
||||
limitWeighted
|
||||
^^^^^^^^^^^^^
|
||||
Ensure stream boundedness by evaluating the cost of incoming elements using a cost function.
|
||||
Evaluated cost of each element defines how many elements will be allowed to travel downstream.
|
||||
|
||||
**emits** when upstream emits and the number of emitted elements has not reached max
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes and the number of emitted elements has not reached max
|
||||
|
||||
log
|
||||
^^^
|
||||
Log elements flowing through the stream as well as completion and erroring. By default element and
|
||||
completion signals are logged on debug level, and errors are logged on Error level.
|
||||
This can be changed by calling ``Attributes.logLevels(...)`` on the given Flow.
|
||||
|
||||
**emits** when upstream emits
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes
|
||||
|
||||
recoverWithRetries
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
Switch to alternative Source on flow failure. It stays in effect after a failure has been recovered up to ``attempts``
|
||||
number of times. Each time a failure is fed into the partial function and a new Source may be materialized.
|
||||
|
||||
**emits** when element is available from the upstream or upstream is failed and element is available from alternative Source
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when upstream completes or upstream failed with exception provided partial function can handle
|
||||
|
||||
|
||||
Asynchronous processing stages
|
||||
------------------------------
|
||||
|
|
@ -1139,6 +1215,16 @@ After completion of the original upstream the elements of the given source will
|
|||
|
||||
**completes** when all upstreams complete
|
||||
|
||||
++
|
||||
^^
|
||||
Just a shorthand for concat
|
||||
|
||||
**emits** when the current stream has an element available; if the current input completes, it tries the next one
|
||||
|
||||
**backpressures** when downstream backpressures
|
||||
|
||||
**completes** when all upstreams complete
|
||||
|
||||
prepend
|
||||
^^^^^^^
|
||||
Prepends the given source to the flow, consuming it until completion before the original source is consumed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue