@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API
26 lines • 962 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.createParallelQueryResult = createParallelQueryResult;
/**
* 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
*/
function createParallelQueryResult(buffer, partitionKeyRangeMap, updatedContinuationRanges, orderByItems) {
const result = {
buffer,
partitionKeyRangeMap,
updatedContinuationRanges,
};
if (orderByItems !== undefined) {
result.orderByItems = orderByItems;
}
return result;
}
//# sourceMappingURL=parallelQueryResult.js.map