Package com.ibm.cloud.cloudant.v1.model
Class ExplainResult
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.ExplainResult
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ExplainResult extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for information about the index used for a find query.
-
-
Constructor Summary
Constructors Constructor Description ExplainResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDbname()
Gets the dbname.List<String>
getFields()
Gets the fields.IndexInformation
getIndex()
Gets the index.Long
getLimit()
Gets the limit.Map<String,Object>
getOpts()
Gets the opts.ExplainResultRange
getRange()
Gets the range.Map<String,Object>
getSelector()
Gets the selector.Long
getSkip()
Gets the skip.
-
-
-
Method Detail
-
getDbname
public String getDbname()
Gets the dbname. dbname.- Returns:
- the dbname
-
getIndex
public IndexInformation getIndex()
Gets the index. Schema for information about an index.- Returns:
- the index
-
getLimit
public Long getLimit()
Gets the limit. limit.- Returns:
- the limit
-
getRange
public ExplainResultRange getRange()
Gets the range. range.- Returns:
- the range
-
getSelector
public Map<String,Object> getSelector()
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
-
getSkip
public Long getSkip()
Gets the skip. skip.- Returns:
- the skip
-
-