com.kinvey.java.query.QueryFilter.QueryFilterBuilder |
![]() |
Builder for Query object
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | QueryFilter.QueryFilterBuilder.Operators | Possible filter operators |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addFilter(String operator, String field, Object value)
Add a filter to the builder's QueryFilter
| ||||||||||
abstract void |
addFilter(String operator, String field, Object[] value)
Add a filter to the builder's QueryFilter
| ||||||||||
abstract void |
addLocationFilter(String field, String operator, double[] point, double distance)
Add a location filter
| ||||||||||
abstract void |
addLocationWhereFilter(String field, String operator, double[][] points)
Add a location where filter
| ||||||||||
abstract void |
equals(String field, Object value)
Adds an equality comparison to the QueryFilter
| ||||||||||
abstract AbstractMap<String, Object> |
getFilterMap()
Gets the current filter map
| ||||||||||
abstract String |
getOperator(QueryFilter.QueryFilterBuilder.Operators operator)
Helper method to get the concrete operator value from the passed in Operator
| ||||||||||
abstract void |
joinFilter(String operator, AbstractQuery newQuery)
Join the specified Query's filter to the current builder's queryfilter
| ||||||||||
abstract void |
negateQuery()
Negates the current query filter.
| ||||||||||
abstract void |
resetFilter()
Resets the current filter
|
Add a filter to the builder's QueryFilter
Add a filter to the builder's QueryFilter
Add a location filter
point | an array of type double[] containing the latitude/longitude points |
---|
Add a location where filter
points | a 2D array of type double[][] containing points for geolocation |
---|
Adds an equality comparison to the QueryFilter
Gets the current filter map
Helper method to get the concrete operator value from the passed in Operator
Join the specified Query's filter to the current builder's queryfilter
Negates the current query filter.
Resets the current filter