Mapper Read Key Value Repo
Read-only key-value repository adapter that applies type mapping via MapperRepo. Converts outer (From) key/value types to inner (To) types before delegating to to, and converts results back from inner to outer types.
Parameters
The underlying ReadKeyValueRepo 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
Functions
Wraps this ReadKeyValueRepo as a ReadCRUDFromKeyValueRepo, exposing CRUD read operations.
Wraps this ReadKeyValueRepo (mapping keys to iterables) as a ReadKeyValuesFromKeyValueRepo, exposing a one-to-many read interface.
Computes the difference between all entries in this ReadKeyValueRepo and the given other map.
This method should use sorted by Keys search and return the PaginationResult. By default, it should use ascending sort for Keys
This method should use sorted by Keys search and return the PaginationResult. By default, it should use ascending sort for Keys.
Creates a pagination starting from the first page with size equal to the total count of items in this ReadKeyValueRepo. This effectively creates a single page containing all items.
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.
This method should use sorted by Keys search and return the PaginationResult. By default, it should use ascending sort for Keys
Wraps this ReadKeyValueRepo with a MapperRepo to expose a mapped ReadKeyValueRepo.
Wraps this ReadKeyValueRepo with inline conversion lambdas to expose a mapped ReadKeyValueRepo.