Back to Exposed

LazySizedIterable

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc/-lazy-sized-iterable/index.html

1.2.04.4 KB
Original Source

LazySizedIterable

interface LazySizedIterable<T> : SizedIterable<T>

Represents the iterable elements of a database result, which are stored once loaded on first access.

MembersMembers & Extensions

Properties

loadedResult

Link copied to clipboard

abstract var loadedResult: List<T>?

The lazily loaded database result.

Functions

collect

Link copied to clipboard

abstract suspend fun collect(collector: FlowCollector<T>)

copy

Link copied to clipboard

abstract fun copy(): SizedIterable<T>

Returns a new SizedIterable that is a copy of the original.

count

Link copied to clipboard

abstract suspend fun count(): Long

Returns the number of elements stored.

empty

Link copied to clipboard

abstract suspend fun empty(): Boolean

Whether there are no elements stored.

forUpdate

Link copied to clipboard

open fun forUpdate(option: ForUpdateOption = ForUpdateOption.ForUpdate): SizedIterable<T>

Returns a new SizedIterable with a locking read for the elements according to the rules specified by option.

limit

Link copied to clipboard

abstract fun limit(count: Int): SizedIterable<T>

Returns a new SizedIterable containing only count elements.

mapLazy

Link copied to clipboard

infix fun <T, R> SizedIterable<T>.mapLazy(f: (T) -> R): SizedIterable<R>

Returns a SizedIterable containing the lazily evaluated results of applying the function f to each original element.

notForUpdate

Link copied to clipboard

open fun notForUpdate(): SizedIterable<T>

Returns a new SizedIterable without any locking read for the elements.

offset

Link copied to clipboard

abstract fun offset(start: Long): SizedIterable<T>

Returns a new SizedIterable containing only elements starting from the specified start.

orderBy

Link copied to clipboard

abstract fun orderBy(vararg order: Pair<Expression<*>, SortOrder>): SizedIterable<T>

Returns a new SizedIterable with the elements sorted according to the specified expression order.

Generated by Dokka © 2026 Copyright