@API.Public public class ForwardingStore extends Object implements DocumentStore
| Constructor and Description | 
|---|
| ForwardingStore(DocumentStore store) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | beginTrackingWrites()Begins tracking the write operations performed through this instance of  DocumentStore. | 
| void | beginTrackingWrites(String previousWritesContext)Begins tracking the write operations performed through this instance of  DocumentStore. | 
| boolean | checkAndDelete(String id,
              QueryCondition condition)Atomically evaluates the condition on given document and if the
 condition holds true for the document then it is atomically deleted. | 
| boolean | checkAndDelete(Value _id,
              QueryCondition condition) | 
| boolean | checkAndMutate(String id,
              QueryCondition condition,
              DocumentMutation m)Atomically evaluates the condition on a given document and if the
 condition holds true for the document then a mutation is applied on the document. | 
| boolean | checkAndMutate(Value _id,
              QueryCondition condition,
              DocumentMutation mutation)Atomically evaluates the condition on a given document and if the
 condition holds true for the document then a mutation is applied on the document. | 
| boolean | checkAndReplace(String id,
               QueryCondition condition,
               Document r)Atomically evaluates the condition on the given document and if the
 condition holds true for the document then it atomically replaces the document
 with the given document. | 
| boolean | checkAndReplace(Value _id,
               QueryCondition condition,
               Document doc) | 
| void | clearTrackedWrites()Stops the writes tracking and clears any state on this  DocumentStoreinstance. | 
| void | close()Override  AutoCloseable.close()to avoid declaring a checked exception. | 
| void | delete(Document r) | 
| void | delete(Document r,
      FieldPath fieldAsKey) | 
| void | delete(DocumentStream rs)Deletes a set of documents from the DocumentStore represented by the DocumentStream. | 
| void | delete(DocumentStream rs,
      FieldPath fieldAsKey) | 
| void | delete(DocumentStream rs,
      String fieldAsKey) | 
| void | delete(Document r,
      String fieldAsKey) | 
| void | delete(String id)Deletes a document with the given id. | 
| void | delete(Value _id) | 
| String | endTrackingWrites()Flushes any buffered writes operations for this  DocumentStoreand returns a
 writesContext which can be used to ensure that such writes are visible to ensuing queries. | 
| DocumentStream | find()Executes a query to return all Documents in the DocumentStore. | 
| DocumentStream | find(FieldPath... paths)Executes a query to return all Documents in the DocumentStore. | 
| QueryResult | find(Query query)Executes the specified query on the DocumentStore and return a QueryResult. | 
| DocumentStream | find(QueryCondition c)Returns a DocumentStream with all the documents in the DocumentStore that
 satisfies the QueryCondition. | 
| DocumentStream | find(QueryCondition c,
    FieldPath... paths)Executes a query on the DocumentStore and return a DocumentStream of the Document
 matching the specified QueryCondition. | 
| DocumentStream | find(QueryCondition c,
    String... paths)Executes a query on the DocumentStore and return a DocumentStream of the Document
 matching the specified QueryCondition. | 
| DocumentStream | find(String... paths)Executes a query to return all Documents in the DocumentStore. | 
| Document | findById(String id)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| Document | findById(String id,
        FieldPath... paths)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| Document | findById(String id,
        QueryCondition c)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(String id,
        QueryCondition c,
        FieldPath... paths)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(String id,
        QueryCondition c,
        String... paths)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(String id,
        String... paths)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| Document | findById(Value id)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| Document | findById(Value _id,
        FieldPath... fieldPaths)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| Document | findById(Value _id,
        QueryCondition condition)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(Value _id,
        QueryCondition condition,
        FieldPath... fieldPaths)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(Value _id,
        QueryCondition condition,
        String... fieldPaths)Returns the Document with the given `_id` if it matches the specified condition. | 
| Document | findById(Value _id,
        String... fieldPaths)Returns the Document with the given `_id` or  nullif the document with that `_id`
 doesn't exist in this DocumentStore. | 
