@convex-dev/geospatial
Version:
A geospatial index for Convex
20 lines • 620 B
TypeScript
import { Heap } from "heap-js";
import type { TupleKey } from "../lib/tupleKey.js";
import type { PointSet } from "./zigzag.js";
type HeapEntry = {
tuple: TupleKey;
stream: PointSet;
};
export declare class Union implements PointSet {
private streams;
private heap?;
constructor(streams: Array<PointSet>);
initializeHeap(): Promise<Heap<HeapEntry>>;
current(): Promise<TupleKey | null>;
advance(): Promise<TupleKey | null>;
seek(tuple: TupleKey): Promise<void>;
sizeHint(): Promise<number>;
setPrefetch(prefetch: number): void;
}
export {};
//# sourceMappingURL=union.d.ts.map