MCPcopy Create free account
hub / github.com/TanStack/db / move

Method move

packages/db-ivm/src/operators/topKState.ts:58–65  ·  view source on GitHub ↗

* Move the topK window. Only works with TopKArray implementation.

(options: { offset?: number; limit?: number })

Source from the content-addressed store, hash-verified

56 * Move the topK window. Only works with TopKArray implementation.
57 */
58 move(options: { offset?: number; limit?: number }): TopKMoveChanges<[K, T]> {
59 if (!(this.#topK instanceof TopKArray)) {
60 throw new Error(
61 `Cannot move B+-tree implementation of TopK with fractional index`,
62 )
63 }
64 return this.#topK.move(options)
65 }
66
67 #updateMultiplicity(
68 key: K,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected