SpatialViewQuery
class SpatialViewQuery implements ViewQueryEncodable (View source)
Represents spatial Couchbase Map/Reduce View query
Methods
Returns associative array, representing the View query.
Limits the result set to a specified number rows.
Skips a number o records rom the beginning of the result set
Specifies the mode of updating to perorm before and after executing the query
Orders the results by key as specified
Specifies the bounding box to search within.
Specify start range for query
Specify end range for query
Specifies custom options to pass to the server.
Details
array
encode()
Returns associative array, representing the View query.
SpatialViewQuery
limit(int $limit)
Limits the result set to a specified number rows.
SpatialViewQuery
skip(int $skip)
Skips a number o records rom the beginning of the result set
SpatialViewQuery
consistency(int $consistency)
Specifies the mode of updating to perorm before and after executing the query
SpatialViewQuery
order(int $order)
Orders the results by key as specified
SpatialViewQuery
bbox(array $bbox)
Specifies the bounding box to search within.
Note, using bbox() is discouraged, startRange/endRange is more flexible and should be preferred.
SpatialViewQuery
startRange(array $range)
Specify start range for query
SpatialViewQuery
endRange(array $range)
Specify end range for query
custom(array $customParameters)
Specifies custom options to pass to the server.
Note that these options are expected to be already encoded.