Package net.sinyax.sofa
Class LocalDatabase
java.lang.Object
net.sinyax.sofa.LocalDatabase
- All Implemented Interfaces:
ReplicatorDbAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulkSaveDocuments(List<Document> docs, boolean newEdits) getChanges(String since, int limit) getDocument(String docId, boolean revs) getDocument(String docId, boolean revs, List<String> revisions) getLocalDocument(String docId) getRevisionDiff(Map<String, List<String>> revs) info()
-
Constructor Details
-
LocalDatabase
-
-
Method Details
-
identifier
- Specified by:
identifierin interfaceReplicatorDbAdapter
-
info
- Specified by:
infoin interfaceReplicatorDbAdapter
-
getChanges
- Specified by:
getChangesin interfaceReplicatorDbAdapter
-
getDocument
- Specified by:
getDocumentin interfaceReplicatorDbAdapter
-
getDocument
public CompletableFuture<List<DocRevResponse>> getDocument(String docId, boolean revs, List<String> revisions) - Specified by:
getDocumentin interfaceReplicatorDbAdapter
-
bulkSaveDocuments
public CompletableFuture<List<DocSaveResponse>> bulkSaveDocuments(List<Document> docs, boolean newEdits) - Specified by:
bulkSaveDocumentsin interfaceReplicatorDbAdapter
-
getLocalDocument
- Specified by:
getLocalDocumentin interfaceReplicatorDbAdapter
-
saveLocalDocument
- Specified by:
saveLocalDocumentin interfaceReplicatorDbAdapter
-
getRevisionDiff
public CompletableFuture<Map<String,Map<String, getRevisionDiffList<String>>>> (Map<String, List<String>> revs) - Specified by:
getRevisionDiffin interfaceReplicatorDbAdapter
-