Package io.realm.query

Types

RealmElementQuery
Link copied to clipboard
interface RealmElementQuery<T : RealmObject> : Flowable<RealmResults<T>>
Query returning RealmResults.
RealmQuery
Link copied to clipboard
interface RealmQuery<T : RealmObject> : RealmElementQuery<T>
A RealmQuery encapsulates a query on a Realm, a RealmResults or a RealmList instance using the Builder pattern.
RealmScalarNullableQuery
Link copied to clipboard
interface RealmScalarNullableQuery<T> : Flowable<T>
Queries that return scalar, nullable values.
RealmScalarQuery
Link copied to clipboard
interface RealmScalarQuery<T> : Flowable<T>
Queries that return scalar values.
RealmSingleQuery
Link copied to clipboard
interface RealmSingleQuery<T> : Flowable<T>
Query returning a single RealmObject.
Sort
Link copied to clipboard
enum Sort : Enum<Sort>
This enum describes the sorting order used in Realm queries.

Functions

find
Link copied to clipboard
fun <T : RealmObject, R> RealmQuery<T>.find(block: (RealmResults<T>) -> R): R
Similar to RealmQuery.find but it receives a block in which the RealmResults from the query are provided.
fun <T, R> RealmScalarNullableQuery<T>.find(block: (T?) -> R): R
Similar to RealmScalarNullableQuery.find but it receives a block in which the scalar result from the query is provided.
fun <T, R> RealmScalarQuery<T>.find(block: (T) -> R): R
Similar to RealmScalarQuery.find but it receives a block in which the scalar result from the query is provided.
fun <T, R> RealmSingleQuery<T>.find(block: (T?) -> R): R
Similar to RealmSingleQuery.find but it receives a block in which the RealmObject from the query is provided.
max
Link copied to clipboard
inline fun <T : Any> RealmQuery<*>.max(property: String): RealmScalarNullableQuery<T>
Similar to RealmQuery.max but the type parameter is automatically inferred.
min
Link copied to clipboard
inline fun <T : Any> RealmQuery<*>.min(property: String): RealmScalarNullableQuery<T>
Similar to RealmQuery.min but the type parameter is automatically inferred.
sum
Link copied to clipboard
inline fun <T : Any> RealmQuery<*>.sum(property: String): RealmScalarQuery<T>
Similar to RealmQuery.sum but the type parameter is automatically inferred.