T - type of results.public class PreparedGetListOfObjects<T> extends PreparedGet<java.util.List<T>>
StorIOSQLite.| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedGetListOfObjects.Builder<T>
Builder for
PreparedGetListOfObjects Operation. |
static class |
PreparedGetListOfObjects.CompleteBuilder<T>
Compile-safe part of
PreparedGetListOfObjects.Builder. |
query, rawQuery, storIOSQLite| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.util.List<T>> |
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.util.List<T>> |
asRxSingle()
Creates
Single which will perform Get Operation lazily when somebody subscribes to it and send result to observer. |
rx.Observable<java.util.List<T>> |
createObservable()
Deprecated.
(will be removed in 2.0) please use
asRxObservable(). |
java.util.List<T> |
executeAsBlocking()
Executes Get Operation immediately in current thread.
|
@WorkerThread @NonNull public java.util.List<T> 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.
List with mapped results, list can be empty.@NonNull @CheckResult public rx.Observable<java.util.List<T>> 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, immutable
List with mapped results and will be subscribed to changes of tables from query,
list can be empty.@NonNull @CheckResult public rx.Observable<java.util.List<T>> 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, immutable
List with mapped results and will be subscribed to changes of tables from query,
list can be empty.@NonNull @CheckResult public rx.Single<java.util.List<T>> asRxSingle()
Single which will perform Get Operation lazily when somebody subscribes to it and send result to observer.
StorIOSQLite.defaultScheduler() if not null.Single which will perform Get Operation.
And send result to observer.