T - the type of the FieldEndpublic interface FieldEnd<T>
| Modifier and Type | Method and Description |
|---|---|
T |
contains(String string)
Checks if a field contains a value
|
T |
containsIgnoreCase(String string)
Checks if a field contains a value ignoring the case of the values
|
T |
doesNotExist()
Checks that a field does not exist in a document
|
T |
doesNotHaveThisElement(Object val)
Checks that a field does not have the value listed.
|
T |
endsWith(String suffix)
Checks that a field ends with a value
|
T |
endsWithIgnoreCase(String suffix)
Checks that a field ends with a value ignoring the case of the values
|
T |
equal(Object val)
Checks that a field equals a value
|
T |
equalIgnoreCase(Object val)
Checks that a field equals a value
|
T |
exists()
Checks that a field exists in a document
|
T |
greaterThan(Object val)
Checks that a field is greater than the value given
|
T |
greaterThanOrEq(Object val)
Checks that a field is greater than or equal to the value given
|
T |
hasAllOf(Iterable<?> values)
Checks that a field has all of the values listed.
|
T |
hasAnyOf(Iterable<?> values)
Checks that a field has any of the values listed.
|
T |
hasNoneOf(Iterable<?> values)
Checks that a field has none of the values listed.
|
T |
hasThisElement(Object val)
Checks that a field has the value listed.
|
T |
hasThisOne(Object val)
Checks that a field has the value listed.
|
T |
in(Iterable<?> values)
Synonym for
hasAnyOf(Iterable) |
T |
intersects(Geometry geometry)
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(Geometry geometry,
CoordinateReferenceSystem crs)
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 |
lessThan(Object val)
Checks that a field is less than the value given
|
T |
lessThanOrEq(Object val)
Checks that a field is less than or equal to the value given
|
T |
mod(long divisor,
long remainder)
Select documents where the value of a field divided by a divisor has the specified remainder (i.e.
|
T |
near(double longitude,
double latitude)
Specifies a point for which a geospatial query returns the documents from nearest to farthest.
|
T |
near(double longitude,
double latitude,
boolean spherical)
Specifies a point for which a geospatial query returns the documents from nearest to farthest.
|
T |
near(double longitude,
double latitude,
double radius)
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)
Specifies a point for which a geospatial query returns the documents from nearest to farthest.
|
T |
near(Point point)
This runs a $near query to check for documents geographically close to the given Point - this Point represents a GeoJSON point type.
|
T |
near(Point point,
int maxDistance)
This runs a $near query to check for documents geographically close to the given Point - this Point represents a GeoJSON point type.
|
FieldEnd<T> |
not()
Negates the criteria applied to the field
|
T |
notEqual(Object val)
Checks that a field doesn't equal a value
|
T |
notIn(Iterable<?> values)
Synonym for
hasNoneOf(Iterable) |
T |
sizeEq(int val)
Checks the size of a field.
|
T |
startsWith(String prefix)
Checks that a field starts with a value
|
T |
startsWithIgnoreCase(String prefix)
Checks that a field starts with a value ignoring the case of the values
|
T |
type(Type type)
Checks the type of a field
|
T |
within(MultiPolygon boundaries)
This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries.
|
T |
within(MultiPolygon boundaries,
CoordinateReferenceSystem crs)
This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundaries.
|
T |
within(Polygon boundary)
This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary.
|
T |
within(Polygon boundary,
CoordinateReferenceSystem crs)
This runs the $geoWithin query, returning documents with GeoJson fields whose area falls within the given boundary.
|
T |
within(Shape shape)
This implements the $geoWithin operator and is only compatible with mongo 2.4 or greater.
|
T contains(String string)
string - the value to check forT containsIgnoreCase(String string)
string - the value to check forT doesNotExist()
T endsWith(String suffix)
suffix - the value to checkT endsWithIgnoreCase(String suffix)
suffix - the value to checkT equal(Object val)
val - the value to checkT equalIgnoreCase(Object val)
val - the value to checkT greaterThan(Object val)
val - the value to check againstT greaterThanOrEq(Object val)
val - the value to check againstT hasAllOf(Iterable<?> values)
values - the values to check againstT hasAnyOf(Iterable<?> values)
values - the values to check againstT hasNoneOf(Iterable<?> values)
values - the values to check againstT hasThisElement(Object val)
val - the value to check againstMapperOptionsT doesNotHaveThisElement(Object val)
val - the value to check againstMapperOptionsT hasThisOne(Object val)
val - the value to check againstT in(Iterable<?> values)
hasAnyOf(Iterable)values - the values to check againstT intersects(Geometry geometry)
geometry - the shape to use to query for any stored shapes that intersectT intersects(Geometry geometry, CoordinateReferenceSystem crs)
T lessThan(Object val)
val - the value to check againstT lessThanOrEq(Object val)
val - the value to check againstT mod(long divisor, long remainder)
divisor - the divisor to applyremainder - the remainder to check forT near(double longitude, double latitude)
longitude - the longitudelatitude - the latitudeT near(double longitude, double latitude, boolean spherical)
longitude - the longitudelatitude - the latitudespherical - if true, will use spherical geometry ($nearSphere) when analyzing documentsT near(double longitude, double latitude, double radius)
longitude - the longitudelatitude - the latituderadius - the max distance to considerT near(double longitude, double latitude, double radius, boolean spherical)
longitude - the longitudelatitude - the latituderadius - the max distance to considerspherical - if true, will use spherical geometry ($nearSphere) when analyzing documentsT near(Point point, int maxDistance)
point - the point to find results close tomaxDistance - the radius, in meters, to find the results insideT near(Point point)
point - the point to find results close toT notEqual(Object val)
val - the value to checkT notIn(Iterable<?> values)
hasNoneOf(Iterable)values - the values to check againstT sizeEq(int val)
val - the value to check againstT startsWith(String prefix)
prefix - the value to checkT startsWithIgnoreCase(String prefix)
prefix - the value to checkT type(Type type)
type - the value to check againstT within(Shape shape)
shape - the shape to check withinT within(Polygon boundary)
boundary - a polygon describing the boundary to search within.T within(MultiPolygon boundaries)
boundaries - a multi-polygon describing the areas to search within.T within(Polygon boundary, CoordinateReferenceSystem crs)
boundary - a polygon describing the boundary to search within.crs - the coordinate reference system to useT within(MultiPolygon boundaries, CoordinateReferenceSystem crs)
boundaries - a multi-polygon describing the areas to search within.crs - the coordinate reference system to use