@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for SQL API
21 lines • 899 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { ParallelQueryExecutionContextBase } from "./parallelQueryExecutionContextBase";
/**
* Provides the ParallelQueryExecutionContext.
* This class is capable of handling parallelized queries and derives from ParallelQueryExecutionContextBase.
* @hidden
*/
export class ParallelQueryExecutionContext extends ParallelQueryExecutionContextBase {
// Instance members are inherited
// Overriding documentProducerComparator for ParallelQueryExecutionContexts
/**
* Provides a Comparator for document producers using the min value of the corresponding target partition.
* @returns Comparator Function
* @hidden
*/
documentProducerComparator(docProd1, docProd2) {
return docProd1.generation - docProd2.generation;
}
}
//# sourceMappingURL=parallelQueryExecutionContext.js.map