Click or drag to resize

QueryOptions Class

Standard query options for views.
Inheritance Hierarchy
SystemObject
  Couchbase.LiteQueryOptions

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public sealed class QueryOptions

The QueryOptions type exposes the following members.

Constructors
  NameDescription
Public methodQueryOptions
Constructor
Top
Properties
  NameDescription
Public propertyAllDocsMode
Gets or sets the options for an _all_docs query
Public propertyContentOptions
Gets or sets the content options for including document values in the results
Public propertyDescending
Gets or sets whether or not the query is in descending order
Public propertyEndKey
Gets or sets the end key for the query.
Public propertyEndKeyDocId
Gets or sets the last document ID to include in the results
Public propertyFilter
Gets or sets the filter used for filtering the results of the query
Public propertyGroup
Gets or sets whether or not this query groups its results
Public propertyGroupLevel
Gets or sets the group level of the query
Public propertyIncludeDeletedDocs
Gets or sets whether or not to include deleted documents in the result set
Public propertyIncludeDocs
Gets or sets whether or not to include document information in the results
Public propertyInclusiveEnd
Gets or sets whether or not to include the end key in the result set
Public propertyInclusiveStart
Gets or sets whether or not to include the start key in the result set
Public propertyKeys
Gets or sets the keys to include in the query
Public propertyLimit
Gets or sets the number of results the query is limited to
Public propertyPrefixMatchLevel
If nonzero, enables prefix matching of string or array keys. * A value of 1 treats the endKey itself as a prefix: if it's a string, keys in the index that come after the endKey, but begin with the same prefix, will be matched. (For example, if the endKey is "foo" then the key "foolish" in the index will be matched, but not "fong".) Or if the endKey is an array, any array beginning with those elements will be matched. (For example, if the endKey is [1], then [1, "x"] will match, but not [2].) If the key is any other type, there is no effect. * A value of 2 assumes the endKey is an array and treats its final item as a prefix, using the rules above. (For example, an endKey of [1, "x"] will match [1, "xtc"] but not [1, "y"].) * A value of 3 assumes the key is an array of arrays, etc. Note that if the .Descending property is also set, the search order is reversed and the above discussion applies to the startKey, _not_ the endKey.
Public propertyReduce
Gets or sets whether or not this query should reduce
Public propertyReduceSpecified
Gets or sets whether or not the reduce parameter was explicitly specified (Defaults vary depending on whether or not it was)
Public propertySkip
Gets or sets the number of documents the query should skip
Public propertyStale
Gets or sets the timing for updating the results of the query
Public propertyStartKey
Gets or sets the start key for the query
Public propertyStartKeyDocId
Gets or sets the first document ID to include in the results
Public propertyUpdateSeq
Gets or sets whether or not to include the most recently updated sequence number from the database in the result set
Top
Methods
  NameDescription
Public methodCopy
Create a copy of a given QueryOptions object
Public methodGetAllDocsMode Obsolete.
Get the all document query mode for this query
Public methodGetContentOptions Obsolete.
Get the options for including document content in the result set
Public methodGetEndKey Obsolete.
Gets the end key for the query
Public methodGetEndKeyDocId Obsolete.
Gets the last document ID to include in the result set
Public methodGetGroupLevel Obsolete.
Gets the group level of the query
Public methodGetKeys Obsolete.
Gets the keys to include in the query results
Public methodGetLimit Obsolete.
Gets the number of docs to limit the query to
Public methodGetSkip Obsolete.
Gets the number of docs to skip in the query
Public methodGetStale Obsolete.
Gets the timing of when to update the query results
Public methodGetStartKey Obsolete.
Gets the start key for the query
Public methodGetStartKeyDocId Obsolete.
Gets the first document ID to include in the result set
Public methodIsDescending Obsolete.
Returns whether or not the query should order the results in descending in order
Public methodIsGroup Obsolete.
Gets whether or not this query groups its results
Public methodIsIncludeDeletedDocs Obsolete.
Gets whether or not to include deleted documents in the reuslt set
Public methodIsIncludeDocs Obsolete.
Returns whether or not the document bodies should be included with the query results
Public methodIsInclusiveEnd Obsolete.
Gets whether or not the query includes the end key
Public methodIsReduce Obsolete.
Gets whether or not this query should reduce
Public methodIsReduceSpecified Obsolete.
Gets whether or not the Reduce property has been manually specified
Public methodIsUpdateSeq Obsolete.
Gets whether or not the results include the last sequence updated in the database
Public methodSetAllDocsMode Obsolete.
Sets the all document query mode for this query
Public methodSetContentOptions Obsolete.
Sets the options for including document content in the result set
Public methodSetDescending Obsolete.
Sets whether or not the query should order the results in descending in order
Public methodSetEndKey Obsolete.
Sets the end key for the query
Public methodSetEndKeyDocId Obsolete.
Sets the last document ID to include in the result set
Public methodSetGroup Obsolete.
Sets whether or not this query groups its results
Public methodSetGroupLevel Obsolete.
Sets the group level of the query
Public methodSetIncludeDeletedDocs Obsolete.
Sets whether or not to include deleted documents in the reuslt set
Public methodSetIncludeDocs Obsolete.
Sets whether or not the document bodies should be included with the query results
Public methodSetInclusiveEnd Obsolete.
Sets whether or not the query includes the end key
Public methodSetKeys Obsolete.
Sets the keys to include in the query results
Public methodSetLimit Obsolete.
Sets the number of docs to limit the query to
Public methodSetReduce Obsolete.
Sets whether or not this query should reduce
Public methodSetReduceSpecified Obsolete.
Sets whether or not the Reduce property has been manually specified
Public methodSetSkip Obsolete.
Sets the number of docs to skip in the query
Public methodSetStale Obsolete.
Sets the timing of when to update the query results
Public methodSetStartKey Obsolete.
Sets the start key for the query
Public methodSetStartKeyDocId Obsolete.
Sets the first document ID to include in the result set
Public methodSetUpdateSeq Obsolete.
Sets whether or not the results include the last sequence updated in the database
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_LIMIT Obsolete.
The default limit to use when querying (i.e. unlimited)
Public fieldStatic memberDefaultLimit
The default limit to use when querying (i.e. unlimited)
Top
See Also