Click or drag to resize

View Class

A Couchbase Lite View. A View defines a persistent index managed by map/reduce.
Inheritance Hierarchy
SystemObject
  Couchbase.LiteView

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

The View type exposes the following members.

Constructors
  NameDescription
Public methodView
Initializes a new instance of the View class
Top
Properties
  NameDescription
Public propertyStatic memberCompiler
Gets or sets an object that can compile source code into map and reduce delegates.
Public propertyDatabase
Get the Database that owns the View.
Public propertyDocumentType
Public propertyIsStale
Gets if the View's indices are currently out of date.
Public propertyLastSequenceChangedAt
Gets the last sequence that there was a change in the view
Public propertyLastSequenceIndexed
Gets the last sequence number indexed so far.
Public propertyMap
Public propertyMapVersion
Public propertyName
Gets the View's name.
Public propertyReduce
Public propertyTotalRows
Gets the total number of rows present in the view
Top
Methods
  NameDescription
Public methodCreateQuery
Creates a new Query for this view.
Public methodDelete
Deletes the View.
Public methodDeleteIndex
Deletes the View's persistent index. The index is regenerated on the next Query execution.
Public methodSetMap
Defines the View's MapDelegate and sets its ReduceDelegate to null.
Public methodSetMapReduce
Defines the View's MapDelegate and ReduceDelegate.
Public methodUpdateIndex
Updates the View's persistent index. Indexing scans all documents that have changed since the last time the index was updated. The body of each document is passed to the view's map callback, and any emitted rows are added to the index. Any existing rows previously emitted by those documents, that weren't re-emitted this time, are removed.
Top
See Also