MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.accumulators • ValueAccumulators
ValueAccumulators¶
interface ValueAccumulators<From : Any, Into : Any> : ValueOperators, CompoundBsonNode
Supertype for all interface operators describing accumulation operators.
To register a custom accumulator, use accept.
Most of the time, end-users will be using the subtype AccumulationOperators instead of this interface.
Because accumulation operators are valued from aggregation operators, this interface extends ValueOperators.
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.
toBson¶
open fun toBson():
Writes the result of simplifying to a new Bson.
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.
writeTo¶
abstract fun writeTo(writer: )
Writes the result of simplifying this expression into writer.