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.
  • Method Details

    • isCovering

      public Boolean isCovering()
      Gets the covering. When `true`, the query is answered using the index only and no documents are fetched.
      Returns:
      the covering
    • getDbname

      public String getDbname()
      Gets the dbname. Name of database.
      Returns:
      the dbname
    • getFields

      public List<String> getFields()
      Gets the fields. Fields that were requested to be projected from the document. If no fields were requested to be projected this will be empty and all fields will be returned.
      Returns:
      the fields
    • getIndex

      public IndexInformation getIndex()
      Gets the index. Schema for information about an index.
      Returns:
      the index
    • getIndexCandidates

      public List<IndexCandidate> getIndexCandidates()
      Gets the indexCandidates. Schema for the list of all the other indexes that were not chosen for serving the query.
      Returns:
      the indexCandidates
    • getLimit

      public Long getLimit()
      Gets the limit. The used maximum number of results returned.
      Returns:
      the limit
    • getMrargs

      public ExplainResultMrArgs getMrargs()
      Gets the mrargs. Arguments passed to the underlying view.
      Returns:
      the mrargs
    • getOpts

      public ExplainResultOpts getOpts()
      Gets the opts. Options used for the request.
      Returns:
      the opts
    • getPartitioned

      public Object getPartitioned()
      Gets the partitioned. Schema for any JSON type.
      Returns:
      the partitioned
    • 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. 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. See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list of all available combination and conditional operators. * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis of a query. You should include at least one of these in a selector. For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
      Returns:
      the selector
    • getSelectorHints

      public List<SelectorHint> getSelectorHints()
      Gets the selectorHints. Schema for a list of objects with extra information on the selector to provide insights about its usability.
      Returns:
      the selectorHints
    • getSkip

      public Long getSkip()
      Gets the skip. Skip parameter used.
      Returns:
      the skip