Packages

object Filter extends AsJava

Linear Supertypes
AsJava, AsJavaConverters, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Filter
  2. AsJava
  3. AsJavaConverters
  4. AnyRef
  5. 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. def all[A](fieldName: String, values: Seq[A]): Filter

    Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.

    Creates a filter that matches all documents where the value of a field is an array that contains all the specified values.

    fieldName

    the field name

    values

    the list of values

    returns

    the filter

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asJava[K, V](m: Map[K, V]): ConcurrentMap[K, V]
    Definition Classes
    AsJavaConverters
  7. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  8. def asJava[K, V](m: Map[K, V]): Map[K, V]
    Definition Classes
    AsJavaConverters
  9. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  10. def asJava[A](s: Set[A]): Set[A]
    Definition Classes
    AsJavaConverters
  11. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  12. def asJava[A](s: Seq[A]): List[A]
    Definition Classes
    AsJavaConverters
  13. def asJava[A](b: Buffer[A]): List[A]
    Definition Classes
    AsJavaConverters
  14. def asJava[A](i: Iterable[A]): Iterable[A]
    Definition Classes
    AsJavaConverters
  15. def asJava[A](i: Iterator[A]): Iterator[A]
    Definition Classes
    AsJavaConverters
  16. def asJavaCollection[A](i: Iterable[A]): Collection[A]
    Definition Classes
    AsJavaConverters
  17. def asJavaDictionary[K, V](m: Map[K, V]): Dictionary[K, V]
    Definition Classes
    AsJavaConverters
  18. def asJavaEnumeration[A](i: Iterator[A]): Enumeration[A]
    Definition Classes
    AsJavaConverters
  19. def bitsAllClear(fieldName: String, bitmask: Long): Filter

    Creates a filter that matches all documents where all of the bit positions are clear in the field.

    Creates a filter that matches all documents where all of the bit positions are clear in the field.

    fieldName

    the field name

    bitmask

    the bitmask

    returns

    the filter

    Since

    3.2

  20. def bitsAllSet(fieldName: String, bitmask: Long): Filter

    Creates a filter that matches all documents where all of the bit positions are set in the field.

    Creates a filter that matches all documents where all of the bit positions are set in the field.

    fieldName

    the field name

    bitmask

    the bitmask

    returns

    the filter

    Since

    3.2

  21. def bitsAnyClear(fieldName: String, bitmask: Long): Filter

    Creates a filter that matches all documents where any of the bit positions are clear in the field.

    Creates a filter that matches all documents where any of the bit positions are clear in the field.

    fieldName

    the field name

    bitmask

    the bitmask

    returns

    the filter

    Since

    3.2

  22. def bitsAnySet(fieldName: String, bitmask: Long): Filter

    Creates a filter that matches all documents where any of the bit positions are set in the field.

    Creates a filter that matches all documents where any of the bit positions are set in the field.

    fieldName

    the field name

    bitmask

    the bitmask

    returns

    the filter

    Since

    3.2

  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  24. def elemMatch(fieldName: String, filter: Filter): Filter

    Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the given filter.

    Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the given filter.

    fieldName

    the field name

    filter

    the filter to apply to each element

    returns

    the filter

  25. val empty: Filter

    A filter that matches all documents.

    A filter that matches all documents.

    returns

    the filter

    Since

    3.4

  26. def eq[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the field name equals the specified value.

    Creates a filter that matches all documents where the value of the field name equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.

    fieldName

    the field name

    value

    the value, which may be null

    returns

    the filter

  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def exists(fieldName: String): Filter

    Creates a filter that matches all documents that contain the given field.

    Creates a filter that matches all documents that contain the given field.

    fieldName

    the field name

    returns

    the filter

  30. def geoIntersects(fieldName: String, geometry: Bson): Filter

    Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.

    Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    returns

    the filter

    Since

    3.1

  31. def geoIntersects(fieldName: String, geometry: Geometry): Filter

    Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.

    Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    returns

    the filter

    Since

    3.1

  32. def geoWithin(fieldName: String, geometry: Bson): Filter

    Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.

    Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    returns

    the filter

    Since

    3.1

  33. def geoWithin(fieldName: String, geometry: Geometry): Filter

    Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.

    Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    returns

    the filter

    Since

    3.1

  34. def geoWithinBox(fieldName: String, lowerLeftX: Double, lowerLeftY: Double, upperRightX: Double, upperRightY: Double): Filter

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified box.

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified box.

    fieldName

    the field name

    lowerLeftX

    the lower left x coordinate of the box

    lowerLeftY

    the lower left y coordinate of the box

    upperRightX

    the upper left x coordinate of the box

    upperRightY

    the upper left y coordinate of the box

    returns

    the filter

    Since

    3.1

  35. def geoWithinCenter(fieldName: String, x: Double, y: Double, radius: Double): Filter

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified circle.

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified circle.

    fieldName

    the field name

    x

    the x coordinate of the circle

    y

    the y coordinate of the circle

    radius

    the radius of the circle, as measured in the units used by the coordinate system

    returns

    the filter

    Since

    3.1

  36. def geoWithinCenterSphere(fieldName: String, x: Double, y: Double, radius: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data (GeoJSON or legacy coordinate pairs) that exist entirely within the specified circle, using spherical geometry.

    Creates a filter that matches all documents containing a field with geospatial data (GeoJSON or legacy coordinate pairs) that exist entirely within the specified circle, using spherical geometry. If using longitude and latitude, specify longitude first.

    fieldName

    the field name

    x

    the x coordinate of the circle

    y

    the y coordinate of the circle

    radius

    the radius of the circle, in radians

    returns

    the filter

    Since

    3.1

  37. def geoWithinPolygon(fieldName: String, points: Seq[Seq[Double]]): Filter

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified polygon.

    Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified polygon.

    fieldName

    the field name

    points

    a list of pairs of x, y coordinates. Any extra dimensions are ignored

    returns

    the filter

    Since

    3.1

  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  39. def gt[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the given field is greater than the specified value.

    Creates a filter that matches all documents where the value of the given field is greater than the specified value.

    fieldName

    the field name

    value

    the value

    returns

    the filter

  40. def gte[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.

    Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.

    fieldName

    the field name

    value

    the value

    returns

    the filter

  41. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  42. def idEq[A](value: A): Filter

    Creates a filter that matches all documents where the value of _id field equals the specified value.

    Creates a filter that matches all documents where the value of _id field equals the specified value. Note that this doesn't actually generate a $eq operator, as the query language doesn't require it.

    value

    the value, which may be null

    returns

    the filter

    Since

    3.4

  43. def in[A](fieldName: String, values: Seq[A]): Filter

    Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.

    Creates a filter that matches all documents where the value of a field equals any value in the list of specified values.

    fieldName

    the field name

    values

    the list of values

    returns

    the filter

  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. def isNull(fieldName: String): Filter

    Creates a filter that matches all documents where the value of the provided field is null.

    Creates a filter that matches all documents where the value of the provided field is null.

    fieldName

    the field name

    returns

    the filter

  46. def jsonSchema(schema: Bson): Filter

    Creates a filter that matches all documents that validate against the given JSON schema document.

    Creates a filter that matches all documents that validate against the given JSON schema document.

    schema

    the JSON schema to validate against

    returns

    the filter

    Since

    3.6

  47. def lt[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the given field is less than the specified value.

    Creates a filter that matches all documents where the value of the given field is less than the specified value.

    fieldName

    the field name

    value

    the value

    returns

    the filter

  48. def lte[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.

    Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.

    fieldName

    the field name

    value

    the value

    returns

    the filter

  49. def mod(fieldName: String, divisor: Long, remainder: Long): Filter

    Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e.

    Creates a filter that matches all documents where the value of a field divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents).

    fieldName

    the field name

    divisor

    the modulus

    remainder

    the remainder

    returns

    the filter

  50. def ne[A](fieldName: String, value: A): Filter

    Creates a filter that matches all documents where the value of the field name does not equal the specified value.

    Creates a filter that matches all documents where the value of the field name does not equal the specified value.

    fieldName

    the field name

    value

    the value, which may be null

    returns

    the filter

  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. def near(fieldName: String, x: Double, y: Double, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.

    fieldName

    the field name

    x

    the x coordinate

    y

    the y coordinate

    maxDistance

    the maximum distance from the point, in radians. It may be null.

    minDistance

    the minimum distance from the point, in radians. It may be null.

    returns

    the filter

    Since

    3.1

  53. def near(fieldName: String, geometry: Bson, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    maxDistance

    the maximum distance from the point, in meters. It may be null.

    minDistance

    the minimum distance from the point, in meters. It may be null.

    returns

    the filter

    Since

    3.1

  54. def near(fieldName: String, geometry: Point, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    maxDistance

    the maximum distance from the point, in meters. It may be null.

    minDistance

    the minimum distance from the point, in meters. It may be null.

    returns

    the filter

    Since

    3.1

  55. def nearSphere(fieldName: String, x: Double, y: Double, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using spherical geometry.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified point using spherical geometry.

    fieldName

    the field name

    x

    the x coordinate

    y

    the y coordinate

    maxDistance

    the maximum distance from the point, in radians. It may be null.

    minDistance

    the minimum distance from the point, in radians. It may be null.

    returns

    the filter

    Since

    3.1

  56. def nearSphere(fieldName: String, geometry: Bson, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    maxDistance

    the maximum distance from the point, in meters. It may be null.

    minDistance

    the minimum distance from the point, in meters. It may be null.

    returns

    the filter

    Since

    3.1

  57. def nearSphere(fieldName: String, geometry: Point, maxDistance: Double, minDistance: Double): Filter

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.

    Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point using spherical geometry.

    fieldName

    the field name

    geometry

    the bounding GeoJSON geometry object

    maxDistance

    the maximum distance from the point, in meters. It may be null.

    minDistance

    the minimum distance from the point, in meters. It may be null.

    returns

    the filter

    Since

    3.1

  58. def nin[A](fieldName: String, values: Seq[A]): Filter

    Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.

    Creates a filter that matches all documents where the value of a field does not equal any of the specified values or does not exist.

    fieldName

    the field name

    values

    the list of values

    returns

    the filter

  59. def notExists(fieldName: String): Filter

    Creates a filter that matches all documents that do not contain the given field.

    Creates a filter that matches all documents that do not contain the given field.

    fieldName

    the field name

    returns

    the filter

  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  62. def regex(fieldName: String, regex: Regex): Filter

    Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.

    Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.

    fieldName

    the field name

    regex

    the pattern

    returns

    the filter

  63. def regex(fieldName: String, pattern: String): Filter

    Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.

    Creates a filter that matches all documents where the value of the field matches the given regular expression pattern.

    fieldName

    the field name

    pattern

    the pattern

    returns

    the filter

  64. def size(fieldName: String, size: Int): Filter

    Creates a filter that matches all documents where the value of a field is an array of the specified size.

    Creates a filter that matches all documents where the value of a field is an array of the specified size.

    fieldName

    the field name

    size

    the size of the array

    returns

    the filter

  65. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  66. def text(search: String, textSearchOptions: TextSearchOptions): Filter

    Creates a filter that matches all documents matching the given search term.

    Creates a filter that matches all documents matching the given search term.

    search

    the search term

    textSearchOptions

    the text search options to use

    returns

    the filter

  67. def text(search: String): Filter

    Creates a filter that matches all documents matching the given search term.

    Creates a filter that matches all documents matching the given search term.

    search

    the search term

    returns

    the filter

  68. def toString(): String
    Definition Classes
    AnyRef → Any
  69. def typeIs(fieldName: String, fieldType: String): Filter

    Creates a filter that matches all documents where the value of the field is of the specified BSON type.

    Creates a filter that matches all documents where the value of the field is of the specified BSON type.

    fieldName

    the field name

    fieldType

    the string representation of the BSON type

    returns

    the filter

  70. def typeIs(fieldName: String, fieldType: BsonType): Filter

    Creates a filter that matches all documents where the value of the field is of the specified BSON type.

    Creates a filter that matches all documents where the value of the field is of the specified BSON type.

    fieldName

    the field name

    fieldType

    the BSON type

    returns

    the filter

  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. def where(javaScriptExpression: String): Filter

    Creates a filter that matches all documents for which the given expression is true.

    Creates a filter that matches all documents for which the given expression is true.

    javaScriptExpression

    the JavaScript expression

    returns

    the filter

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 AsJava

Inherited from AsJavaConverters

Inherited from AnyRef

Inherited from Any

Ungrouped