-
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
|
|
|
|||
equals
|
|||||
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 Not supported. Use flatMap
and toFlowable()
.
58 Use flatMap
.
59 Not supported. Use flatMap
and toObservable()
.
60 Use flatMapSingle
.
61 Use flatMapIterable()
.
62 Use flatMapStream()
.
63 Use subscribe()
.
64 At most one item. Use just()
or empty()
.
65 Always one item. Use just()
.
66 Always empty. Use complete()
.
67 Always error.
68 Use wrap()
.
Copyright (c) 2016-present, RxJava Contributors.
Twitter @RxJava | Gitter @RxJava