UNPKG

@azure/cosmos

Version:
11 lines 676 B
import { PartitionKeyRange } from "../../client/index.js"; import type { PartitionKeyDefinition, PrimitivePartitionKeyValue } from "../../documents/index.js"; /** * Generate hash of a PartitonKey based on it PartitionKeyDefinition. * @param partitionKey - to be hashed. * @param partitionDefinition - container's partitionKey definition * @returns */ export declare function hashPartitionKey(partitionKey: PrimitivePartitionKeyValue[], partitionDefinition: PartitionKeyDefinition): string; export declare function binarySearchOnPartitionKeyRanges(partitionKeyRanges: PartitionKeyRange[], hashedPartitionKey: string): string | undefined; //# sourceMappingURL=hash.d.ts.map