| Package | Description |
|---|---|
| org.springframework.data.mongodb |
Spring Data's MongoDB abstraction.
|
| org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
| org.springframework.data.mongodb.core.query |
MongoDB specific query and update support.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BindableMongoExpression
A
MongoExpression using the ParameterBindingDocumentCodec for parsing a raw (json)
expression. |
| Modifier and Type | Method and Description |
|---|---|
static MongoExpression |
MongoExpression.create(String expression)
Create a new
MongoExpression from plain String (eg. |
static MongoExpression |
MongoExpression.create(String expression,
Object... args)
Create a new
MongoExpression from plain String containing placeholders (eg. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AggregationExpression
An
AggregationExpression can be used with field expressions in aggregation pipeline stages like
project and group. |
| Modifier and Type | Class and Description |
|---|---|
static class |
AccumulatorOperators.Avg
AggregationExpression for $avg. |
static class |
AccumulatorOperators.CovariancePop
AggregationExpression for $covariancePop. |
static class |
AccumulatorOperators.CovarianceSamp
AggregationExpression for $covarianceSamp. |
static class |
AccumulatorOperators.ExpMovingAvg
AccumulatorOperators.ExpMovingAvg calculates the exponential moving average of numeric values. |
static class |
AccumulatorOperators.Max
AggregationExpression for $max. |
static class |
AccumulatorOperators.Min
AggregationExpression for $min. |
static class |
AccumulatorOperators.StdDevPop
AggregationExpression for $stdDevPop. |
static class |
AccumulatorOperators.StdDevSamp
AggregationExpression for $stdDevSamp. |
static class |
AccumulatorOperators.Sum
AggregationExpression for $sum. |
class |
AggregationSpELExpression
An
AggregationExpression that renders a MongoDB Aggregation Framework expression from the AST of a
SpEL
expression. |
static class |
ArithmeticOperators.Abs
AggregationExpression for $abs. |
static class |
ArithmeticOperators.ACos
An
expression that calculates the inverse cosine of a value. |
static class |
ArithmeticOperators.ACosh
An
expression that calculates the inverse hyperbolic cosine of a value. |
static class |
ArithmeticOperators.Add
AggregationExpression for $add. |
static class |
ArithmeticOperators.ASin
An
expression that calculates the inverse sine of a value. |
static class |
ArithmeticOperators.ASinh
An
expression that calculates the inverse hyperbolic sine of a value |
static class |
ArithmeticOperators.ATan
An
expression that calculates the inverse tangent of a value. |
static class |
ArithmeticOperators.ATan2
An
expression that calculates the inverse tangent of y / x, where y and x are the
first and second values passed to the expression respectively. |
static class |
ArithmeticOperators.ATanh
An
expression that calculates the inverse hyperbolic tangent of a value |
static class |
ArithmeticOperators.Ceil
AggregationExpression for $ceil. |
static class |
ArithmeticOperators.Cos
An
expression that calculates the cosine of a value that is measured in radians. |
static class |
ArithmeticOperators.Cosh
An
expression that calculates the hyperbolic cosine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static class |
ArithmeticOperators.Derivative
Value object to represent an
expression that calculates the average rate of change
within the specified window. |
static class |
ArithmeticOperators.Divide
AggregationExpression for $divide. |
static class |
ArithmeticOperators.Exp
AggregationExpression for $exp. |
static class |
ArithmeticOperators.Floor
AggregationExpression for $floor. |
static class |
ArithmeticOperators.Integral
Value object to represent an
expression that calculates the approximation for the
mathematical integral value. |
static class |
ArithmeticOperators.Ln
AggregationExpression for $ln. |
static class |
ArithmeticOperators.Log
AggregationExpression for $log. |
static class |
ArithmeticOperators.Log10
AggregationExpression for $log10. |
static class |
ArithmeticOperators.Mod
AggregationExpression for $mod. |
static class |
ArithmeticOperators.Multiply
AggregationExpression for $multiply. |
static class |
ArithmeticOperators.Pow
AggregationExpression for $pow. |
static class |
ArithmeticOperators.Rand
ArithmeticOperators.Rand returns a floating value between 0 and 1. |
static class |
ArithmeticOperators.Round
ArithmeticOperators.Round rounds a number to a whole integer or to a specified decimal place. |
static class |
ArithmeticOperators.Sin
An
expression that calculates the sine of a value that is measured in radians. |
static class |
ArithmeticOperators.Sinh
An
expression that calculates the hyperbolic sine of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static class |
ArithmeticOperators.Sqrt
AggregationExpression for $sqrt. |
static class |
ArithmeticOperators.Subtract
AggregationExpression for $subtract. |
static class |
ArithmeticOperators.Tan
An
expression that calculates the tangent of a value that is measured in radians. |
static class |
ArithmeticOperators.Tanh
An
expression that calculates the hyperbolic tangent of a value that is measured in
ArithmeticOperators.AngularUnit.RADIANS. |
static class |
ArithmeticOperators.Trunc
AggregationExpression for $trunc. |
static class |
ArrayOperators.ArrayElemAt
AggregationExpression for $arrayElementAt. |
static class |
ArrayOperators.ArrayToObject
AggregationExpression for $arrayToObject that transforms an array into a single document. |
static class |
ArrayOperators.ConcatArrays
AggregationExpression for $concatArrays. |
static class |
ArrayOperators.Filter
$filter AggregationExpression allows to select a subset of the array to return based on the
specified condition. |
static class |
ArrayOperators.First
AggregationExpression for $first that returns the first element in an array. |
static class |
ArrayOperators.In
AggregationExpression for $in. |
static class |
ArrayOperators.IndexOfArray
AggregationExpression for $indexOfArray. |
static class |
ArrayOperators.IsArray
AggregationExpression for $isArray. |
static class |
ArrayOperators.Last
AggregationExpression for $last that returns the last element in an array. |
static class |
ArrayOperators.RangeOperator
AggregationExpression for $range. |
static class |
ArrayOperators.Reduce
AggregationExpression for $reduce. |
static class |
ArrayOperators.Reduce.PropertyExpression |
static class |
ArrayOperators.ReverseArray
AggregationExpression for $reverseArray. |
static class |
ArrayOperators.Size
AggregationExpression for $size. |
static class |
ArrayOperators.Slice
AggregationExpression for $slice. |
static class |
ArrayOperators.Zip
AggregationExpression for $zip. |
static class |
BooleanOperators.And
AggregationExpression for $and. |
static class |
BooleanOperators.Not
AggregationExpression for $not. |
static class |
BooleanOperators.Or
AggregationExpression for $or. |
protected static class |
BucketOperationSupport.OperationOutput
Output field that uses a Mongo operation (expression object) to generate an output field value.
|
protected static class |
BucketOperationSupport.Output
Encapsulates an output field in a bucket aggregation stage.
|
protected static class |
BucketOperationSupport.Outputs
Encapsulates
BucketOperationSupport.Outputs. |
static class |
ComparisonOperators.Cmp
AggregationExpression for $cmp. |
static class |
ComparisonOperators.Eq
AggregationExpression for $eq. |
static class |
ComparisonOperators.Gt
AggregationExpression for $gt. |
static class |
ComparisonOperators.Gte
AggregationExpression for $gte. |
static class |
ComparisonOperators.Lt
AggregationExpression for $lt. |
static class |
ComparisonOperators.Lte
AggregationExpression for $lte. |
static class |
ComparisonOperators.Ne
AggregationExpression for $ne. |
static class |
ConditionalOperators.Cond
Encapsulates the aggregation framework
$cond operator. |
static class |
ConditionalOperators.IfNull
Encapsulates the aggregation framework
$ifNull operator. |
static class |
ConditionalOperators.Switch
AggregationExpression for $switch. |
static class |
ConditionalOperators.Switch.CaseOperator
Encapsulates the aggregation framework case document inside a
$switch-operation. |
static class |
ConvertOperators.Convert
AggregationExpression for $convert that converts a value to a specified type. |
static class |
ConvertOperators.DegreesToRadians
AggregationExpression for $degreesToRadians that converts an input value measured in degrees to radians. |
static class |
ConvertOperators.ToBool
AggregationExpression for $toBool that converts a value to boolean. |
static class |
ConvertOperators.ToDate
AggregationExpression for $toDate that converts a value to date. |
static class |
ConvertOperators.ToDecimal
AggregationExpression for $toDecimal that converts a value to decimal. |
static class |
ConvertOperators.ToDouble
AggregationExpression for $toDouble that converts a value to double. |
static class |
ConvertOperators.ToInt
AggregationExpression for $toInt that converts a value to integer. |
static class |
ConvertOperators.ToLong
AggregationExpression for $toLong that converts a value to long. |
static class |
ConvertOperators.ToObjectId
AggregationExpression for $toObjectId that converts a value to objectId. |
static class |
ConvertOperators.ToString
AggregationExpression for $toString that converts a value to string. |
static class |
DataTypeOperators.Type
AggregationExpression for $type. |
static class |
DateOperators.DateAdd
AggregationExpression for $dateAdd. |
static class |
DateOperators.DateDiff
AggregationExpression for $dateDiff. |
static class |
DateOperators.DateFromParts
AggregationExpression for $dateFromParts. |
static class |
DateOperators.DateFromString
AggregationExpression for $dateFromString. |
static class |
DateOperators.DateToParts
AggregationExpression for $dateToParts. |
static class |
DateOperators.DateToString
AggregationExpression for $dateToString. |
static class |
DateOperators.DayOfMonth
AggregationExpression for $dayOfMonth. |
static class |
DateOperators.DayOfWeek
AggregationExpression for $dayOfWeek. |
static class |
DateOperators.DayOfYear
AggregationExpression for $dayOfYear. |
static class |
DateOperators.Hour
AggregationExpression for $hour. |
static class |
DateOperators.IsoDateFromParts
AggregationExpression for $dateFromParts using ISO week date. |
static class |
DateOperators.IsoDayOfWeek
AggregationExpression for $isoDayOfWeek. |
static class |
DateOperators.IsoWeek
AggregationExpression for $isoWeek. |
static class |
DateOperators.IsoWeekYear
AggregationExpression for $isoWeekYear. |
static class |
DateOperators.Millisecond
AggregationExpression for $millisecond. |
static class |
DateOperators.Minute
AggregationExpression for $minute. |
static class |
DateOperators.Month
AggregationExpression for $month. |
static class |
DateOperators.Second
AggregationExpression for $second. |
static class |
DateOperators.TimezonedDateAggregationExpression
AggregationExpression capable of setting a given DateOperators.Timezone. |
static class |
DateOperators.Week
AggregationExpression for $week. |
static class |
DateOperators.Year
AggregationExpression for $year. |
static class |
DocumentOperators.DenseRank
DocumentOperators.DenseRank resolves the current document position (the rank) relative to other documents. |
static class |
DocumentOperators.DocumentNumber
DocumentOperators.DocumentNumber resolves the current document position. |
static class |
DocumentOperators.Rank
DocumentOperators.Rank resolves the current document position (the rank) relative to other documents. |
static class |
DocumentOperators.Shift
Shift applies an expression to a document in a specified position relative to the current document.
|
static class |
EvaluationOperators.EvaluationOperatorFactory.Expr
Allows the use of aggregation expressions within the query language.
|
static class |
LiteralOperators.Literal
AggregationExpression for $literal. |
static class |
ObjectOperators.MergeObjects
AggregationExpression for $mergeObjects that combines multiple documents into a single document. |
static class |
ObjectOperators.ObjectToArray
AggregationExpression for $objectToArray that converts a document to an array of documents that each contains two fields k and v. |
static class |
ScriptOperators.Accumulator
ScriptOperators.Accumulator defines a custom aggregation
$accumulator operator,
one that maintains its state (e.g. totals, maximums, minimums, and related data) as documents progress through the
pipeline, in JavaScript. |
static class |
ScriptOperators.Function
ScriptOperators.Function defines a custom aggregation
$function in JavaScript. |
static class |
SetOperators.AllElementsTrue
AggregationExpression for $allElementsTrue. |
static class |
SetOperators.AnyElementTrue
AggregationExpression for $anyElementTrue. |
static class |
SetOperators.SetDifference
AggregationExpression for $setDifference. |
static class |
SetOperators.SetEquals
AggregationExpression for $setEquals. |
static class |
SetOperators.SetIntersection
AggregationExpression for $setIntersection. |
static class |
SetOperators.SetIsSubset
AggregationExpression for $setIsSubset. |
static class |
SetOperators.SetUnion
AggregationExpression for $setUnion. |
static class |
StringOperators.Concat
AggregationExpression for $concat. |
static class |
StringOperators.IndexOfBytes
AggregationExpression for $indexOfBytes. |
static class |
StringOperators.IndexOfCP
AggregationExpression for $indexOfCP. |
static class |
StringOperators.LTrim
AggregationExpression for $ltrim which removes whitespace or the specified characters from the
beginning of a string. |
static class |
StringOperators.RegexFind
AggregationExpression for $regexFind which applies a regular expression (regex) to a string and
returns information on the first matched substring. |
static class |
StringOperators.RegexFindAll
AggregationExpression for $regexFindAll which applies a regular expression (regex) to a string and
returns information on all the matched substrings. |
static class |
StringOperators.RegexMatch
AggregationExpression for $regexMatch which applies a regular expression (regex) to a string and
returns a boolean that indicates if a match is found or not. |
static class |
StringOperators.ReplaceAll
AggregationExpression for $replaceAll which replaces all instances of a search string in an input
string with a replacement string. |
static class |
StringOperators.ReplaceOne
AggregationExpression for $replaceOne which replaces the first instance of a search string in an
input string with a replacement string. |
static class |
StringOperators.RTrim
AggregationExpression for $rtrim which removes whitespace or the specified characters from the end
of a string. |
static class |
StringOperators.Split
AggregationExpression for $split. |
static class |
StringOperators.StrCaseCmp
AggregationExpression for $strcasecmp. |
static class |
StringOperators.StrLenBytes
AggregationExpression for $strLenBytes. |
static class |
StringOperators.StrLenCP
AggregationExpression for $strLenCP. |
static class |
StringOperators.Substr
AggregationExpression for $substr. |
static class |
StringOperators.SubstrCP
AggregationExpression for $substrCP. |
static class |
StringOperators.ToLower
AggregationExpression for $toLower. |
static class |
StringOperators.ToUpper
AggregationExpression for $toUpper. |
static class |
StringOperators.Trim
AggregationExpression for $trim which removes whitespace or the specified characters from the
beginning and end of a string. |
static class |
VariableOperators.Let
AggregationExpression for $let that binds AggregationExpression to variables for use in the
specified in expression, and returns the result of the expression. |
static class |
VariableOperators.Map
AggregationExpression for $map. |
| Modifier and Type | Method and Description |
|---|---|
static AggregationExpression |
AggregationExpression.from(MongoExpression expression)
Create an
AggregationExpression out of a given MongoExpression to ensure the resulting
Document is mapped against the AggregationOperationContext. |
| Modifier and Type | Method and Description |
|---|---|
Field.FieldProjectionExpression |
Field.project(MongoExpression expression)
Project a given
MongoExpression to a field included in the
result. |
Field |
Field.projectAs(MongoExpression expression,
String field)
Project a given
MongoExpression to a field included in the
result. |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.