ditto-lib / live.ditto / DittoCollection / findAll

findAll

fun findAll(): DittoPendingCursorOperation<Map<String, Any>>

Generates a DittoPendingCursorOperation that can be used to find all documents in the collection at a point in time or you can chain a call to observe, observeLocal, or subscribe if you want to get updates about documents in the collection over time.

Return
a DittoPendingCursorOperation that you can use to chain further query-related function calls.

fun <T : Any> findAll(clazz: KClass<T>): DittoPendingCursorOperation<T>
fun <T : Any> findAll(clazz: Class<T>): DittoPendingCursorOperation<T>

Generates a DittoPendingCursorOperation that can be used to find all documents in the collection at a point in time or you can chain a call to observe, observeLocal, or subscribe if you want to get updates about documents in the collection over time.

Parameters

clazz - the class you want to be used when decoding the documents' inner values.

Return
a DittoPendingCursorOperation that you can use to chain further query-related function calls.

fun <T : Any> findAll(typeRef: TypeReference<T>): DittoPendingCursorOperation<T>

Generates a DittoPendingCursorOperation that can be used to find all documents in the collection at a point in time or you can chain a call to observe, observeLocal, or subscribe if you want to get updates about documents in the collection over time.

Parameters

typeRef - the TypeReference you want to be used when decoding the documents' inner values.

Return
a DittoPendingCursorOperation that you can use to chain further query-related function calls.