public class FieldEndImpl<T extends CriteriaContainerImpl> extends Object implements FieldEnd<T>
Constructor and Description |
---|
FieldEndImpl(QueryImpl<?> query,
String field,
T target,
boolean validateName) |
Modifier and Type | Method and Description |
---|---|
T |
contains(String string) |
T |
containsIgnoreCase(String string) |
T |
doesNotExist() |
T |
endsWith(String suffix) |
T |
endsWithIgnoreCase(String suffix) |
T |
equal(Object val) |
T |
exists() |
T |
greaterThan(Object val) |
T |
greaterThanOrEq(Object val) |
T |
hasAllOf(Iterable<?> values) |
T |
hasAnyOf(Iterable<?> values) |
T |
hasNoneOf(Iterable<?> values) |
T |
hasThisElement(Object val) |
T |
hasThisOne(Object val) |
T |
in(Iterable<?> values) |
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) |
T |
lessThanOrEq(Object val) |
T |
mod(long divisor,
long remainder) |
T |
near(double x,
double y) |
T |
near(double x,
double y,
boolean spherical) |
T |
near(double x,
double y,
double radius) |
T |
near(double x,
double y,
double radius,
boolean spherical) |
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() |
T |
notEqual(Object val) |
T |
notIn(Iterable<?> values) |
T |
sizeEq(int val) |
T |
startsWith(String prefix) |
T |
startsWithIgnoreCase(String prefix) |
T |
type(Type type) |
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.
|
public T contains(String string)
contains
in interface FieldEnd<T extends CriteriaContainerImpl>
public T containsIgnoreCase(String string)
containsIgnoreCase
in interface FieldEnd<T extends CriteriaContainerImpl>
public T doesNotExist()
doesNotExist
in interface FieldEnd<T extends CriteriaContainerImpl>
public T endsWith(String suffix)
endsWith
in interface FieldEnd<T extends CriteriaContainerImpl>
public T endsWithIgnoreCase(String suffix)
endsWithIgnoreCase
in interface FieldEnd<T extends CriteriaContainerImpl>
public T equal(Object val)
equal
in interface FieldEnd<T extends CriteriaContainerImpl>
public T exists()
exists
in interface FieldEnd<T extends CriteriaContainerImpl>
public T greaterThan(Object val)
greaterThan
in interface FieldEnd<T extends CriteriaContainerImpl>
public T greaterThanOrEq(Object val)
greaterThanOrEq
in interface FieldEnd<T extends CriteriaContainerImpl>
public T hasAllOf(Iterable<?> values)
hasAllOf
in interface FieldEnd<T extends CriteriaContainerImpl>
public T hasAnyOf(Iterable<?> values)
hasAnyOf
in interface FieldEnd<T extends CriteriaContainerImpl>
public T hasNoneOf(Iterable<?> values)
hasNoneOf
in interface FieldEnd<T extends CriteriaContainerImpl>
public T hasThisElement(Object val)
hasThisElement
in interface FieldEnd<T extends CriteriaContainerImpl>
public T hasThisOne(Object val)
hasThisOne
in interface FieldEnd<T extends CriteriaContainerImpl>
public T lessThan(Object val)
lessThan
in interface FieldEnd<T extends CriteriaContainerImpl>
public T lessThanOrEq(Object val)
lessThanOrEq
in interface FieldEnd<T extends CriteriaContainerImpl>
public T in(Iterable<?> values)
in
in interface FieldEnd<T extends CriteriaContainerImpl>
public T mod(long divisor, long remainder)
mod
in interface FieldEnd<T extends CriteriaContainerImpl>
public FieldEnd<T> not()
not
in interface FieldEnd<T extends CriteriaContainerImpl>
public T notEqual(Object val)
notEqual
in interface FieldEnd<T extends CriteriaContainerImpl>
public T notIn(Iterable<?> values)
notIn
in interface FieldEnd<T extends CriteriaContainerImpl>
public T near(double x, double y)
near
in interface FieldEnd<T extends CriteriaContainerImpl>
public T near(double x, double y, boolean spherical)
near
in interface FieldEnd<T extends CriteriaContainerImpl>
public T near(double x, double y, double radius)
near
in interface FieldEnd<T extends CriteriaContainerImpl>
public T near(double x, double y, double radius, boolean spherical)
near
in interface FieldEnd<T extends CriteriaContainerImpl>
public T sizeEq(int val)
sizeEq
in interface FieldEnd<T extends CriteriaContainerImpl>
public T startsWith(String prefix)
startsWith
in interface FieldEnd<T extends CriteriaContainerImpl>
public T startsWithIgnoreCase(String prefix)
startsWithIgnoreCase
in interface FieldEnd<T extends CriteriaContainerImpl>
public T within(Shape shape)
FieldEnd
within
in interface FieldEnd<T extends CriteriaContainerImpl>
public T type(Type type)
type
in interface FieldEnd<T extends CriteriaContainerImpl>
public T near(Point point, int maxDistance)
FieldEnd
near
in interface FieldEnd<T extends CriteriaContainerImpl>
point
- the point to find results close tomaxDistance
- the radius, in meters, to find the results insidepublic T near(Point point)
FieldEnd
near
in interface FieldEnd<T extends CriteriaContainerImpl>
point
- the point to find results close topublic T within(Polygon boundary)
FieldEnd
within
in interface FieldEnd<T extends CriteriaContainerImpl>
boundary
- a polygon describing the boundary to search within.public T within(MultiPolygon boundaries)
FieldEnd
within
in interface FieldEnd<T extends CriteriaContainerImpl>
boundaries
- a multi-polygon describing the areas to search within.public T within(Polygon boundary, CoordinateReferenceSystem crs)
FieldEnd
within
in interface FieldEnd<T extends CriteriaContainerImpl>
boundary
- a polygon describing the boundary to search within.public T within(MultiPolygon boundaries, CoordinateReferenceSystem crs)
FieldEnd
within
in interface FieldEnd<T extends CriteriaContainerImpl>
boundaries
- a multi-polygon describing the areas to search within.public T intersects(Geometry geometry)
FieldEnd
intersects
in interface FieldEnd<T extends CriteriaContainerImpl>
geometry
- the shape to use to query for any stored shapes that intersectgeometry
.public T intersects(Geometry geometry, CoordinateReferenceSystem crs)
FieldEnd
intersects
in interface FieldEnd<T extends CriteriaContainerImpl>
geometry
- the shape to use to query for any stored shapes that intersectcrs
- the coordinate reference system to use with the querygeometry
.Copyright © 2016. All rights reserved.