Package org.apache.pekko.stream.scaladsl
Class MergeSorted<T>
java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
org.apache.pekko.stream.stage.GraphStage<FanInShape2<T,T,T>>
org.apache.pekko.stream.scaladsl.MergeSorted<T>
- All Implemented Interfaces:
Graph<FanInShape2<T,T, T>, NotUsed>
Merge two pre-sorted streams such that the resulting stream is sorted.
'''Emits when''' both inputs have an element available
'''Backpressures when''' downstream backpressures
'''Completes when''' all upstreams complete
'''Cancels when''' downstream cancels
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MergeSorted<T>apply(scala.math.Ordering<T> evidence$1) Create a newMergeSorted, @see MergeSortedcreateLogic(Attributes attr) FanInShape2<T,T, T> shape()The shape of a graph is all that is externally visible: its inlets and outlets.Methods inherited from class org.apache.pekko.stream.stage.GraphStage
createLogicAndMaterializedValueMethods inherited from class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue
initialAttributes, withAttributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.stream.Graph
addAttributes, async, async, async, getAttributes, named
-
Constructor Details
-
MergeSorted
-
-
Method Details
-
apply
Create a newMergeSorted, @see MergeSorted -
shape
Description copied from interface:GraphThe shape of a graph is all that is externally visible: its inlets and outlets. -
createLogic
- Specified by:
createLogicin classGraphStage<FanInShape2<T,T, T>>
-