Package com.ibm.cloud.cloudant.v1.model
Class ViewQuery
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.cloudant.v1.model.ViewQuery
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ViewQuery
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for a query view operation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder.static interface
Parameter to specify whether or not the view in question should be updated prior to responding to the user. -
Method Summary
Modifier and TypeMethodDescriptionGets the attachments.Gets the attEncodingInfo.Gets the conflicts.Gets the descending.endKey()
Gets the endKey.Gets the endKeyDocId.group()
Gets the group.Gets the groupLevel.Gets the includeDocs.Gets the inclusiveEnd.key()
Gets the key.keys()
Gets the keys.limit()
Gets the limit.New builder.reduce()
Gets the reduce.skip()
Gets the skip.stable()
Gets the stable.startKey()
Gets the startKey.Gets the startKeyDocId.update()
Gets the update.Gets the updateSeq.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a ViewQuery builder
-
attEncodingInfo
Gets the attEncodingInfo. Parameter to specify whether to include the encoding information in attachment stubs if the particular attachment is compressed.- Returns:
- the attEncodingInfo
-
attachments
Gets the attachments. Parameter to specify whether to include attachments bodies in a response.- Returns:
- the attachments
-
conflicts
Gets the conflicts. Parameter to specify whether to include a list of conflicted revisions in each returned document. Active only when `include_docs` is `true`.- Returns:
- the conflicts
-
descending
Gets the descending. Parameter to specify whether to return the documents in descending by key order.- Returns:
- the descending
-
includeDocs
Gets the includeDocs. Parameter to specify whether to include the full content of the documents in the response.- Returns:
- the includeDocs
-
inclusiveEnd
Gets the inclusiveEnd. Parameter to specify whether the specified end key should be included in the result.- Returns:
- the inclusiveEnd
-
limit
Gets the limit. Parameter to specify the number of returned documents to limit the result to.- Returns:
- the limit
-
skip
Gets the skip. Parameter to specify the number of records before starting to return the results.- Returns:
- the skip
-
updateSeq
Gets the updateSeq. Parameter to specify whether to include in the response an update_seq value indicating the sequence id of the database the view reflects.- Returns:
- the updateSeq
-
endKey
Gets the endKey. Schema for any JSON type.- Returns:
- the endKey
-
endKeyDocId
Gets the endKeyDocId. Schema for a document ID.- Returns:
- the endKeyDocId
-
group
Gets the group. Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the number of array elements with the `group_level` parameter.- Returns:
- the group
-
groupLevel
Gets the groupLevel. Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each complete key.- Returns:
- the groupLevel
-
key
Gets the key. Schema for any JSON type.- Returns:
- the key
-
keys
Gets the keys. Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys that match the key type emitted by the view function.- Returns:
- the keys
-
reduce
Gets the reduce. Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce function is defined.- Returns:
- the reduce
-
stable
Gets the stable. Query parameter to specify whether use the same replica of the index on each request. The default value `false` contacts all replicas and returns the result from the first, fastest, responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the expense of increased latency and decreased throughput if the selected replica is not the fastest of the available replicas. **Note:** In general setting `true` is discouraged and is strictly not recommended when using `update=true`.- Returns:
- the stable
-
startKey
Gets the startKey. Schema for any JSON type.- Returns:
- the startKey
-
startKeyDocId
Gets the startKeyDocId. Schema for a document ID.- Returns:
- the startKeyDocId
-
update
Gets the update. Parameter to specify whether or not the view in question should be updated prior to responding to the user. * `true` - Return results after the view is updated. * `false` - Return results without updating the view. * `lazy` - Return the view results without waiting for an update, but update them immediately after the request.- Returns:
- the update
-