View Class |
Namespace: Couchbase.Lite
public sealed class View
The View type exposes the following members.
Name | Description | |
---|---|---|
Compiler |
Gets or sets an object that can compile source code into map and reduce delegates.
| |
Database |
Get the Database that owns the View.
| |
DocumentType | ||
IsStale |
Gets if the View's indices are currently out of date.
| |
LastSequenceChangedAt |
Gets the last sequence that there was a change in the view
| |
LastSequenceIndexed |
Gets the last sequence number indexed so far.
| |
Map | ||
MapVersion | ||
Name |
Gets the View's name.
| |
Reduce | ||
TotalRows |
Gets the total number of rows present in the view
|
Name | Description | |
---|---|---|
CreateQuery |
Creates a new Query for this view.
| |
Delete |
Deletes the View.
| |
DeleteIndex |
Deletes the View's persistent index.
The index is regenerated on the next Query execution.
| |
SetMap | ||
SetMapReduce |
Defines the View's MapDelegate
and ReduceDelegate.
| |
UpdateIndex |
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.
|