Mapper Key Values Repo
Full one-to-many key-values repository adapter that applies type mapping via MapperRepo. Composes MapperReadKeyValuesRepo and MapperWriteKeyValuesRepo for read and write delegation.
Parameters
The underlying KeyValuesRepo to delegate operations to
The MapperRepo providing bidirectional key/value type conversions
Type Parameters
The outer key type exposed by this repo
The outer value type exposed by this repo
The inner key type used by the underlying to repo
The inner value type used by the underlying to repo
Constructors
Properties
Provides a mapper for converting keys between inner and outer types.
Flow that emits when all data for a key is cleared.
Flow that emits when a new value is added to a key.
Flow that emits when a value is removed from a key.
Provides a mapper for converting values between inner and outer types.
Functions
Single-key overload of WriteKeyValuesRepo.add accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.add.
Applies the given diff to this KeyValuesRepo: clears keys in MapDiff.removed, sets entries in MapDiff.changed and MapDiff.added.
Computes the diff between this KeyValuesRepo and other, then applies the diff to this repo.
Wraps this KeyValuesRepo as a KeyValueFromKeyValuesRepo, exposing a full read-write key-value interface where each key maps to a List of values.
Wraps this ReadKeyValuesRepo as a ReadKeyValueFromKeyValuesRepo, exposing each key mapped to a List of all associated values.
Clears a specific value from all keys and removes those keys if they become empty.
Computes the difference between all entries in this ReadKeyValuesRepo and the given other map.
Retrieves a paginated list of values associated with the given key.
Retrieves a paginated list of keys.
Retrieves keys that have the specified value associated with them.
Creates a pagination starting from the first page with size equal to the total count of items in this ReadKeyValuesRepo. This effectively creates a single page containing all items.
List-of-pairs overload of WriteKeyValuesRepo.remove.
Vararg overload of WriteKeyValuesRepo.remove.
Single-key overload of WriteKeyValuesRepo.remove accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.remove.
Removes a specific value from all keys that contain it, without clearing all data for those keys.
Single-key overload of WriteKeyValuesRepo.set accepting a list of values.
Single-key vararg overload of WriteKeyValuesRepo.set.
Converts a key from the outer type to the inner type.
Converts a value from the outer type to the inner type.
Converts a value from the inner type to the outer type.
Wraps this KeyValuesRepo with a MapperRepo to expose a mapped KeyValuesRepo.
Wraps this ReadKeyValuesRepo with a MapperRepo to expose a mapped ReadKeyValuesRepo.
Wraps this WriteKeyValuesRepo with a MapperRepo to expose a mapped WriteKeyValuesRepo.
Wraps this KeyValuesRepo with inline conversion lambdas to expose a mapped KeyValuesRepo.
Wraps this ReadKeyValuesRepo with inline conversion lambdas to expose a mapped ReadKeyValuesRepo.
Wraps this WriteKeyValuesRepo with inline conversion lambdas to expose a mapped WriteKeyValuesRepo.