-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Operator Matrix
Operator | |||||
---|---|---|---|---|---|
all
|
|
|
|
||
amb
|
|||||
ambArray
|
|||||
ambWith
|
|||||
andThen
|
|
|
|
|
|
any
|
|
|
|
||
blockingAwait
|
|
|
|
|
|
blockingFirst
|
|
|
|
||
blockingForEach
|
|
|
|
||
blockingGet
|
|
|
|
||
blockingIterable
|
|
|
|
||
blockingLast
|
|
|
|
||
blockingLatest
|
|
|
|
||
blockingMostRecent
|
|
|
|
||
blockingNext
|
|
|
|
||
blockingSingle
|
|
|
|
||
blockingStream
|
|
|
|
||
blockingSubscribe
|
|||||
buffer
|
|
|
|
||
cache
|
|||||
cacheWithInitialCapacity
|
|
|
|
||
cast
|
|
||||
collect
|
|
|
|
||
collectInto
|
|
|
|
||
combineLatest
|
|
|
|
||
combineLatestArray
|
|
|
|
||
combineLatestArrayDelayError
|
|
|
|
||
combineLatestDelayError
|
|
|
|
||
complete
|
|
|
|
|
|
compose
|
|||||
concat
|
|||||
concatArray
|
|||||
concatArrayDelayError
|
|||||
concatArrayEager
|
|
||||
concatArrayEagerDelayError
|
|
||||
concatDelayError
|
|||||
concatEager
|
|
||||
concatMap
|
|
||||
concatMapCompletable
|
|
||||
concatMapCompletableDelayError
|
|
||||
concatMapDelayError
|
|||||
concatMapEager
|
|||||
concatMapEagerDelayError
|
|||||
concatMapIterable
|
|
|
|
||
concatMapMaybe
|
|
||||
concatMapMaybeDelayError
|
|
||||
concatMapSingle
|
|
||||
concatMapSingleDelayError
|
|
||||
concatMapStream
|
|
|
|
||
concatWith
|
|||||
contains
|
|
||||
count
|
|
|
|||
create
|
|||||
debounce
|
|
|
|
||
defaultIfEmpty
|
|
|
|||
defer
|
|||||
delay
|
|||||
delaySubscription
|
|||||
dematerialize
|
|
||||
distinct
|
|
|
|
||
distinctUntilChanged
|
|
|
|
||
doAfterNext
|
|
|
|
||
doAfterSuccess
|
|
|
|
||
doAfterTerminate
|
|||||
doFinally
|
|||||
doOnCancel
|
|
|
|
|
|
doOnComplete
|
|
||||
doOnDispose
|
|
||||
doOnEach
|
|
|
|
||
doOnError
|
|||||
doOnEvent
|
|
|
|||
doOnLifecycle
|
|||||
doOnNext
|
|
|
|
||
doOnRequest
|
|
|
|
|
|
doOnSubscribe
|
|||||
doOnSuccess
|
|
|
|
||
doOnTerminate
|
|||||
elementAt
|
|
|
|
||
elementAtOrError
|
|
|
|
||
empty
|
|
|
|||
error
|
|||||
filter
|
|
||||
first
|
|
|
|
||
firstElement
|
|
|
|
||
firstOrError
|
|
|
|
||
firstOrErrorStage
|
|
|
|
||
firstStage
|
|
|
|
||
flatMap
|
|
||||
flatMapCompletable
|
|
||||
flatMapIterable
|
|
|
|
||
flatMapMaybe
|
|
|
|||
flatMapObservable
|
|
|
|
||
flatMapPublisher
|
|
|
|
||
flatMapSingle
|
|
||||
flatMapSingleElement
|
|
|
|
|
|
flatMapStream
|
|
|
|
||
flattenAsFlowable
|
|
|
|
||
flattenAsObservable
|
|
|
|
||
flattenStreamAsFlowable
|
|
|
|
||
flattenStreamAsObservable
|
|
|
|
||
forEach
|
|
|
|
||
forEachWhile
|
|
|
|
||
fromAction
|
|||||
fromArray
|
|
|
|
||
fromCallable
|
|||||
fromCompletable
|
|
|
|||
fromCompletionStage
|
|||||
fromFuture
|
|||||
fromIterable
|
|
|
|
||
fromMaybe
|
|
||||
fromObservable
|
|
||||
fromOptional
|
|
|
|||
fromPublisher
|
|||||
fromRunnable
|
|||||
fromSingle
|
|||||
fromStream
|
|
|
|
||
fromSupplier
|
|||||
generate
|
|
|
|
||
groupBy
|
|
|
|
||
groupJoin
|
|
|
|
||
hide
|
|||||
ignoreElement
|
|
|
|
||
ignoreElements
|
|
|
|
||
interval
|
|
|
|
||
intervalRange
|
|
|
|
||
isEmpty
|
|
|
|||
join
|
|
|
|
||
just
|
|||||
last
|
|
|
|
||
lastElement
|
|
|
|
||
lastOrError
|
|
|
|
||
lastOrErrorStage
|
|
|
|
||
lastStage
|
|
|
|
||
lift
|
|||||
map
|
|
||||
mapOptional
|
|
||||
materialize
|
|||||
merge
|
|||||
mergeArray
|
|||||
mergeArrayDelayError
|
|||||
mergeDelayError
|
|||||
mergeWith
|
|||||
never
|
|||||
observeOn
|
|||||
ofType
|
|
||||
onBackpressureBuffer
|
|
|
|
|
|
onBackpressureDrop
|
|
|
|
|
|
onBackpressureLatest
|
|
|
|
|
|
onErrorComplete
|
|||||
onErrorResumeNext
|
|||||
onErrorResumeWith
|
|||||
onErrorReturn
|
|||||
onErrorReturnItem
|
|||||
onTerminateDetach
|
|||||
parallel
|
|
|
|
|
|
publish
|
|
|
|
||
range
|
|
|
|
||
rangeLong
|
|
|
|
||
rebatchRequests
|
|
|
|
|
|
reduce
|
|
|
|
||
reduceWith
|
|
|
|
||
repeat
|
|||||
repeatUntil
|
|||||
repeatWhen
|
|||||
replay
|
|
|
|
||
retry
|
|||||
retryUntil
|
|||||
retryWhen
|
|||||
safeSubscribe
|
|||||
sample
|
|
|
|
||
scan
|
|
|
|
||
scanWith
|
|
|
|
||
sequenceEqual
|
|||||
serialize
|
|
|
|
||
share
|
|
|
|
||
single
|
|
|
|
||
singleElement
|
|
|
|
||
singleOrError
|
|
|
|
||
singleOrErrorStage
|
|
|
|
||
singleStage
|
|
|
|
||
skip
|
|
|
|
||
skipLast
|
|
|
|
||
skipUntil
|
|
|
|
||
skipWhile
|
|
|
|
||
sorted
|
|
|
|
||
startWith
|
|||||
startWithArray
|
|
|
|
||
startWithItem
|
|
|
|
||
startWithIterable
|
|
|
|
||
subscribe
|
|||||
subscribeOn
|
|||||
subscribeWith
|
|||||
switchIfEmpty
|
|
|
|||
switchMap
|
|
|
|
||
switchMapCompletable
|
|
|
|
||
switchMapCompletableDelayError
|
|
|
|
||
switchMapDelayError
|
|
|
|
||
switchMapMaybe
|
|
|
|
||
switchMapMaybeDelayError
|
|
|
|
||
switchMapSingle
|
|
|
|
||
switchMapSingleDelayError
|
|
|
|
||
switchOnNext
|
|||||
switchOnNextDelayError
|
|||||
take
|
|
|
|
||
takeLast
|
|
|
|
||
takeUntil
|
|||||
takeWhile
|
|
|
|
||
test
|
|||||
throttleFirst
|
|
|
|
||
throttleLast
|
|
|
|
||
throttleLatest
|
|
|
|
||
throttleWithTimeout
|
|
|
|
||
timeInterval
|
|||||
timeout
|
|||||
timer
|
|||||
timestamp
|
|
||||
to
|
|||||
toCompletionStage
|
|
|
|||
toFlowable
|
|
||||
toFuture
|
|||||
toList
|
|
|
|
||
toMap
|
|
|
|
||
toMaybe
|
|
|
|
||
toMultimap
|
|
|
|
||
toObservable
|
|
||||
toSingle
|
|
|
|
||
toSingleDefault
|
|
|
|
|
|
toSortedList
|
|
|
|
||
unsafeCreate
|
|||||
unsubscribeOn
|
|||||
using
|
|||||
window
|
|
|
|
||
withLatestFrom
|
|
|
|
||
wrap
|
|
||||
zip
|
|
||||
zipArray
|
|
||||
zipWith
|
|
1 Use contains()
.
2 Always empty.
3 Use concatWith
.
4 Use blockingFirst()
, blockingSingle()
or blockingLast()
.
5 Use blockingGet()
.
6 At most one element to get. Use blockingGet()
.
7 No elements to get. Use blockingAwait()
.
8 Use blockingSubscribe()
9 Use map()
and switchIfEmpty()
to transform into a list/collection.
10 Use map()
to transform into a list/collection.
11 Always empty. Use andThen()
to bring in a list/collection.
12 At most one element to store. Use cache()
.
13 At most one element to collect. Use map()
and switchIfEmpty()
to transform into a list/collection.
14 One element to collect. Use map()
to transform into a list/collection.
15 Always empty. Use andThen()
to bring in a collection.
16 At most one element per source. Use zip()
.
17 Always empty. Use merge()
.
18 At most one element per source. Use zipArray()
.
19 Always empty. Use mergeArray()
.
20 Always empty. Use mergeArrayDelayError()
.
21 Always empty. Use mergeDelayError()
.
22 Use empty()
.
23 Never empty.
24 No items to keep ordered. Use mergeArray()
.
25 No items to keep ordered. Use mergeArrayDelayError()
.
26 No items to keep ordered. Use merge()
.
27 Always empty thus no items to map.
28 At most one item. Use flattenAsFlowable
or flattenAsObservable
.
29 At most one item. Use flattenStreamAsFlowable
or flattenStreamAsObservable
.
30 Never empty thus always 1.
31 Always empty thus always 0.
32 At most one item signaled so no subsequent items to work with.
33 Always empty thus no items to work with.
34 Always empty. Use andThen()
to chose the follow-up sequence.
35 At most one item, always distinct.
36 Different terminology. Use doAfterSuccess()
.
37 Different terminology. Use doAfterNext()
.
38 Different terminology. Use doOnDispose()
.
39 Always succeeds or fails, there is no onComplete
signal.
40 Different terminology. Use doOnCancel()
.
41 At most one item. Use doOnEvent()
.
42 Use doOnEach()
.
43 Different terminology. Use doOnSuccess()
.
44 Backpressure related and not supported outside Flowable
.
45 Different terminology. Use doOnNext()
.
46 At most one item with index 0. Use defaultIfEmpty
.
47 Always one item with index 0.
48 At most one item with index 0. Use toSingle
.
49 Use complete()
.
50 At most one item. Use defaultIfEmpty
.
51 Always one item.
52 At most one item, would be no-op.
53 Always one item, would be no-op.
54 Always empty. Use andThen()
and error()
.
55 At most one item. Use toCompletionStage()
.
56 Always empty. Use andThen()
, error()
and toCompletionStage()
.
57 Use flatMap()
.
58 Not supported. Use flatMap
and toFlowable()
.
59 Use flatMap
.
60 Not supported. Use flatMap
and toObservable()
.
61 Use flatMapSingle
.
62 Use flatMapIterable()
.
63 Use flatMapStream()
.
64 Use subscribe()
.
65 At most one item. Use just()
or empty()
.
66 Always one item. Use just()
.
67 Always empty. Use complete()
.
68 Always error.
69 Use wrap()
.
70 Use fromSupplier()
.
71 At most one item.
72 Always empty thus no items to group.
73 Always empty thus no items to join.
74 Use ignoreElements()
.
75 Use ignoreElement()
.
76 At most one item. Use timer()
.
77 At most one item. Use zip()
78 Always empty thus no items to filter.
79 Needs backpressure thus not supported outside Flowable
.
80 Connectable sources not supported outside Flowable
and Observable
. Use a MaybeSubject
.
81 Connectable sources not supported outside Flowable
and Observable
. Use a SingleSubject
.
82 Connectable sources not supported outside Flowable
and Observable
. Use a ConnectableSubject
.
83 At most one item. Use just()
.
84 At most one item. Use map()
.
85 Always empty thus no items to reduce.
86 At most one signal type.
87 At most one item. Use takeUntil()
.
88 At most one item. Use filter()
.
89 Use startWith()
and fromArray()
of Flowable
or Observable
.
90 Use startWith()
and just()
of another reactive type.
91 Use startWith()
and fromIterable()
of Flowable
or Observable
.
92 Always empty. Use defaultIfEmpty()
.
93 At most one item. Use flatMap()
.
94 Use firstStage
, lastStage
or singleStage
.
95 Would be no-op.
96 Use firstElement
, lastElement
or singleElement
.
97 Use firstOrError
, lastOrError
or singleOrError
.
98 Use first
, last
or single
.
99 Use defaultIfEmpty()
.
100 Use map()
and switchIfEmpty()
to transform into a nested source.
101 Use map()
to transform into a nested source.
102 Always empty. Use andThen()
to bring in a nested source.
103 Use fromPublisher()
.
104 Use merge()
.
105 Use mergeArray()
.
106 Use mergeWith()
.
- Single.concatArrayDelayError()
- Completable.concatArrayDelayError()
- Maybe.concatArrayEagerDelayError()
- Single.concatArrayEagerDelayError()
- Single.concatDelayError()
- Completable.concatDelayError()
- Single.concatMap()
- Maybe.concatMapCompletable()
- Single.concatMapCompletable()
- Maybe.concatMapCompletableDelayError()
- Single.concatMapCompletableDelayError()
- Maybe.concatMapDelayError()
- Single.concatMapDelayError()
- Completable.concatMapDelayError()
- Maybe.concatMapEager()
- Single.concatMapEager()
- Completable.concatMapEager()
- Maybe.concatMapEagerDelayError()
- Single.concatMapEagerDelayError()
- Completable.concatMapEagerDelayError()
- Maybe.concatMapMaybe()
- Single.concatMapMaybe()
- Maybe.concatMapMaybeDelayError()
- Single.concatMapMaybeDelayError()
- Maybe.concatMapSingle()
- Single.concatMapSingle()
- Maybe.concatMapSingleDelayError()
- Single.concatMapSingleDelayError()
- Maybe.dematerialize()
- Maybe.doOnLifecycle()
- Single.doOnLifecycle()
- Completable.doOnLifecycle()
- Single.flatMapSingle()
- Flowable.fromAction()
- Observable.fromAction()
- Single.fromAction()
- Flowable.fromCompletable()
- Observable.fromCompletable()
- Flowable.fromMaybe()
- Observable.fromMaybe()
- Single.fromMaybe()
- Flowable.fromObservable()
- Maybe.fromObservable()
- Maybe.fromPublisher()
- Flowable.fromRunnable()
- Observable.fromRunnable()
- Single.fromRunnable()
- Flowable.fromSingle()
- Observable.fromSingle()
- Single.fromSingle()
- Completable.just()
- Single.mergeArray()
- Single.mergeArrayDelayError()
- Single.ofType()
- Completable.onErrorResumeWith()
- Completable.onErrorReturn()
- Completable.onErrorReturnItem()
- Single.retryUntil()
- Completable.retryUntil()
- Maybe.safeSubscribe()
- Single.safeSubscribe()
- Completable.safeSubscribe()
- Completable.sequenceEqual()
- Maybe.startWith()
- Single.startWith()
- Maybe.switchOnNext()
- Single.switchOnNext()
- Completable.switchOnNext()
- Maybe.switchOnNextDelayError()
- Single.switchOnNextDelayError()
- Completable.switchOnNextDelayError()
- Maybe.timeInterval()
- Single.timeInterval()
- Completable.timeInterval()
- Maybe.timestamp()
- Single.timestamp()
- Maybe.toFuture()
- Completable.toFuture()
Copyright (c) 2016-present, RxJava Contributors.
Twitter @RxJava | Gitter @RxJava