//tempest2/app.cash.tempest2/Scannable
Scannable¶
interface Scannable<K : Any, I : Any>
Inheritors¶
InlineView |
SecondaryIndex |
Functions¶
Name | Summary |
---|---|
scan | [jvm] open fun scan(): Page<K, I> open fun scan(initialOffset: Offset<K>?): Page<K, I> open fun scan(config: ScanConfig): Page<K, I> open fun scan(config: ScanConfig, initialOffset: Offset<K>?): Page<K, I> [jvm] abstract fun scan(pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null, workerId: WorkerId? = null): Page<K, I> Scans up to the pageSize items or a maximum of 1 MB of data. This limit applies before the filter expression is evaluated. |
scanAll | [jvm] open fun scanAll(): Sequence<Page<K, I>> open fun scanAll(initialOffset: Offset<K>?): Sequence<Page<K, I>> [jvm] open fun scanAll(config: ScanConfig): Sequence<Page<K, I>> open fun scanAll(config: ScanConfig, initialOffset: Offset<K>?): Sequence<Page<K, I>> abstract fun scanAll(pageSize: Int = 100, consistentRead: Boolean = false, filterExpression: Expression? = null, initialOffset: Offset<K>? = null): Sequence<Page<K, I>> Executes a scan and returns a sequence of pages that contains all results, regardless of page size. New pages will be fetched as needed when the resulting sequence is enumerated. |
scanAllContents | [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> 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. |