UNPKG

@azure/cosmos

Version:
22 lines 1.02 kB
import { ClientContext } from "../ClientContext"; import { QueryRange } from "./QueryRange"; /** @hidden */ export declare const PARITIONKEYRANGE: import("../common/constants").PartitionKeyRangePropertiesNames; /** @hidden */ export declare class SmartRoutingMapProvider { private partitionKeyRangeCache; constructor(clientContext: ClientContext); private static _secondRangeIsAfterFirstRange; private static _isSortedAndNonOverlapping; private static _stringMax; private static _stringCompare; private static _subtractRange; /** * Given the sorted ranges and a collection, invokes the callback on the list of overlapping partition key ranges * @param callback - Function execute on the overlapping partition key ranges result, * takes two parameters error, partition key ranges * @hidden */ getOverlappingRanges(collectionLink: string, sortedRanges: QueryRange[]): Promise<any[]>; } //# sourceMappingURL=smartRoutingMapProvider.d.ts.map