trait Accumulator extends AnyRef
- Alphabetic
- By Inheritance
- Accumulator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
addToSet[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing all unique values that results from applying the given expression to each document in a group of documents that share the same group by key.
Gets a field name for a $group operation representing all unique values that results from applying the given expression to each document in a group of documents that share the same group by key.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/addToSet/
-
abstract
def
avg[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the average of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the average of the values of the given expression when applied to all members of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/avg/
-
abstract
def
combinedWith(anotherAccumulator: Accumulator): Accumulator
Merges 2 field accumulators together.
Merges 2 field accumulators together.
- anotherAccumulator
the accumulator to be merged with
- returns
the accumulator
-
abstract
def
first[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the value of the given expression when applied to the first member of the group.
Gets a field name for a $group operation representing the value of the given expression when applied to the first member of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/first/
-
abstract
def
last[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.
Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/last/
-
abstract
def
max[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/max/
-
abstract
def
min[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the minimum of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the minimum of the values of the given expression when applied to all members of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/min/
-
abstract
def
push[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.
Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/push/
-
abstract
def
stdDevPop[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
Use if the values encompass the entire population of data you want to represent and do not wish to generalize about a larger population.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/stdDevPop/
- Since
3.2
-
abstract
def
stdDevSamp[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.
Use if the values encompass a sample of a population of data from which to generalize about the population.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/stdDevSamp/
-
abstract
def
sum[T](fieldName: String, expression: T): Accumulator
Gets a field name for a $group operation representing the sum of the values of the given expression when applied to all members of the group.
Gets a field name for a $group operation representing the sum of the values of the given expression when applied to all members of the group.
- fieldName
the field name
- expression
the expression https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#std-label-aggregation-expressions
- returns
the accumulator https://docs.mongodb.com/manual/reference/operator/aggregation/sum/
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated