Ditto 2.0.2
|
These objects are returned when using DittoScopedWriteTransaction.Find(string), DittoScopedWriteTransaction.Find(string, Dictionary<string, object>), or DittoScopedWriteTransaction.FindAll. More...
Public Member Functions | |
DittoWriteTransactionPendingCursorOperation | Limit (int limit) |
Limit the number of documents that get returned when querying a collection for matching documents. More... | |
DittoWriteTransactionPendingCursorOperation | Offset (uint offset) |
Offset the resulting set of matching documents. More... | |
DittoWriteTransactionPendingCursorOperation | Sort (string query, DittoSortDirection direction) |
Sort the documents that match the query provided in the preceding find -like function call. More... | |
unsafe List< DittoDocument > | Exec () |
Execute the query generated by the preceding function chaining and return the list of matching documents. More... | |
unsafe Dictionary< DittoDocumentID, List< DittoUpdateResult > > | Update (Action< List< DittoMutableDocument > > updater) |
Update documents that match the query generated by the preceding function chaining. More... | |
unsafe List< DittoDocumentID > | Remove () |
Remove all documents that match the query generated by the preceding function chaining. More... | |
unsafe List< DittoDocumentID > | Evict () |
Evict all documents that match the query generated by the preceding function chaining. More... | |
These objects are returned when using DittoScopedWriteTransaction.Find(string), DittoScopedWriteTransaction.Find(string, Dictionary<string, object>), or DittoScopedWriteTransaction.FindAll.
You can use them to perform updates on, remove, evict, or find documents.
|
inline |
Evict all documents that match the query generated by the preceding function chaining.
|
inline |
Execute the query generated by the preceding function chaining and return the list of matching documents.
|
inline |
Limit the number of documents that get returned when querying a collection for matching documents.
limit | The maximum number of documents that will be returned. |
DittoWriteTransactionPendingCursorOperation
that you can chain further function calls to.
|
inline |
Offset the resulting set of matching documents.
This is useful if you aren't interested in the first N matching documents for one reason or another. For example, you might already have queried the collection and obtained the first 20 matching documents and so you might want to run the same query as you did previously but ignore the first 20 matching documents, and that is when you would use Offset(uint).
offset | The number of matching documents that you want the eventual resulting set of matching documents to be offset by (and thus not include). |
DittoWriteTransactionPendingCursorOperation
that you can chain further function calls to.
|
inline |
Remove all documents that match the query generated by the preceding function chaining.
|
inline |
Sort the documents that match the query provided in the preceding find
-like function call.
query | The query specifies the logic to be used when sorting the matching documents. |
direction | Specify whether you want the sorting order to be ascending or descending. |
DittoWriteTransactionPendingCursorOperation
that you can chain further function calls to.
|
inline |
Update documents that match the query generated by the preceding function chaining.
updater | A block that gets called with all of the documents matching the query. The documents are DittoMutableDocument objects so you can call update-related functions on them. |