public class SpatialViewQuery extends Object implements Serializable
Fluent DSL for a Spatial View Query.
Modifier and Type | Method and Description |
---|---|
SpatialViewQuery |
debug()
Enabled debugging on view queries.
|
SpatialViewQuery |
debug(boolean debug) |
SpatialViewQuery |
development() |
SpatialViewQuery |
development(boolean development) |
protected String |
encode(String source)
Helper method to properly encode a string.
|
SpatialViewQuery |
endRange(JsonArray endRange) |
boolean |
equals(Object o) |
static SpatialViewQuery |
from(String design,
String view)
Creates an new
SpatialViewQuery . |
String |
getDesign() |
String |
getView() |
int |
hashCode() |
boolean |
isDevelopment() |
SpatialViewQuery |
limit(int limit)
Limit the number of the returned documents to the specified number.
|
SpatialViewQuery |
onError(OnError onError)
Sets the response in the event of an error.
|
SpatialViewQuery |
range(JsonArray startRange,
JsonArray endRange) |
SpatialViewQuery |
skip(int skip)
Skip this number of records before starting to return the results.
|
SpatialViewQuery |
stale(Stale stale)
Allow the results from a stale view to be used.
|
SpatialViewQuery |
startRange(JsonArray startRange) |
String |
toString() |
public static SpatialViewQuery from(String design, String view)
Creates an new SpatialViewQuery
.
design
- the name of the design document.view
- the name of the view.SpatialViewQuery
DSL.public SpatialViewQuery development()
public SpatialViewQuery development(boolean development)
public SpatialViewQuery limit(int limit)
Limit the number of the returned documents to the specified number.
limit
- the number of documents to return.SpatialViewQuery
object for proper chaining.public SpatialViewQuery skip(int skip)
Skip this number of records before starting to return the results.
skip
- The number of records to skip.SpatialViewQuery
object for proper chaining.public SpatialViewQuery stale(Stale stale)
Allow the results from a stale view to be used.
See the “Stale” enum for more information on the possible options. The default setting is “update_after”!
stale
- Which stale mode should be used.SpatialViewQuery
object for proper chaining.public SpatialViewQuery debug()
Enabled debugging on view queries.
SpatialViewQuery
object for proper chaining.public SpatialViewQuery debug(boolean debug)
public SpatialViewQuery startRange(JsonArray startRange)
public SpatialViewQuery endRange(JsonArray endRange)
public SpatialViewQuery range(JsonArray startRange, JsonArray endRange)
public SpatialViewQuery onError(OnError onError)
Sets the response in the event of an error.
See the “OnError” enum for more details on the available options.
onError
- The appropriate error handling type.SpatialViewQuery
object for proper chaining.protected String encode(String source)
Helper method to properly encode a string.
This method can be overridden if a different encoding logic needs to be used.
source
- source string.public String getDesign()
public String getView()
public boolean isDevelopment()
Copyright © 2014 Couchbase, Inc.