Class TransformedMap<K, V, TK, TV, M>

A map adapter that serializes keys and/or values with codec. Key codec needs to be monotonic to preserve iteration order.

Type Parameters

Implements

Constructors

Properties

[asyncIterator]: M extends Iterable<[TK, TV]> | AsyncIterable<[TK, TV]>
    ? (() => AsyncIterableIterator<[K, V]>)
    : undefined
[iterator]: M extends Iterable<[TK, TV]>
    ? (() => IterableIterator<[K, V]>)
    : undefined
[rangeQueryable]: M extends RangeQueryable<TK, TV>
    ? true
    : undefined
entries: TransformedMapQuery<K, TK, TV, M, [K, V]>
keyCodec: Codec<K, TK> = ...

Key codec.

keys: TransformedMapQuery<K, TK, TV, M, K>
map: M

Underlying map.

valueCodec: Codec<V, TV> = ...

Value codec.

values: TransformedMapQuery<K, TK, TV, M, V>

Accessors

Methods

Generated using TypeDoc