| DocumentStream | findQuery(Query query)Executes the specified query on the DocumentStore and return a DocumentStream of the result. | 
| DocumentStream | findQuery(String queryJSON)Executes the specified query on the DocumentStore and return a DocumentStream of the result. | 
| void | flush()Flushes any buffered writes operations for this DocumentStore. | 
| void | increment(String id,
         String field,
         BigDecimal inc) | 
| void | increment(String id,
         String field,
         byte inc)Atomically applies an increment to a given field (in dot separated notation)
 of the given document id. | 
| void | increment(String id,
         String field,
         double inc) | 
| void | increment(String id,
         String field,
         float inc) | 
| void | increment(String id,
         String field,
         int inc) | 
| void | increment(String id,
         String field,
         long inc) | 
| void | increment(String id,
         String field,
         short inc) | 
| void | increment(Value _id,
         String field,
         BigDecimal inc) | 
| void | increment(Value _id,
         String field,
         byte inc) | 
| void | increment(Value _id,
         String field,
         double inc) | 
| void | increment(Value _id,
         String field,
         float inc) | 
| void | increment(Value _id,
         String field,
         int inc) | 
| void | increment(Value _id,
         String field,
         long inc) | 
| void | increment(Value _id,
         String field,
         short inc) | 
| void | insert(Document r) | 
| void | insert(Document r,
      FieldPath fieldAsKey) | 
| void | insert(DocumentStream rs)Inserts a set of documents represented by the DocumentStream into the DocumentStore. | 
| void | insert(DocumentStream rs,
      FieldPath fieldAsKey) | 
| void | insert(DocumentStream rs,
      String fieldAsKey) | 
| void | insert(Document r,
      String fieldAsKey) | 
| void | insert(String id,
      Document r)Inserts a document with the given id. | 
| void | insert(Value _id,
      Document doc) | 
| void | insertOrReplace(Document r)Inserts or replaces a new document in this DocumentStore. | 
| void | insertOrReplace(Document r,
               FieldPath fieldAsKey)Inserts or replaces a new document in this DocumentStore with the value of
 the specified Field as the  _id. | 
| void | insertOrReplace(DocumentStream rs)Inserts all documents from the specified DocumentStream into this DocumentStore. | 
| void | insertOrReplace(DocumentStream rs,
               FieldPath fieldAsKey)Inserts all documents from the specified DocumentStream into this DocumentStore
 using the field specified by parameter  fieldAsKeyas the "_id" field. | 
| void | insertOrReplace(DocumentStream rs,
               String fieldAsKey)Inserts all documents from the specified DocumentStream into this DocumentStore
 using the field specified by parameter  fieldAsKeyas the "_id" field. | 
| void | insertOrReplace(Document r,
               String fieldAsKey)Inserts or replaces a new document in this DocumentStore with the value of
 the specified Field as the  _id. | 
| void | insertOrReplace(String id,
               Document r)Inserts or replaces a new document in this DocumentStore with the given _id. | 
| void | insertOrReplace(Value _id,
               Document doc)Inserts or replaces a new document in this DocumentStore with the given _id. | 
| boolean | isReadOnly()Returns  trueif this Document store does not support any write
 operations like insert/update/delete, etc. | 
| void | replace(Document r) | 
| void | replace(Document r,
       FieldPath fieldAsKey) | 
| void | replace(DocumentStream rs)Replaces a set of documents represented by the DocumentStream into the DocumentStore. | 
| void | replace(DocumentStream rs,
       FieldPath fieldAsKey) | 
| void | replace(DocumentStream rs,
       String fieldAsKey) | 
| void | replace(Document r,
       String fieldAsKey) | 
| void | replace(String id,
       Document r)Replaces a document in the DocumentStore. | 
| void | replace(Value _id,
       Document doc) | 
| void | update(String id,
      DocumentMutation m)Applies a mutation on the document identified by the document id. All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer. | 
| void | update(Value _id,
      DocumentMutation mutation)Applies a mutation on the document identified by the document id. All updates specified by the mutation object should be applied atomically, and consistently meaning either all of the updates in mutation are applied or none of them is applied and a partial update should not be visible to an observer. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAndUpdate, checkAndUpdatepublic ForwardingStore(DocumentStore store)
