Class DefaultDocumentStore
java.lang.Object
io.fluxcapacitor.javaclient.persisting.search.DefaultDocumentStore
- All Implemented Interfaces:
DocumentStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulkUpdate(Collection<BulkUpdate> updates, Guarantee guarantee) createAuditTrail(String collection, Duration retentionTime) deleteCollection(String collection) deleteDocument(String id, String collection) <T> Optional<T>fetchDocument(String id, String collection) <T> Optional<T>fetchDocument(String id, String collection, Class<T> type) index(Object object, String id, String collection, Instant begin, Instant end, Guarantee guarantee, boolean ifNotExists) <T> CompletableFuture<Void>index(Collection<? extends T> objects, String collection, String idPath, String beginPath, String endPath, Guarantee guarantee, boolean ifNotExists) <T> CompletableFuture<Void>index(Collection<? extends T> objects, String collection, Function<? super T, String> idFunction, Function<? super T, Instant> beginFunction, Function<? super T, Instant> endFunction, Guarantee guarantee, boolean ifNotExists) search(SearchQuery.Builder searchBuilder) serializeAction(BulkUpdate update) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.persisting.search.DocumentStore
bulkUpdate, getSerializer, index, index, index, index, index, index, index, index, index, index, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, indexIfNotExists, search
-
Constructor Details
-
DefaultDocumentStore
public DefaultDocumentStore()
-
-
Method Details
-
index
public CompletableFuture<Void> index(Object object, String id, String collection, Instant begin, Instant end, Guarantee guarantee, boolean ifNotExists) - Specified by:
indexin interfaceDocumentStore
-
index
public <T> CompletableFuture<Void> index(Collection<? extends T> objects, String collection, @Nullable String idPath, @Nullable String beginPath, @Nullable String endPath, Guarantee guarantee, boolean ifNotExists) - Specified by:
indexin interfaceDocumentStore
-
index
public <T> CompletableFuture<Void> index(Collection<? extends T> objects, String collection, Function<? super T, String> idFunction, Function<? super T, Instant> beginFunction, Function<? super T, Instant> endFunction, Guarantee guarantee, boolean ifNotExists) - Specified by:
indexin interfaceDocumentStore
-
bulkUpdate
- Specified by:
bulkUpdatein interfaceDocumentStore
-
serializeAction
-
search
- Specified by:
searchin interfaceDocumentStore
-
fetchDocument
- Specified by:
fetchDocumentin interfaceDocumentStore
-
fetchDocument
- Specified by:
fetchDocumentin interfaceDocumentStore
-
deleteDocument
- Specified by:
deleteDocumentin interfaceDocumentStore
-
deleteCollection
- Specified by:
deleteCollectionin interfaceDocumentStore
-
createAuditTrail
- Specified by:
createAuditTrailin interfaceDocumentStore
-