@tanstack/db-ivm
Version:
Incremental View Maintenance for TanStack DB based on Differential Dataflow
18 lines (17 loc) • 599 B
TypeScript
/**
* A map from a difference collection trace's keys -> (value, multiplicities) that changed.
* Used in operations like join and reduce where the operation needs to
* exploit the key-value structure of the data to run efficiently.
*/
export declare class ValueIndex<K, V> {
#private;
constructor();
toString(indent?: boolean): string;
get(key: K): [V, number] | undefined;
getMultiplicity(key: K): number;
entries(): MapIterator<[K, [V, number]]>;
has(key: K): boolean;
delete(key: K): void;
get size(): number;
addValue(key: K, v: [V, number]): void;
}