@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
23 lines • 829 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* Creates a new ParallelQueryResult with the specified data
* @param buffer - The query result data
* @param partitionKeyRangeMap - Partition key range mappings
* @param updatedContinuationRanges - Updated continuation ranges
* @param orderByItems - Optional array of orderBy items for each buffer item
* @returns A new ParallelQueryResult instance
* @hidden
*/
export function createParallelQueryResult(buffer, partitionKeyRangeMap, updatedContinuationRanges, orderByItems) {
const result = {
buffer,
partitionKeyRangeMap,
updatedContinuationRanges,
};
if (orderByItems !== undefined) {
result.orderByItems = orderByItems;
}
return result;
}
//# sourceMappingURL=parallelQueryResult.js.map