Class WebSocketSearchClient
java.lang.Object
io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
io.fluxcapacitor.javaclient.persisting.search.client.WebSocketSearchClient
- All Implemented Interfaces:
SearchClient,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
AbstractWebsocketClient.WebSocketRequest -
Field Summary
Fields inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
defaultObjectMapper, defaultWebSocketContainer -
Constructor Summary
ConstructorsConstructorDescriptionWebSocketSearchClient(String endPointUrl, WebSocketClient.ClientConfig clientConfig) WebSocketSearchClient(URI endpointUri, WebSocketClient.ClientConfig clientConfig) WebSocketSearchClient(URI endpointUri, WebSocketClient.ClientConfig clientConfig, boolean sendMetrics) -
Method Summary
Modifier and TypeMethodDescriptionbulkUpdate(Collection<DocumentUpdate> batch, Guarantee guarantee) createAuditTrail(CreateAuditTrail request) delete(SearchQuery query, Guarantee guarantee) deleteCollection(String collection, Guarantee guarantee) fetch(GetDocument request) 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 io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
close, close, handleResult, metricsMetadata, onClose, onError, onMessage, retryOutstandingRequests, send, sendAndWait, sendCommand, tryPublishMetricsMethods 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
close, deleteCollection
-
Constructor Details
-
WebSocketSearchClient
-
WebSocketSearchClient
-
WebSocketSearchClient
public WebSocketSearchClient(URI endpointUri, WebSocketClient.ClientConfig clientConfig, boolean sendMetrics)
-
-
Method Details
-
index
public CompletableFuture<Void> index(List<SerializedDocument> documents, Guarantee guarantee, boolean ifNotExists) - Specified by:
indexin interfaceSearchClient
-
bulkUpdate
- Specified by:
bulkUpdatein interfaceSearchClient
-
search
- Specified by:
searchin interfaceSearchClient
-
fetch
- Specified by:
fetchin interfaceSearchClient
-
fetchStatistics
public List<DocumentStats> fetchStatistics(SearchQuery query, List<String> fields, List<String> groupBy) - Specified by:
fetchStatisticsin interfaceSearchClient
-
fetchHistogram
- Specified by:
fetchHistogramin interfaceSearchClient
-
delete
- Specified by:
deletein interfaceSearchClient
-
delete
- Specified by:
deletein interfaceSearchClient
-
deleteCollection
- Specified by:
deleteCollectionin interfaceSearchClient
-
createAuditTrail
- Specified by:
createAuditTrailin interfaceSearchClient
-