MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • ArithmeticValueOperators
ArithmeticValueOperators¶
interface ArithmeticValueOperators : ValueOperators
Operators to arithmetically combine two or more values.
To learn more about aggregation operators, see AggregationOperators.
Inheritors¶
Properties¶
context¶
abstract val context:
field¶
Converts a Kotlin property into a Field.
Functions¶
abs¶
The absolute value of a number.
ceil¶
The smallest integer greater than or equal to the specified value.
div¶
Divides one aggregation value by another.
Refers to field as a nested field of the current value.
Refers to field as a nested field of the current value.
Refers to child as a nested field of the current field.
floor¶
The largest integer less than or equal to the specified value.
get¶
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
minus¶
Subtracts one aggregation value from another.
of¶
Refers to a Kotlin value within an aggregation value.
Refers to a BsonType within an aggregation value.
Refers to a field within an aggregation value.
Refers to a field within an aggregation value.
plus¶
Sums two aggregation values.
times¶
Multiplies two or more aggregation values.
unsafe¶
Refers to a field child of the current field, with no compile-time safety.
open infix fun <Root, Child> KProperty1<Root, *>.unsafe(child: KProperty1<*, Child>): Field<Root, Child>
Refers to a field child of the current field, without checking that it is a field available on the current object.
Refers to a field child of the current field, without checking that it is a field available on the current object.
Refers to a field child of the current field, without checking that it is a field available on the current object.
Refers to a field child of the current field, without checking that it is a field available on the current object.