Skip to content

//android-paging/com.squareup.sqldelight.android.paging/QueryDataSourceFactory

QueryDataSourceFactory

[androidJvm] class QueryDataSourceFactory<RowType : Any>(queryProvider: (limit: Long, offset: Long) -> Query<RowType>, countQuery: Query<Long>, transacter: Transacter) : DataSource.Factory<Int, RowType>

Functions

Name Summary
create [androidJvm]
Content
open override fun create(): PositionalDataSource<RowType>


map [androidJvm]
Content
@NonNull()

open fun <ToValue : Any> map(@NonNull()p0: Function<RowType, ToValue>): DataSource.Factory<Int, ToValue>


mapByPage [androidJvm]
Content
@NonNull()

open fun <ToValue : Any> mapByPage(@NonNull()p0: Function<MutableList<RowType>, MutableList<ToValue>>): DataSource.Factory<Int, ToValue>