Packages

object Projection extends Projection

Linear Supertypes
Projection, AsJava, AsJavaConverters, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Projection
  2. Projection
  3. AsJava
  4. AsJavaConverters
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJava[K, V](m: Map[K, V]): ConcurrentMap[K, V]
    Definition Classes
    AsJavaConverters
  6. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  7. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  8. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  9. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  10. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  11. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  12. def asJava[A](b: Buffer[A]): List[A]
    Definition Classes
    AsJavaConverters
  13. def asJava[A](i: Iterable[A]): Iterable[A]
    Definition Classes
    AsJavaConverters
  14. def asJava[A](i: Iterator[A]): Iterator[A]
    Definition Classes
    AsJavaConverters
  15. def asJavaCollection[A](i: Iterable[A]): Collection[A]
    Definition Classes
    AsJavaConverters
  16. def asJavaDictionary[K, V](m: Map[K, V]): Dictionary[K, V]
    Definition Classes
    AsJavaConverters
  17. def asJavaEnumeration[A](i: Iterator[A]): Enumeration[A]
    Definition Classes
    AsJavaConverters
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  19. def combinedWith(anotherProjection: Projection): Projection

    Merges 2 sequences of projection operations together.

    Merges 2 sequences of projection operations together. If there are duplicate keys, the last one takes precedence.

    anotherProjection

    the projection to be merged with

    returns

    the projection

    Definition Classes
    Projection
  20. def computed[T](fieldName: String, expression: T): Projection

    Creates a projection of a field whose value is computed from the given expression.

    Creates a projection of a field whose value is computed from the given expression. Projection with an expression is only supported using the $project aggregation pipeline stage.

    fieldName

    the field name

    expression

    the expression

    returns

    the projection

    Definition Classes
    Projection
  21. def computedSearchMeta(fieldName: String): Projection

    Creates a projection of a field whose value is equal to the $$SEARCH_META variable, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregate.search(SearchCollector,SearchOptions).

    Creates a projection of a field whose value is equal to the $$SEARCH_META variable, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregate.search(SearchCollector,SearchOptions). Calling this method is equivalent to calling computed(String,Object) with "$$SEARCH_META" as the second argument.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  22. def elemMatch(fieldName: String, filter: Filter): Projection

    Creates a projection that includes for the given field only the first element of the array value of that field that matches the given query filter.

    Creates a projection that includes for the given field only the first element of the array value of that field that matches the given query filter.

    fieldName

    the field name

    filter

    the filter to apply

    returns

    the projection

    Definition Classes
    Projection
  23. def elemMatch(fieldName: String): Projection

    Creates a projection that includes for the given field only the first element of an array that matches the query filter.

    Creates a projection that includes for the given field only the first element of an array that matches the query filter. This is referred to as the positional $ operator.

    fieldName

    the field name whose value is the array

    returns

    the projection

    Definition Classes
    Projection
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(other: Any): Boolean
    Definition Classes
    Projection → AnyRef → Any
  26. def exclude(fieldNames: Seq[String]): Projection

    Creates a projection that excludes all of the given fields.

    Creates a projection that excludes all of the given fields.

    fieldNames

    the field names

    returns

    the projection

    Definition Classes
    Projection
  27. def exclude(fieldName: String): Projection

    Creates a projection that excludes all of the given fields.

    Creates a projection that excludes all of the given fields.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  28. def excludeId: Projection

    Creates a projection that excludes the _id field.

    Creates a projection that excludes the _id field. This suppresses the automatic inclusion of _id that is the default, even when other fields are explicitly included.

    returns

    the projection

    Definition Classes
    Projection
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  30. def hashCode(): Int
    Definition Classes
    Projection → AnyRef → Any
  31. def include(fieldNames: Seq[String]): Projection

    Creates a projection that includes all of the given fields.

    Creates a projection that includes all of the given fields.

    fieldNames

    the field names

    returns

    the projection

    Definition Classes
    Projection
  32. def include(fieldName: String): Projection

    Creates a projection that includes all of the given fields.

    Creates a projection that includes all of the given fields.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def meta(fieldName: String, metaFieldName: String): Projection

    Creates a $meta projection to the given field name for the given meta field name.

    Creates a $meta projection to the given field name for the given meta field name.

    fieldName

    the field name

    metaFieldName

    the meta field name

    returns

    the projection

    Definition Classes
    Projection
  35. def metaSearchHighlights(fieldName: String): Projection

    Creates a projection to the given field name of the searchHighlights, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregates.search(SearchCollector,SearchOptions).

    Creates a projection to the given field name of the searchHighlights, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregates.search(SearchCollector,SearchOptions). Calling this method is equivalent to calling meta String,String) with "searchHighlights" as the second argument.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  36. def metaSearchScore(fieldName: String): Projection

    Creates a projection to the given field name of the searchScore, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregate.search(SearchCollector,SearchOptions).

    Creates a projection to the given field name of the searchScore, for use with Aggregate.search(SearchOperator,SearchOptions) / Aggregate.search(SearchCollector,SearchOptions). Calling this method is equivalent to calling meta(String,String) with "searchScore" as the second argument.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  37. def metaTextScore(fieldName: String): Projection

    Creates a projection to the given field name of the textScore, for use with text queries.

    Creates a projection to the given field name of the textScore, for use with text queries.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  38. def metaVectorSearchScore(fieldName: String): Projection

    Creates a projection to the given field name of the vectorSearchScore, for use with Aggregate.vectorSearch(FieldSearchPath,Seq,String,Long,Long,VectorSearchOptions).

    Creates a projection to the given field name of the vectorSearchScore, for use with Aggregate.vectorSearch(FieldSearchPath,Seq,String,Long,Long,VectorSearchOptions). Calling this method is equivalent to calling meta(String,String) with "vectorSearchScore" as the second argument.

    fieldName

    the field name

    returns

    the projection

    Definition Classes
    Projection
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  42. def slice(fieldName: String, limit: Int): Projection

    Creates a projection to the given field name of a slice of the array value of that field.

    Creates a projection to the given field name of a slice of the array value of that field.

    fieldName

    the field name

    limit

    the number of elements to project.

    returns

    the projection

    Definition Classes
    Projection
  43. def slice(fieldName: String, skip: Int, limit: Int): Projection

    Creates a projection to the given field name of a slice of the array value of that field.

    Creates a projection to the given field name of a slice of the array value of that field.

    fieldName

    the field name

    skip

    the number of elements to skip before applying the limit

    limit

    the number of elements to project

    returns

    the projection

    Definition Classes
    Projection
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    Projection → AnyRef → Any
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Projection

Inherited from AsJava

Inherited from AsJavaConverters

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped