public interface ViewStore
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the storage.
|
void |
deleteIndex()
Erases the view's _index.
|
void |
deleteView()
Deletes the view's storage (metadata and _index), removing it from the database.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
dump()
Methods for debugging
|
ViewStoreDelegate |
getDelegate()
The delegate (in practice, the owning View itself.)
|
long |
getLastSequenceChangedAt()
The last sequence number that caused an actual change in the _index.
|
long |
getLastSequenceIndexed()
The last sequence number that has been indexed.
|
java.lang.String |
getName()
The name of the view.
|
int |
getTotalRows()
The total number of rows in the _index.
|
java.util.List<QueryRow> |
reducedQuery(QueryOptions options)
Queries the view, with reducing or grouping as per the options.
|
java.util.List<QueryRow> |
regularQuery(QueryOptions options)
Queries the view without performing any reducing or grouping.
|
void |
setCollation(View.TDViewCollation collation) |
void |
setDelegate(ViewStoreDelegate delegate) |
boolean |
setVersion(java.lang.String version)
Updates the version of the view.
|
Status |
updateIndexes(java.util.List<ViewStore> views)
Updates the indexes of one or more views in parallel.
|
java.lang.String getName()
ViewStoreDelegate getDelegate()
void setDelegate(ViewStoreDelegate delegate)
void close()
void deleteIndex()
void deleteView()
boolean setVersion(java.lang.String version)
int getTotalRows()
long getLastSequenceIndexed()
long getLastSequenceChangedAt()
Status updateIndexes(java.util.List<ViewStore> views) throws CouchbaseLiteException
views - An array of ViewStore instances, always including the receiver.CouchbaseLiteExceptionjava.util.List<QueryRow> regularQuery(QueryOptions options) throws CouchbaseLiteException
CouchbaseLiteExceptionjava.util.List<QueryRow> reducedQuery(QueryOptions options) throws CouchbaseLiteException
CouchbaseLiteExceptionjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> dump()
void setCollation(View.TDViewCollation collation)