encode()
encode() : array
Returns associative array, representing the View query.
Returns
array —object which is ready to be serialized.
Represents spatial Couchbase Map/Reduce View query
limit(integer $limit) : \Couchbase\SpatialViewQuery
Limits the result set to a specified number rows.
integer | $limit | maximum number of records in the response |
skip(integer $skip) : \Couchbase\SpatialViewQuery
Skips a number o records rom the beginning of the result set
integer | $skip | number of records to skip |
consistency(integer $consistency) : \Couchbase\SpatialViewQuery
Specifies the mode of updating to perorm before and after executing the query
integer | $consistency | use constants UPDATE_BEFORE, UPDATE_NONE, UPDATE_AFTER |
order(integer $order) : \Couchbase\SpatialViewQuery
Orders the results by key as specified
integer | $order | use contstants ORDER_ASCENDING, ORDER_DESCENDING |
bbox(array $bbox) : \Couchbase\SpatialViewQuery
Specifies the bounding box to search within.
Note, using bbox() is discouraged, startRange/endRange is more flexible and should be preferred.
array | $bbox | bounding box coordinates expressed as a list of numeric values |
startRange(array $range) : \Couchbase\SpatialViewQuery
Specify start range for query
array | $range |
endRange(array $range) : \Couchbase\SpatialViewQuery
Specify end range for query
array | $range |