DocumentDB LogoDocumentDB
HomeGitHubDiscordDocsPackagesBlogs
Back to DocumentationMQL Documentation
Commands
Aggregation
Query And Write
Operators
Accumulators
Aggregation
Arithmetic Expression
Array Expression
Array Query
Array Update
Bitwise
Bitwise Query
Bitwise Update
Comparison Query
Conditional Expression
Data Size
Date Expression
Element Query
Evaluation Query
Field Update
Geospatial
Literal Expression
Logical Query
Miscellaneous
Miscellaneous Query
Object Expression
Projection
Set Expression
Timestamp Expression
Variable Expression
Window Operators
$covariancePop
$covarianceSamp
$denseRank
$derivative
$documentNumber
$expMovingAvg
$integral
$linearFill
$locf
$rank
$shift usage on DocumentDB
Reference/Operators/Window Operators

MongoDB Query Language (MQL) Window Operators Operators

$covariancePop

The $covariancePop operator returns the covariance of two numerical expressions

$covarianceSamp

The $covarianceSamp operator returns the covariance of a sample of two numerical expressions

$denseRank

The $denseRank operator assigns and returns a positional ranking for each document within a partition based on a specified sort order

$derivative

The $derivative operator calculates the average rate of change of the value of a field within a specified window.

$documentNumber

The $documentNumber operator assigns and returns a position for each document within a partition based on a specified sort order

$expMovingAvg

The $expMovingAvg operator calculates the moving average of a field based on the specified number of documents to hold the highest weight

$integral

The $integral operator calculates the area under a curve with the specified range of documents forming the adjacent documents for the calculation.

$linearFill

The $linearFill operator interpolates missing values in a sequence of documents using linear interpolation.

$locf

The $locf operator propagates the last observed non-null value forward within a partition in a windowed query.

$rank

The $rank operator ranks documents within a partition based on a specified sort order.

$shift usage on DocumentDB

A window operator that shifts values within a partition and returns the shifted value.

Copyright © DocumentDB a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.