public void close()
           throws StoreException
DocumentStoreAutoCloseable.close() to avoid declaring a checked exception.close in interface AutoCloseableclose in interface DocumentStoreStoreExceptionpublic boolean isReadOnly()
DocumentStoretrue if this Document store does not support any write
 operations like insert/update/delete, etc.isReadOnly in interface DocumentStorepublic void beginTrackingWrites()
                         throws StoreException
DocumentStoreDocumentStore.beginTrackingWrites in interface DocumentStoreStoreExceptionDocumentStore.endTrackingWrites(), 
DocumentStore.clearTrackedWrites(), 
Query.waitForTrackedWrites(String)public void beginTrackingWrites(String previousWritesContext) throws StoreException
DocumentStoreDocumentStore.beginTrackingWrites in interface DocumentStorepreviousWritesContext - previously tracked writes that were retrieved from this
        DocumentStore, or from other DocumentStore instances. The tracking
        begins by using this context as the base stateStoreExceptionDocumentStore.endTrackingWrites(), 
DocumentStore.clearTrackedWrites(), 
Query.waitForTrackedWrites(String)public String endTrackingWrites() throws StoreException
DocumentStoreDocumentStore and returns a
 writesContext which can be used to ensure that such writes are visible to ensuing queries.
 
 The write-context is cleared and tracking is stopped.
 
 This call does not isolate the writes originating from this instance of DocumentStore
 from other instances and as a side-effect other writes issued to the same document-store
 through other DocumentStore instances could get flushed.endTrackingWrites in interface DocumentStoreDocumentStore.beginTrackingWrites() until now, through this instance of
         DocumentStoreStoreException - if the flush failed or if the flush of any
         buffered operation resulted in an error.DocumentStore.beginTrackingWrites(), 
DocumentStore.clearTrackedWrites(), 
Query.waitForTrackedWrites(String)public void clearTrackedWrites()
                        throws StoreException
DocumentStoreDocumentStore instance.
 
 This API should be called to stop tracking the writes-context in case where
 DocumentStore.beginTrackingWrites() was previously called but a commit context is not needed
 anymore, for example in case of an error in any of the mutation.clearTrackedWrites in interface DocumentStoreStoreExceptionpublic Document findById(Value _id, String... fieldPaths) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore. The returned Document will include only the specified
 fields.findById in interface DocumentStore_id - Document _idfieldPaths - Array of of field paths that should be returnednull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(Value _id, FieldPath... fieldPaths) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore. The returned Document will include only the specified
 fields.findById in interface DocumentStore_id - Document _idfieldPaths - Array of of field paths that should be returnednull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(Value _id, QueryCondition condition) throws StoreException
DocumentStorenull is returned.findById in interface DocumentStore_id - document idcondition - query condition to test the documentStoreExceptionpublic Document findById(Value _id, QueryCondition condition, String... fieldPaths) throws StoreException
DocumentStorenull is returned. The returned Document will include only the specified fields.findById in interface DocumentStore_id - document idcondition - query condition to test the documentfieldPaths - list of fields that should be returned in the read documentStoreExceptionpublic Document findById(Value _id, QueryCondition condition, FieldPath... fieldPaths) throws StoreException
DocumentStorenull is returned. The returned Document will include only the specified fields.findById in interface DocumentStore_id - document idcondition - query condition to test the documentfieldPaths - list of fields that should be returned in the read documentStoreExceptionpublic QueryResult find(Query query) throws StoreException
DocumentStoreExecutes the specified query on the DocumentStore and return a QueryResult.
The returned QueryResult must be closed after retrieving the documents.
find in interface DocumentStoreStoreExceptionpublic DocumentStream findQuery(Query query) throws StoreException
DocumentStoreExecutes the specified query on the DocumentStore and return a DocumentStream of the result.
The returned DocumentStream must be closed after retrieving the documents.
findQuery in interface DocumentStoreStoreExceptionpublic DocumentStream findQuery(String queryJSON) throws StoreException
DocumentStoreExecutes the specified query on the DocumentStore and return a DocumentStream of the result.
The returned DocumentStream must be closed after retrieving the documents.
findQuery in interface DocumentStorequeryJSON - a Json string representation of OJAI QueryStoreExceptionpublic void insertOrReplace(Value _id, Document doc) throws StoreException
DocumentStore"_id" field or
 its value should be same as the specified _id or the operation will fail.
 insertOrReplace in interface DocumentStore_id - value to be used as the _id for this documentdoc - the Document to be inserted or replaced in the DocumentStoreStoreExceptionpublic void update(Value _id, DocumentMutation mutation) throws StoreException
