Method and Description |
---|
io.realm.RealmQuery.distinct(String)
Since 4.3.0, now use
RealmQuery.distinctValues(String) then RealmQuery.findAll()
Returns a distinct set of objects of a specific class. If the result is sorted, the first
object will be returned in case of multiple occurrences, otherwise it is undefined which
object is returned.
Adding |
io.realm.RealmQuery.distinct(String, String...)
Since 4.3.0, now use
RealmQuery.distinctValues(String, String[]) then RealmQuery.findAll()
Returns a distinct set of objects from a specific class. When multiple distinct fields are
given, all unique combinations of values in the fields will be returned. In case of multiple
matches, it is undefined which object is returned. Unless the result is sorted, then the
first object will be returned. |
io.realm.RealmQuery.distinctAsync(String)
Since 4.3.0, now use
RealmQuery.distinctValues(String) then RealmQuery.findAllAsync()
Asynchronously returns a distinct set of objects of a specific class. If the result is
sorted, the first object will be returned in case of multiple occurrences, otherwise it is
undefined which object is returned.
Adding Index to the corresponding field will make this operation much faster. |
io.realm.RealmQuery.findAllSorted(String)
Since 4.3.0, now use
RealmQuery.sort(String) then RealmQuery.findAll()
Finds all objects that fulfill the query conditions and sorted by specific field name in ascending order.
Sorting is currently limited to character sets in 'Latin Basic', 'Latin Supplement', 'Latin Extended A', 'Latin Extended B' (UTF-8 range 0-591). For other character sets, sorting will have no effect. |
io.realm.RealmQuery.findAllSorted(String[], Sort[])
Since 4.3.0, now use
RealmQuery.sort(String[], Sort[]) then RealmQuery.findAll()
Finds all objects that fulfill the query conditions and sorted by specific field names.
Sorting is currently limited to character sets in 'Latin Basic', 'Latin Supplement', 'Latin Extended A', 'Latin Extended B' (UTF-8 range 0-591). For other character sets, sorting will have no effect. |
io.realm.RealmQuery.findAllSorted(String, Sort)
Since 4.3.0, now use
RealmQuery.sort(String, Sort) then RealmQuery.findAll()
Finds all objects that fulfill the query conditions and sorted by specific field name.
Sorting is currently limited to character sets in 'Latin Basic', 'Latin Supplement', 'Latin Extended A', 'Latin Extended B' (UTF-8 range 0-591). For other character sets, sorting will have no effect. |
io.realm.RealmQuery.findAllSorted(String, Sort, String, Sort)
Since 4.3.0, now use
RealmQuery.sort(String, Sort, String, Sort) then RealmQuery.findAll()
Finds all objects that fulfill the query conditions and sorted by specific field names in ascending order.
Sorting is currently limited to character sets in 'Latin Basic', 'Latin Supplement', 'Latin Extended A', 'Latin Extended B' (UTF-8 range 0-591). For other character sets, sorting will have no effect. |
io.realm.RealmQuery.findAllSortedAsync(String)
Since 4.3.0, now use
RealmQuery.sort(String) then RealmQuery.findAllAsync()
Similar to RealmQuery.findAllSorted(String) but runs asynchronously on a worker thread.
This method is only available from a Looper thread. |
io.realm.RealmQuery.findAllSortedAsync(String[], Sort[])
Since 4.3.0, now use
RealmQuery.sort(String[], Sort[]) then RealmQuery.findAllAsync()
Similar to RealmQuery.findAllSorted(String[], Sort[]) but runs asynchronously.
from a worker thread.
This method is only available from a Looper thread. |
io.realm.RealmQuery.findAllSortedAsync(String, Sort)
Since 4.3.0, now use
RealmQuery.sort(String, Sort) then RealmQuery.findAllAsync()
Similar to RealmQuery.findAllSorted(String, Sort) but runs asynchronously on a worker thread
(need a Realm opened from a looper thread to work). |
io.realm.RealmQuery.findAllSortedAsync(String, Sort, String, Sort)
Since 4.3.0, now use
RealmQuery.sort(String, Sort, String, Sort) then RealmQuery.findAllAsync()
Similar to RealmQuery.findAllSorted(String, Sort, String, Sort) but runs asynchronously on a worker thread
This method is only available from a Looper thread. |
io.realm.OrderedRealmCollectionSnapshot.where() |