Class InMemorySearchClient
java.lang.Object
io.fluxcapacitor.javaclient.persisting.search.client.InMemorySearchClient
- All Implemented Interfaces:
SearchClient,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringasIdentifier(String collection, String documentId) bulkUpdate(Collection<DocumentUpdate> updates, Guarantee guarantee) voidclose()createAuditTrail(CreateAuditTrail request) delete(SearchQuery query, Guarantee guarantee) deleteCollection(String collection, Guarantee guarantee) fetch(GetDocument r) fetchHistogram(GetSearchHistogram request) fetchStatistics(SearchQuery query, List<String> fields, List<String> groupBy) index(List<SerializedDocument> documents, Guarantee guarantee, boolean ifNotExists) search(SearchDocuments searchDocuments, int fetchSize) 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.client.SearchClient
deleteCollection
-
Field Details
-
identifier
-
-
Constructor Details
-
InMemorySearchClient
public InMemorySearchClient()
-
-
Method Details
-
asIdentifier
-
index
public CompletableFuture<Void> index(List<SerializedDocument> documents, Guarantee guarantee, boolean ifNotExists) - Specified by:
indexin interfaceSearchClient
-
search
- Specified by:
searchin interfaceSearchClient
-
fetch
- Specified by:
fetchin interfaceSearchClient
-
delete
- Specified by:
deletein interfaceSearchClient
-
delete
- Specified by:
deletein interfaceSearchClient
-
createAuditTrail
- Specified by:
createAuditTrailin interfaceSearchClient
-
deleteCollection
- Specified by:
deleteCollectionin interfaceSearchClient
-
fetchStatistics
public List<DocumentStats> fetchStatistics(SearchQuery query, List<String> fields, List<String> groupBy) - Specified by:
fetchStatisticsin interfaceSearchClient
-
fetchHistogram
- Specified by:
fetchHistogramin interfaceSearchClient
-
bulkUpdate
- Specified by:
bulkUpdatein interfaceSearchClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSearchClient
-