// 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