Interface ReactiveElasticsearchOperations
- All Superinterfaces:
ReactiveDocumentOperations, ReactiveScriptOperations, ReactiveSearchOperations, ReactiveSqlOperations
- All Known Implementing Classes:
AbstractReactiveElasticsearchTemplate, ReactiveElasticsearchTemplate
public interface ReactiveElasticsearchOperations
extends ReactiveDocumentOperations, ReactiveSearchOperations, ReactiveScriptOperations, ReactiveSqlOperations
Interface that specifies a basic set of Elasticsearch operations executed in a reactive way.
- Since:
- 3.2
- Author:
- Christoph Strobl, Peter-Josef Meisch
-
Field Summary
Fields inherited from interface ReactiveDocumentOperations
FLUX_SAVE_BULK_SIZE -
Method Summary
Modifier and TypeMethodDescriptioncluster()return aReactiveClusterOperationsinstance that uses the same client communication setup as this ElasticsearchOperations instance.Get theElasticsearchConverterused.@Nullable StringgetEntityRouting(Object entity) gets the routing for an entity.getIndexCoordinatesFor(Class<?> clazz) @Nullable ElasticsearchPersistentEntity<?> getPersistentEntityFor(Class<?> clazz) Creates aReactiveIndexOperationsthat is bound to the given classindexOps(IndexCoordinates index) Creates aReactiveIndexOperationsthat is bound to the given indexwithRefreshPolicy(@Nullable RefreshPolicy refreshPolicy) Returns a copy of this instance with the same configuration, but that uses a differentRefreshPolicy.withRouting(RoutingResolver routingResolver) Returns a copy of this instance with the same configuration, but that uses a differentRoutingResolverto obtain routing information.Methods inherited from interface ReactiveDocumentOperations
bulkUpdate, bulkUpdate, delete, delete, delete, delete, delete, delete, exists, exists, get, get, multiGet, multiGet, reindex, save, save, save, save, save, save, save, save, saveAll, saveAll, saveAll, saveAll, submitReindex, update, updateByQueryMethods inherited from interface ReactiveScriptOperations
deleteScript, getScript, putScriptMethods inherited from interface ReactiveSearchOperations
aggregate, aggregate, closePointInTime, count, count, count, idsQuery, matchAllQuery, openPointInTime, openPointInTime, queryBuilderWithIds, search, search, search, search, searchForHits, searchForHits, searchForHits, searchForHits, searchForPage, searchForPage, searchForPage, searchForPage, suggest, suggestMethods inherited from interface ReactiveSqlOperations
search
-
Method Details
-
getElasticsearchConverter
ElasticsearchConverter getElasticsearchConverter()Get theElasticsearchConverterused.- Returns:
- never null
-
getPersistentEntityFor
-
getIndexCoordinatesFor
- Parameters:
clazz-- Returns:
- the IndexCoordinates defined on the entity.
- Since:
- 4.0
-
indexOps
Creates aReactiveIndexOperationsthat is bound to the given index- Parameters:
index- IndexCoordinates specifying the index- Returns:
- ReactiveIndexOperations implementation
- Since:
- 4.1
-
indexOps
Creates aReactiveIndexOperationsthat is bound to the given class- Parameters:
clazz- the entity clazz specifiying the index information- Returns:
- ReactiveIndexOperations implementation
- Since:
- 4.1
-
cluster
ReactiveClusterOperations cluster()return aReactiveClusterOperationsinstance that uses the same client communication setup as this ElasticsearchOperations instance.- Returns:
- ClusterOperations implementation
- Since:
- 4.2
-
getEntityRouting
-
withRouting
Returns a copy of this instance with the same configuration, but that uses a differentRoutingResolverto obtain routing information.- Parameters:
routingResolver- theRoutingResolvervalue, must not be null.- Returns:
- DocumentOperations instance
-
withRefreshPolicy
Returns a copy of this instance with the same configuration, but that uses a differentRefreshPolicy.- Parameters:
refreshPolicy- theRefreshPolicyvalue.- Returns:
ReactiveElasticsearchOperationsinstance.- Since:
- 5.2
-