Skip to content

//tempest2/app.cash.tempest2/Scannable/scanAllContents

scanAllContents

[jvm]\ abstract fun scanAllContents(pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null): Sequence<I>

Executes a scan and returns a sequence that contains all results, regardless of page size. New pages will be fetched as needed when the resulting sequence is enumerated.

[jvm]\ open fun scanAllContents(): Sequence<I>

open fun scanAllContents(initialOffset: Offset<K>?): Sequence<I>

[jvm]\ open fun scanAllContents(config: ScanConfig): Sequence<I>

open fun scanAllContents(config: ScanConfig, initialOffset: Offset<K>?): Sequence<I>

Executes a scan and returns a sequence that contains all results, regardless of page size. New pages will be fetched as needed when the resulting sequence is enumerated.

This method doesn’t support parallel scans. workerId, if provided as part of config, will be ignored.