MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.accumulators • ArithmeticValueAccumulators
ArithmeticValueAccumulators¶
interface ArithmeticValueAccumulators<From : Any, Into : Any> : ValueAccumulators<From, Into>
Accumulators to perform arithmetic operations.
To learn more about accumulation operators, see AccumulationOperators
.
Inheritors¶
Properties¶
context
¶
abstract val context:
field
¶
Converts a Kotlin property into a Field
.
Functions¶
accept
¶
Adds a new node
as a child of this one.
acceptAll
¶
Adds any number of nodes
into this one.
div
¶
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.
freeze
¶
abstract override fun freeze()
Makes this expression immutable.
get
¶
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
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
.
simplify
¶
Returns a simplified (but equivalent) expression to the current expression.
sum
¶
Calculates and returns the collective sum of numeric values. Non-numeric values are ignored.
Calculates and returns the collective sum of numeric values. Non-numeric values are ignored.
toBson
¶
open fun toBson():
Writes the result of simplifying
to a new Bson.
writeTo
¶
abstract fun writeTo(writer: )
Writes the result of simplifying
this expression into writer
.