Package org.geotools.data.mongodb
Class FilterToMongo
- Object
-
- AbstractFilterToMongo
-
- FilterToMongo
-
- All Implemented Interfaces:
ExpressionVisitor
,FilterVisitor
public class FilterToMongo extends AbstractFilterToMongo
Visitor responsible for generating a BasicDBObject to use as a MongoDB query.- Author:
- Gerald Gay, Data Tactics Corp., Alan Mangan, Data Tactics Corp., Tom Kunicki, Boundless Spatial Inc. (C) 2011, Open Source Geospatial Foundation (OSGeo)
- See Also:
GNU Lesser General Public License (LGPL)
-
-
Field Summary
-
Fields inherited from class AbstractFilterToMongo
featureType, geometryBuilder, HUNDRED_KM_IN_METERS, LOGGER
-
-
Constructor Summary
Constructors Constructor Description FilterToMongo(CollectionMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getGeometryPath()
Method responsible for retrieving the MongoDB geometry json pathprotected String
getPropertyPath(String prop)
Method responsible for mapping a PropertyName to the corresponding MongoDB json pathprotected Class<?>
getValueTypeInternal(Expression e)
Method responsible of retrieving the value type of an Expression-
Methods inherited from class AbstractFilterToMongo
asDBObject, getValueType, setFeatureType, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNullFilter
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface FilterVisitor
visit
-
-
-
-
Constructor Detail
-
FilterToMongo
public FilterToMongo(CollectionMapper mapper)
-
-
Method Detail
-
getValueTypeInternal
protected Class<?> getValueTypeInternal(Expression e)
Description copied from class:AbstractFilterToMongo
Method responsible of retrieving the value type of an Expression- Specified by:
getValueTypeInternal
in classAbstractFilterToMongo
- Parameters:
e
- the expression for which find the value type- Returns:
- the type as a Class of the Expression
-
getGeometryPath
protected String getGeometryPath()
Description copied from class:AbstractFilterToMongo
Method responsible for retrieving the MongoDB geometry json path- Specified by:
getGeometryPath
in classAbstractFilterToMongo
- Returns:
- the MongoDB json paath for the default geometry
-
getPropertyPath
protected String getPropertyPath(String prop)
Description copied from class:AbstractFilterToMongo
Method responsible for mapping a PropertyName to the corresponding MongoDB json path- Specified by:
getPropertyPath
in classAbstractFilterToMongo
- Parameters:
prop
- the string property name to map- Returns:
- the MongoDB json path
-
-