IndexUpdater
ENTERPRISE EDITION API
IndexUpdater used for updating the index in lazy mode. Currently, the vector index is the only index type that can be updated lazily.
Note!!
The finish function implicitly closes the IndexUpdater if it succeeds. Use of a closed IndexUpdater or any container (Dictionary or Array) obtained from it will throw a CouchbaseLiteError.
Properties
Functions
Updates the index with the computed vectors and removes any index rows for which null vector was given. If there are any indexes that do not have their vector value set or are skipped, a CouchbaseLiteException will be thrown.
Subscript access to a Fragment object of the projecting result value at the given index.
Gets value at the given index as a boolean.
Gets value at the given index as a Date. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns null if the value doesn't exist, is not a string, or is not parsable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds.
Gets a Dictionary at the given index. Return null if the value is not a dictionary.
Skip setting the vector for the value corresponding to the index. The vector will be required to compute and set again for the value when the QueryIndex's beginUpdate() is later called for updating the index.