public class PreparedGetNumberOfResults extends PreparedGet<java.lang.Integer>
| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedGetNumberOfResults.Builder
Builder for
PreparedGetNumberOfResults. |
static class |
PreparedGetNumberOfResults.CompleteBuilder
Compile-time safe part of builder for
PreparedGetNumberOfResults. |
query, rawQuery, storIOSQLite| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Integer> |
asRxObservable()
Creates "Hot"
Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs. |
rx.Single<java.lang.Integer> |
asRxSingle()
Creates
Single which will get number of results lazily when somebody subscribes to it and send result to observer. |
rx.Observable<java.lang.Integer> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
java.lang.Integer |
executeAsBlocking()
Executes Get Operation immediately in current thread.
|
@WorkerThread @NonNull public java.lang.Integer executeAsBlocking()
Notice: This is blocking I/O operation that should not be executed on the Main Thread,
it can cause ANR (Activity Not Responding dialog), block the UI and drop animations frames.
So please, call this method on some background thread. See WorkerThread.
Integer with number of results of the query.@NonNull public rx.Observable<java.lang.Integer> createObservable()
asRxObservable().Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs.
First result will be emitted immediately after subscription,
other emissions will occur only if changes of tables from query will occur during lifetime of
the Observable.
StorIOSQLite.defaultScheduler() if not null.
Please don't forget to unsubscribe from this Observable because
it's "Hot" and endless.
Observable which will emit non-null
number of results of the executed query and will be subscribed to changes of tables from query.@NonNull @CheckResult public rx.Observable<java.lang.Integer> asRxObservable()
Observable which will be subscribed to changes of tables from query
and will emit result each time change occurs.
First result will be emitted immediately after subscription,
other emissions will occur only if changes of tables from query will occur during lifetime of
the Observable.
StorIOSQLite.defaultScheduler() if not null.
Please don't forget to unsubscribe from this Observable because
it's "Hot" and endless.
Observable which will emit non-null
number of results of the executed query and will be subscribed to changes of tables from query.@NonNull @CheckResult public rx.Single<java.lang.Integer> asRxSingle()
Single which will get number of results lazily when somebody subscribes to it and send result to observer.
StorIOSQLite.defaultScheduler() if not null.Single which will get number of results.
And send result to observer.