DocumentStoreupdate in interface DocumentStore_id - document idStoreExceptionpublic void delete(Value _id) throws StoreException
delete in interface DocumentStoreStoreExceptionpublic void insert(Value _id, Document doc) throws StoreException
insert in interface DocumentStoreStoreExceptionpublic void replace(Value _id, Document doc) throws StoreException
replace in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, byte inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, short inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, int inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, long inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, float inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, double inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(Value _id, String field, BigDecimal inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic boolean checkAndMutate(Value _id, QueryCondition condition, DocumentMutation mutation) throws StoreException
DocumentStorecheckAndMutate in interface DocumentStore_id - document idcondition - the condition to evaluate on the documentStoreException - if the condition passes but the mutate failspublic boolean checkAndDelete(Value _id, QueryCondition condition) throws StoreException
checkAndDelete in interface DocumentStoreStoreExceptionpublic boolean checkAndReplace(Value _id, QueryCondition condition, Document doc) throws StoreException
checkAndReplace in interface DocumentStoreStoreExceptionpublic void flush()
           throws StoreException
DocumentStoreflush in interface DocumentStoreStoreException - if the flush failed or if the flush of any
         buffered operation resulted in an errorpublic Document findById(String id) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore.findById in interface DocumentStoreid - document idnull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(Value id) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore.findById in interface DocumentStoreid - Document _idnull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(String id, String... paths) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore. The returned Document will include only the specified
 fields.findById in interface DocumentStoreid - Document _idpaths - Array of field paths that should be returnednull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(String id, FieldPath... paths) throws StoreException
DocumentStorenull if the document with that `_id`
 doesn't exist in this DocumentStore. The returned Document will include only the specified
 fields.findById in interface DocumentStoreid - Document _idpaths - Array of field paths that should be returnednull if one does not exist in
         this DocumentStoreStoreExceptionpublic Document findById(String id, QueryCondition c) throws StoreException
DocumentStorenull is returned.findById in interface DocumentStoreid - document idc - query condition to test the documentStoreExceptionpublic Document findById(String id, QueryCondition c, String... paths) throws StoreException
DocumentStorenull is returned. The returned Document will include only the specified fields.findById in interface DocumentStoreid - document idc - query condition to test the documentpaths - list of fields that should be returned in the read documentStoreExceptionpublic Document findById(String id, QueryCondition c, FieldPath... paths) throws StoreException
DocumentStorenull is returned. The returned Document will include only the specified fields.findById in interface DocumentStoreid - document idc - query condition to test the documentpaths - list of fields that should be returned in the read documentStoreExceptionpublic DocumentStream find() throws StoreException
DocumentStoreExecutes a query to return all Documents in the DocumentStore.
The returned DocumentStream must be closed after retrieving the documents.
find in interface DocumentStoreStoreExceptionpublic DocumentStream find(String... paths) throws StoreException
DocumentStoreExecutes a query to return all Documents in the DocumentStore.
Each Document will contain only those field paths that are specified in the argument. If no fields are specified then it returns a full document.
find in interface DocumentStorepaths - list of fields that should be returned in the read documentStoreExceptionpublic DocumentStream find(FieldPath... paths) throws StoreException
DocumentStoreExecutes a query to return all Documents in the DocumentStore.
Each Document will contain only those field paths that are specified in the argument. If no fields are specified then it returns a full document.
find in interface DocumentStorepaths - list of fields that should be returned in the read documentStoreExceptionpublic DocumentStream find(QueryCondition c) throws StoreException
DocumentStorefind in interface DocumentStorec - the QueryCondition to match the documentsStoreExceptionpublic DocumentStream find(QueryCondition c, String... paths) throws StoreException
DocumentStoreExecutes a query on the DocumentStore and return a DocumentStream of the Document matching the specified QueryCondition.
Each Document will contain only those field paths that are specified in the argument. If no fields are specified then it returns a full document.
find in interface DocumentStorec - the QueryCondition to match the documentspaths - list of fields that should be returned in the read documentStoreExceptionpublic DocumentStream find(QueryCondition c, FieldPath... paths) throws StoreException
DocumentStoreExecutes a query on the DocumentStore and return a DocumentStream of the Document matching the specified QueryCondition.
Each Document will contain only those field paths that are specified in the argument. If no fields are specified then it returns a full document.
find in interface DocumentStorec - the QueryCondition to match the documentspaths - list of fields that should be returned in the read documentStoreExceptionpublic void insertOrReplace(Document r) throws StoreException
DocumentStore"_id" field or the operation
 will fail.
 insertOrReplace in interface DocumentStorer - the Document to be inserted or replaced in the DocumentStoreStoreExceptionpublic void insertOrReplace(String id, Document r) throws StoreException
DocumentStore"_id" field or
 its value should be same as the specified _id or the operation will fail.
 insertOrReplace in interface DocumentStoreid - value to be used as the _id for this documentStoreExceptionpublic void insertOrReplace(Document r, FieldPath fieldAsKey) throws StoreException
DocumentStore_id.
 insertOrReplace in interface DocumentStorer - the Document to be inserted or replaced in the DocumentStorefieldAsKey - document's field to be used as the key when an id is not
                   passed in and the document doesn't have an "_id" field or
                   a different field is desired to be used as _idStoreExceptionpublic void insertOrReplace(Document r, String fieldAsKey) throws StoreException
DocumentStore_id.
 insertOrReplace in interface DocumentStorer - the Document to be inserted or replaced in the DocumentStorefieldAsKey - document's field to be used as the key when an id is not
                   passed in and the document doesn't have an "_id" field or
                   a different field is desired to be used as _idStoreExceptionpublic void insertOrReplace(DocumentStream rs) throws MultiOpException
DocumentStoreinsertOrReplace in interface DocumentStorers - the DocumentStream to read the documents fromMultiOpException - which has a list of write-failed documents and
                          their errorspublic void insertOrReplace(DocumentStream rs, FieldPath fieldAsKey) throws MultiOpException
DocumentStorefieldAsKey as the "_id" field.
 If an "_id" field is present in the documents, an exception will be thrown.
 insertOrReplace in interface DocumentStorers - the DocumentStream to read the documents fromfieldAsKey - field from each document whose value is to be used as
                   the document key for insertionMultiOpException - which has a list of write-failed documents and
                          their errorspublic void insertOrReplace(DocumentStream rs, String fieldAsKey) throws MultiOpException
DocumentStorefieldAsKey as the "_id" field.
 If an "_id" field is present in the documents, an exception will be thrown.
 insertOrReplace in interface DocumentStorers - the DocumentStream to read the documents fromfieldAsKey - field from each document whose value is to be used as
                   the document key for insertionMultiOpException - which has a list of write-failed documents and
                          their errorspublic void update(String id, DocumentMutation m) throws StoreException
DocumentStoreupdate in interface DocumentStoreid - document idStoreExceptionpublic void delete(String id) throws StoreException
DocumentStorefieldAsKey is provided, its value will be used as
 the "_id" to delete the document.delete in interface DocumentStoreid - document idStoreExceptionpublic void delete(Document r) throws StoreException
delete in interface DocumentStoreStoreExceptionpublic void delete(Document r, FieldPath fieldAsKey) throws StoreException
delete in interface DocumentStoreStoreExceptionpublic void delete(Document r, String fieldAsKey) throws StoreException
delete in interface DocumentStoreStoreExceptionpublic void delete(DocumentStream rs) throws MultiOpException
DocumentStoredelete in interface DocumentStorers - DocumentStreamMultiOpException - which has a list of write-failed documents and
                          their errorspublic void delete(DocumentStream rs, FieldPath fieldAsKey) throws MultiOpException
delete in interface DocumentStoreMultiOpExceptionpublic void delete(DocumentStream rs, String fieldAsKey) throws MultiOpException
delete in interface DocumentStoreMultiOpExceptionpublic void insert(String id, Document r) throws StoreException
DocumentStoreinsert in interface DocumentStoreid - to be used as the key for the documentr - JSON document as the new value for the given documentDocumentExistsException - when a document with id already exists in DocumentStoreStoreExceptionpublic void insert(Document r) throws StoreException
insert in interface DocumentStoreStoreExceptionpublic void insert(Document r, FieldPath fieldAsKey) throws StoreException
insert in interface DocumentStoreStoreExceptionpublic void insert(Document r, String fieldAsKey) throws StoreException
insert in interface DocumentStoreStoreExceptionpublic void insert(DocumentStream rs) throws MultiOpException
DocumentStoreinsert in interface DocumentStorers - DocumentStreamMultiOpException - which has a list of write-failed documents and
                          their errorspublic void insert(DocumentStream rs, FieldPath fieldAsKey) throws MultiOpException
insert in interface DocumentStoreMultiOpExceptionpublic void insert(DocumentStream rs, String fieldAsKey) throws MultiOpException
insert in interface DocumentStoreMultiOpExceptionpublic void replace(String id, Document r) throws StoreException
DocumentStorereplace in interface DocumentStoreid - to be used as the key for the documentr - JSON document as the new value for the given documentDocumentNotFoundException - when a document with the id does not exist in DocumentStoreStoreExceptionpublic void replace(Document r) throws StoreException
replace in interface DocumentStoreStoreExceptionpublic void replace(Document r, FieldPath fieldAsKey) throws StoreException
replace in interface DocumentStoreStoreExceptionpublic void replace(Document r, String fieldAsKey) throws StoreException
replace in interface DocumentStoreStoreExceptionpublic void replace(DocumentStream rs) throws MultiOpException
DocumentStorereplace in interface DocumentStorers - a DocumentStream to read the documents fromMultiOpException - which has list of write-failed documents and
                          their errorspublic void replace(DocumentStream rs, FieldPath fieldAsKey) throws MultiOpException
replace in interface DocumentStoreMultiOpExceptionpublic void replace(DocumentStream rs, String fieldAsKey) throws MultiOpException
replace in interface DocumentStoreMultiOpExceptionpublic void increment(String id, String field, byte inc) throws StoreException
DocumentStoreincrement in interface DocumentStoreid - document idfield - the field name in dot separated notationinc - increment to apply to a field. Can be positive or negativeStoreExceptionpublic void increment(String id, String field, short inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(String id, String field, int inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(String id, String field, long inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(String id, String field, float inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(String id, String field, double inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic void increment(String id, String field, BigDecimal inc) throws StoreException
increment in interface DocumentStoreStoreExceptionpublic boolean checkAndMutate(String id, QueryCondition condition, DocumentMutation m) throws StoreException
DocumentStorecheckAndMutate in interface DocumentStoreid - document idcondition - the condition to evaluate on the documentStoreException - if the condition passes but the mutate failspublic boolean checkAndDelete(String id, QueryCondition condition) throws StoreException
DocumentStorecheckAndDelete in interface DocumentStoreid - document idcondition - condition to evaluate on the documentStoreException - if the condition passes but the delete failspublic boolean checkAndReplace(String id, QueryCondition condition, Document r) throws StoreException
DocumentStorecheckAndReplace in interface DocumentStoreid - document idcondition - the condition to evaluate on the documentr - document to replaceStoreException - if the condition passes but the replace failsCopyright © 2015–2019 MapR Technologies, Inc.. All rights reserved.