public class MongoFieldImpl<T> extends Object implements MongoField<T>
MongoField| Constructor and Description |
|---|
MongoFieldImpl() |
MongoFieldImpl(Query<T> q,
ObjectMapper map) |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
all(List<Object> val) |
Query<T> |
box(double x,
double y,
double x2,
double y2)
search for entries with geo coordinates wihtin the given rectancle - x,y upper left, x2,y2 lower right corner
|
Query<T> |
center(double x,
double y,
double r) |
Query<T> |
centerSphere(double x,
double y,
double r)
same as center() but uses spherical geometry for distance calc.
|
Query<T> |
eq(Object val) |
Query<T> |
exists() |
String |
getFieldString() |
ObjectMapper |
getMapper() |
Query<T> |
getQuery() |
Query<T> |
gt(Object val) |
Query<T> |
gte(Object val) |
Query<T> |
in(Collection<?> vals) |
Query<T> |
lt(Object val) |
Query<T> |
lte(Object val) |
Query<T> |
matches(Pattern p) |
Query<T> |
matches(String ptrn) |
Query<T> |
mod(int base,
int val) |
Query<T> |
ne(Object val) |
Query<T> |
near(double x,
double y)
return a sorted list of elements around point x,y
|
Query<T> |
near(double x,
double y,
double maxDistance)
return a sorted list of elements around point x,y
|
Query<T> |
nearSphere(double x,
double y)
return a sorted list of elements around point x,y
spherical distance calculation
|
Query<T> |
nearSphere(double x,
double y,
double maxDistance)
return a sorted list of elements around point x,y
spherical distance calculation
|
Query<T> |
nin(Collection<?> vals) |
Query<T> |
notExists() |
Query<T> |
polygon(double... p) |
void |
setFieldString(String fldStr) |
void |
setMapper(ObjectMapper mapper) |
void |
setQuery(Query<T> q) |
Query<T> |
size(int val) |
Query<T> |
type(MongoType t) |
public MongoFieldImpl()
public MongoFieldImpl(Query<T> q, ObjectMapper map)
public String getFieldString()
getFieldString in interface MongoField<T>public void setFieldString(String fldStr)
setFieldString in interface MongoField<T>public ObjectMapper getMapper()
getMapper in interface MongoField<T>public void setMapper(ObjectMapper mapper)
setMapper in interface MongoField<T>public Query<T> size(int val)
size in interface MongoField<T>public Query<T> exists()
exists in interface MongoField<T>public Query<T> notExists()
notExists in interface MongoField<T>public Query<T> mod(int base, int val)
mod in interface MongoField<T>public Query<T> in(Collection<?> vals)
in in interface MongoField<T>public Query<T> nin(Collection<?> vals)
nin in interface MongoField<T>public Query<T> near(double x, double y)
MongoFieldnear in interface MongoField<T>x - pos xy - pos ypublic Query<T> nearSphere(double x, double y)
MongoFieldnearSphere in interface MongoField<T>x - pos xy - pos ypublic Query<T> box(double x, double y, double x2, double y2)
MongoFieldbox in interface MongoField<T>public Query<T> polygon(double... p)
polygon in interface MongoField<T>public Query<T> center(double x, double y, double r)
center in interface MongoField<T>public Query<T> centerSphere(double x, double y, double r)
MongoFieldcenterSphere in interface MongoField<T>x - - pos xy - - y posr - - radiuspublic Query<T> nearSphere(double x, double y, double maxDistance)
MongoFieldnearSphere in interface MongoField<T>x - pos xy - pos ypublic Query<T> near(double x, double y, double maxDistance)
MongoFieldnear in interface MongoField<T>x - pos xy - pos ypublic Query<T> getQuery()
getQuery in interface MongoField<T>public void setQuery(Query<T> q)
setQuery in interface MongoField<T>Copyright © 2013. All rights reserved.