Package com.ibm.cloud.cloudant.v1.model
Class PostExplainOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PostExplainOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PostExplainOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The postExplain options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PostExplainOptions.Builder
Builder.static interface
PostExplainOptions.Update
Whether to update the index prior to returning the result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bookmark()
Gets the bookmark.Boolean
conflicts()
Gets the conflicts.String
db()
Gets the db.Boolean
executionStats()
Gets the executionStats.List<String>
fields()
Gets the fields.Long
limit()
Gets the limit.PostExplainOptions.Builder
newBuilder()
New builder.Long
r()
Gets the r.Map<String,Object>
selector()
Gets the selector.Long
skip()
Gets the skip.List<Map<String,String>>
sort()
Gets the sort.Boolean
stable()
Gets the stable.String
update()
Gets the update.List<String>
useIndex()
Gets the useIndex.
-
-
-
Method Detail
-
newBuilder
public PostExplainOptions.Builder newBuilder()
New builder.- Returns:
- a PostExplainOptions builder
-
db
public String db()
Gets the db. Path parameter to specify the database name.- Returns:
- the db
-
selector
public Map<String,Object> selector()
Gets the selector. JSON object describing criteria used to select documents. The selector specifies fields in the document, and provides an expression to evaluate with the field content or other data. The selector object must: * Be structured as valid JSON. * Contain a valid query expression. Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended option if filtering on document attributes only. Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for those fields. You can create more complex selector expressions by combining operators. Operators are identified by the use of a dollar sign `$` prefix in the name field. There are two core types of operators in the selector syntax: * Combination operators: applied at the topmost level of selection. They are used to combine selectors. In addition to the common boolean operators (`$and`, `$or`, `$not`, `$nor`) there are three combination operators: `$all`, `$elemMatch`, and `$allMatch`. A combination operator takes a single argument. The argument is either another selector, or an array of selectors. * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied argument.- Returns:
- the selector
-
bookmark
public String bookmark()
Gets the bookmark. Opaque bookmark token used when paginating results.- Returns:
- the bookmark
-
conflicts
public Boolean conflicts()
Gets the conflicts. A boolean value that indicates whether or not to include information about existing conflicts in the document.- Returns:
- the conflicts
-
executionStats
public Boolean executionStats()
Gets the executionStats. Use this option to find information about the query that was run. This information includes total key lookups, total document lookups (when `include_docs=true` is used), and total quorum document lookups (when each document replica is fetched).- Returns:
- the executionStats
-
fields
public List<String> fields()
Gets the fields. JSON array that uses the field syntax. Use this parameter to specify which fields of a document must be returned. If it is omitted, the entire document is returned.- Returns:
- the fields
-
limit
public Long limit()
Gets the limit. Maximum number of results returned. The `type: text` indexes are limited to 200 results when queried.- Returns:
- the limit
-
skip
public Long skip()
Gets the skip. Skip the first 'n' results, where 'n' is the value that is specified.- Returns:
- the skip
-
sort
public List<Map<String,String>> sort()
Gets the sort. JSON array of sort syntax elements to determine the sort order of the results.- Returns:
- the sort
-
stable
public Boolean stable()
Gets the stable. Whether or not the view results should be returned from a "stable" set of shards.- Returns:
- the stable
-
update
public String update()
Gets the update. Whether to update the index prior to returning the result.- Returns:
- the update
-
useIndex
public List<String> useIndex()
Gets the useIndex. Use this option to identify a specific index for query to run against, rather than by using the IBM Cloudant Query algorithm to find the best index.- Returns:
- the useIndex
-
r
public Long r()
Gets the r. The read quorum that is needed for the result. The value defaults to 1, in which case the document that was found in the index is returned. If set to a higher value, each document is read from at least that many replicas before it is returned in the results. The request will take more time than using only the document that is stored locally with the index.- Returns:
- the r
-
-