class Accumulator extends Serializable with AsJava
- Alphabetic
- By Inheritance
- Accumulator
- AsJava
- AsJavaConverters
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- 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/
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava[K, V](m: Map[K, V]): ConcurrentMap[K, V]
- Definition Classes
- AsJavaConverters
- def asJava[K, V](m: Map[K, V]): Map[K, V]
- Definition Classes
- AsJavaConverters
- def asJava[K, V](m: Map[K, V]): Map[K, V]
- Definition Classes
- AsJavaConverters
- def asJava[A](s: Set[A]): Set[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](s: Set[A]): Set[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](s: Seq[A]): List[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](s: Seq[A]): List[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](b: Buffer[A]): List[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](i: Iterable[A]): Iterable[A]
- Definition Classes
- AsJavaConverters
- def asJava[A](i: Iterator[A]): Iterator[A]
- Definition Classes
- AsJavaConverters
- def asJavaCollection[A](i: Iterable[A]): Collection[A]
- Definition Classes
- AsJavaConverters
- def asJavaDictionary[K, V](m: Map[K, V]): Dictionary[K, V]
- Definition Classes
- AsJavaConverters
- def asJavaEnumeration[A](i: Iterator[A]): Enumeration[A]
- Definition Classes
- AsJavaConverters
- 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/
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- Accumulator → AnyRef → Any
- 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/
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- Accumulator → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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/
- 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/
- 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/
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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/
- 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
- 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/
- 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/
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Accumulator → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)