Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard

Generate a Sequence of all records.

Link copied to clipboard
fun <K, V, Prefix> KeyValueStore<K, V>.prefixScanAsSequence(prefix: Prefix, prefixKeySerializer: Serializer<Prefix>): Sequence<KeyValue<K, V>>

Iterate over keys based on the key prefix.

Link copied to clipboard
fun <K, V> KeyValueStore<K, V>.rangeAsSequence(from: K? = null, to: K? = null): Sequence<KeyValue<K, V>>

Generate a Sequence of a range of records.

Link copied to clipboard

Generate a Sequence of all records, in reverse

Link copied to clipboard
fun <K, V> KeyValueStore<K, V>.reverseRangeAsSequence(from: K? = null, to: K? = null): Sequence<KeyValue<K, V>>

Generate a Sequence of a reverse-range of records.

Link copied to clipboard

Iterate over all records.

Link copied to clipboard
inline fun <K, V, Prefix, Result> KeyValueStore<K, V>.usePrefixScan(prefix: Prefix, prefixKeySerializer: Serializer<Prefix>, operation: KeyValueIteratorOperation<K, V, Result>): Result

Iterate over records based on the key prefix.

Link copied to clipboard
inline fun <K, V, Result> KeyValueStore<K, V>.useRange(from: K? = null, to: K? = null, operation: KeyValueIteratorOperation<K, V, Result>): Result

Iterate over a range of records.

Link copied to clipboard

Reverse-iterate over all records.

Link copied to clipboard
inline fun <K, V, Result> KeyValueStore<K, V>.useReverseRange(from: K? = null, to: K? = null, operation: KeyValueIteratorOperation<K, V, Result>): Result

Reverse-iterate over a range of records.