<reponame>kakarodrigues/DP-900T00A-Azure-Data-Fundamentals<filename>nosql/node_modules/@azure/cosmos/dist-esm/queryExecutionContext/Aggregators/SumAggregator.js<gh_stars>0/** @hidden */
export class SumAggregator {
    /**
     * Add the provided item to aggregation result.
     */
    aggregate(other) {
        if (other === undefined) {
            return;
        }
        if (this.sum === undefined) {
            this.sum = other;
        }
        else {
            this.sum += other;
        }
    }
    /**
     * Get the aggregation result.
     */
    getResult() {
        return this.sum;
    }
}
//# sourceMappingURL=SumAggregator.js.map