Class FieldEndImpl<T extends CriteriaContainer>

  • Type Parameters:
    T - the type of the CriteriaContainer
    All Implemented Interfaces:
    FieldEnd<T>

    @MorphiaInternal
    @Deprecated(since="2.0",
                forRemoval=true)
    public class FieldEndImpl<T extends CriteriaContainer>
    extends Object
    implements FieldEnd<T>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Represents a document field in a query and presents the operations available to querying against that field. This is an internal class and subject to change without notice.
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FieldEndImpl​(Datastore datastore, String field, T target, EntityModel model, boolean validating)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a FieldEnd for a particular field.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected T addCriteria​(FilterOperator op, Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected T addCriteria​(FilterOperator op, Object val, boolean not)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected T addGeoCriteria​(FilterOperator op, Object val, Map<String,​Object> opts)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      T contains​(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if a field contains a value
      T containsIgnoreCase​(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if a field contains a value ignoring the case of the values
      T doesNotExist()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field does not exist in a document
      T elemMatch​(Query query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field matches the provided query definition
      T endsWith​(String suffix)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field ends with a value
      T endsWithIgnoreCase​(String suffix)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field ends with a value ignoring the case of the values
      T equal​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field equals a value
      T equalIgnoreCase​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field equals a value
      T exists()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field exists in a document
      protected String getField()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      T greaterThan​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field is greater than the value given
      T greaterThanOrEq​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field is greater than or equal to the value given
      T hasAllOf​(Iterable<?> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field has all of the values listed.
      T hasAnyOf​(Iterable<?> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field has any of the values listed.
      T hasNoneOf​(Iterable<?> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field has none of the values listed.
      T hasThisOne​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field has the value listed.
      T in​(Iterable<?> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      T intersects​(com.mongodb.client.model.geojson.Geometry geometry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This performs a $geoIntersects query, searching documents containing any sort of GeoJson field and returning those where the given geometry intersects with the document shape.
      T intersects​(com.mongodb.client.model.geojson.Geometry geometry, com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This performs a $geoIntersects query, searching documents containing any sort of GeoJson field and returning those where the given geometry intersects with the document shape.
      protected boolean isNot()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      T lessThan​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field is less than the value given
      T lessThanOrEq​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field is less than or equal to the value given
      T mod​(long divisor, long remainder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Select documents where the value of a field divided by a divisor has the specified remainder (i.e.
      T near​(double longitude, double latitude)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T near​(double longitude, double latitude, boolean spherical)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T near​(double longitude, double latitude, double radius)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T near​(double longitude, double latitude, double radius, boolean spherical)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T near​(com.mongodb.client.model.geojson.Point point)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This runs a $near query to check for documents geographically close to the given Point - this Point represents a GeoJSON point type.
      T near​(com.mongodb.client.model.geojson.Point point, Double maxDistance, Double minDistance)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T nearSphere​(com.mongodb.client.model.geojson.Point point)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      T nearSphere​(com.mongodb.client.model.geojson.Point point, Double maxDistance, Double minDistance)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a point for which a geospatial query returns the documents from nearest to farthest.
      FieldEnd<T> not()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Negates the criteria applied to the field
      T notEqual​(Object val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field doesn't equal a value
      T notIn​(Iterable<?> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
      T sizeEq​(int val)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks the size of a field.
      T startsWith​(String prefix)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field starts with a value
      T startsWithIgnoreCase​(String prefix)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks that a field starts with a value ignoring the case of the values
      T type​(Type type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks the type of a field
      T within​(com.mongodb.client.model.geojson.MultiPolygon boundaries)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries.
      T within​(com.mongodb.client.model.geojson.MultiPolygon boundaries, com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries.
      T within​(com.mongodb.client.model.geojson.Polygon boundary)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary.
      T within​(com.mongodb.client.model.geojson.Polygon boundary, com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary.
      T within​(Shape shape)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This implements the $geoWithin operator and is only compatible with mongo 2.4 or greater.
    • Constructor Detail

      • FieldEndImpl

        protected FieldEndImpl​(Datastore datastore,
                               String field,
                               T target,
                               EntityModel model,
                               boolean validating)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a FieldEnd for a particular field.
        Parameters:
        field - the field to consider
        target - the CriteriaContainer
        model - the mapped class
        validating - validate names or not
    • Method Detail

      • contains

        public T contains​(String string)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks if a field contains a value
        Specified by:
        contains in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        string - the value to check for
        Returns:
        T
      • containsIgnoreCase

        public T containsIgnoreCase​(String string)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks if a field contains a value ignoring the case of the values
        Specified by:
        containsIgnoreCase in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        string - the value to check for
        Returns:
        T
      • doesNotExist

        public T doesNotExist()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field does not exist in a document
        Specified by:
        doesNotExist in interface FieldEnd<T extends CriteriaContainer>
        Returns:
        T
      • endsWith

        public T endsWith​(String suffix)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field ends with a value
        Specified by:
        endsWith in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        suffix - the value to check
        Returns:
        T
      • endsWithIgnoreCase

        public T endsWithIgnoreCase​(String suffix)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field ends with a value ignoring the case of the values
        Specified by:
        endsWithIgnoreCase in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        suffix - the value to check
        Returns:
        T
      • equal

        public T equal​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field equals a value
        Specified by:
        equal in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check
        Returns:
        T
      • equalIgnoreCase

        public T equalIgnoreCase​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field equals a value
        Specified by:
        equalIgnoreCase in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check
        Returns:
        T
      • exists

        public T exists()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field exists in a document
        Specified by:
        exists in interface FieldEnd<T extends CriteriaContainer>
        Returns:
        T
      • greaterThan

        public T greaterThan​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field is greater than the value given
        Specified by:
        greaterThan in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • greaterThanOrEq

        public T greaterThanOrEq​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field is greater than or equal to the value given
        Specified by:
        greaterThanOrEq in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • hasAllOf

        public T hasAllOf​(Iterable<?> values)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field has all of the values listed.
        Specified by:
        hasAllOf in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        values - the values to check against
        Returns:
        T
      • hasAnyOf

        public T hasAnyOf​(Iterable<?> values)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field has any of the values listed.
        Specified by:
        hasAnyOf in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        values - the values to check against
        Returns:
        T
      • hasNoneOf

        public T hasNoneOf​(Iterable<?> values)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field has none of the values listed.
        Specified by:
        hasNoneOf in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        values - the values to check against
        Returns:
        T
      • elemMatch

        public T elemMatch​(Query query)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field matches the provided query definition
        Specified by:
        elemMatch in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        query - the query to find certain field values
        Returns:
        T
      • hasThisOne

        public T hasThisOne​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field has the value listed.
        Specified by:
        hasThisOne in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • intersects

        public T intersects​(com.mongodb.client.model.geojson.Geometry geometry)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This performs a $geoIntersects query, searching documents containing any sort of GeoJson field and returning those where the given geometry intersects with the document shape. This includes cases where the data and the specified object share an edge.
        Specified by:
        intersects in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        geometry - the shape to use to query for any stored shapes that intersect
        Returns:
        T
      • intersects

        public T intersects​(com.mongodb.client.model.geojson.Geometry geometry,
                            com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This performs a $geoIntersects query, searching documents containing any sort of GeoJson field and returning those where the given geometry intersects with the document shape. This includes cases where the data and the specified object share an edge.
        Specified by:
        intersects in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        geometry - the shape to use to query for any stored shapes that intersect
        crs - the coordinate reference system to use with the query
        Returns:
        T
      • lessThan

        public T lessThan​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field is less than the value given
        Specified by:
        lessThan in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • lessThanOrEq

        public T lessThanOrEq​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field is less than or equal to the value given
        Specified by:
        lessThanOrEq in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • mod

        public T mod​(long divisor,
                     long remainder)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Select documents where the value of a field divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents)
        Specified by:
        mod in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        divisor - the divisor to apply
        remainder - the remainder to check for
        Returns:
        T
      • near

        public T near​(double longitude,
                      double latitude)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        longitude - the longitude
        latitude - the latitude
        Returns:
        T
      • near

        public T near​(double longitude,
                      double latitude,
                      boolean spherical)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        longitude - the longitude
        latitude - the latitude
        spherical - if true, will use spherical geometry ($nearSphere) when analyzing documents
        Returns:
        T
      • near

        public T near​(double longitude,
                      double latitude,
                      double radius)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        longitude - the longitude
        latitude - the latitude
        radius - the max distance to consider
        Returns:
        T
      • near

        public T near​(double longitude,
                      double latitude,
                      double radius,
                      boolean spherical)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        longitude - the longitude
        latitude - the latitude
        radius - the max distance to consider
        spherical - if true, will use spherical geometry ($nearSphere) when analyzing documents
        Returns:
        T
      • near

        public T near​(com.mongodb.client.model.geojson.Point point)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This runs a $near query to check for documents geographically close to the given Point - this Point represents a GeoJSON point type. These queries are only supported by MongoDB version 2.4 or greater.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        point - the point to find results close to
        Returns:
        T
      • near

        public T near​(com.mongodb.client.model.geojson.Point point,
                      Double maxDistance,
                      Double minDistance)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        near in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        point - the point to find results close to
        maxDistance - the maximum distance in meters from the point
        minDistance - the minimum distance in meters from the point
        Returns:
        T
      • nearSphere

        public T nearSphere​(com.mongodb.client.model.geojson.Point point)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        nearSphere in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        point - the point to find results close to
        Returns:
        T
      • nearSphere

        public T nearSphere​(com.mongodb.client.model.geojson.Point point,
                            @Nullable
                            Double maxDistance,
                            @Nullable
                            Double minDistance)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Specifies a point for which a geospatial query returns the documents from nearest to farthest.
        Specified by:
        nearSphere in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        point - the point to find results close to
        maxDistance - the maximum distance in meters from the point
        minDistance - the minimum distance in meters from the point
        Returns:
        T
      • not

        public FieldEnd<T> not()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Negates the criteria applied to the field
        Specified by:
        not in interface FieldEnd<T extends CriteriaContainer>
        Returns:
        this
      • notEqual

        public T notEqual​(Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field doesn't equal a value
        Specified by:
        notEqual in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check
        Returns:
        T
      • sizeEq

        public T sizeEq​(int val)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks the size of a field.
        Specified by:
        sizeEq in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        val - the value to check against
        Returns:
        T
      • startsWith

        public T startsWith​(String prefix)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field starts with a value
        Specified by:
        startsWith in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        prefix - the value to check
        Returns:
        T
      • startsWithIgnoreCase

        public T startsWithIgnoreCase​(String prefix)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks that a field starts with a value ignoring the case of the values
        Specified by:
        startsWithIgnoreCase in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        prefix - the value to check
        Returns:
        T
      • type

        public T type​(Type type)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        Checks the type of a field
        Specified by:
        type in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        type - the value to check against
        Returns:
        T
      • within

        public T within​(Shape shape)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This implements the $geoWithin operator and is only compatible with mongo 2.4 or greater.
        Specified by:
        within in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        shape - the shape to check within
        Returns:
        T
      • within

        public T within​(com.mongodb.client.model.geojson.Polygon boundary)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary. When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers.
        Specified by:
        within in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        boundary - a polygon describing the boundary to search within.
        Returns:
        T
      • within

        public T within​(com.mongodb.client.model.geojson.MultiPolygon boundaries)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries. When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers.
        Specified by:
        within in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        boundaries - a multi-polygon describing the areas to search within.
        Returns:
        T
      • within

        public T within​(com.mongodb.client.model.geojson.Polygon boundary,
                        com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary. When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers.
        Specified by:
        within in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        boundary - a polygon describing the boundary to search within.
        crs - the coordinate reference system to use
        Returns:
        T
      • within

        public T within​(com.mongodb.client.model.geojson.MultiPolygon boundaries,
                        com.mongodb.client.model.geojson.CoordinateReferenceSystem crs)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: FieldEnd
        This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries. When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers.

        These queries are only compatible with MongoDB 2.6 or greater.

        Specified by:
        within in interface FieldEnd<T extends CriteriaContainer>
        Parameters:
        boundaries - a multi-polygon describing the areas to search within.
        crs - the coordinate reference system to use
        Returns:
        T
      • addCriteria

        protected T addCriteria​(FilterOperator op,
                                Object val)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • addCriteria

        protected T addCriteria​(FilterOperator op,
                                Object val,
                                boolean not)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • addGeoCriteria

        protected T addGeoCriteria​(FilterOperator op,
                                   Object val,
                                   Map<String,​Object> opts)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getField

        protected String getField()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • isNot

        protected boolean isNot()
        Deprecated, for removal: This API element is subject to removal in a future version.