public class ReactiveIndicesTemplate extends ReactiveChildTemplate<ReactiveElasticsearchIndicesClient> implements ReactiveIndexOperations
ReactiveChildTemplate.ClientCallback<CLIENT,RESULT extends org.reactivestreams.Publisher<?>>client, elasticsearchConverter, exceptionTranslator, requestConverter, responseConverter| Constructor and Description |
|---|
ReactiveIndicesTemplate(ReactiveElasticsearchIndicesClient client,
ElasticsearchConverter elasticsearchConverter,
Class<?> clazz) |
ReactiveIndicesTemplate(ReactiveElasticsearchIndicesClient client,
ElasticsearchConverter elasticsearchConverter,
IndexCoordinates index) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Boolean> |
alias(AliasActions aliasActions)
Executes the given
AliasActions. |
reactor.core.publisher.Mono<Boolean> |
create()
Create an index.
|
reactor.core.publisher.Mono<Boolean> |
create(Map<String,Object> settings)
Create an index with the specified settings.
|
reactor.core.publisher.Mono<Boolean> |
create(Map<String,Object> settings,
Document mapping)
Create an index for given settings and mapping.
|
reactor.core.publisher.Mono<Document> |
createMapping()
Creates the index mapping for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Document> |
createMapping(Class<?> clazz)
Creates the index mapping for the given class
|
reactor.core.publisher.Mono<Settings> |
createSettings()
Creates the index settings for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Settings> |
createSettings(Class<?> clazz)
Creates the index settings from the annotations on the given class
|
reactor.core.publisher.Mono<Boolean> |
createWithMapping()
Create an index with the settings and mapping defined for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Boolean> |
delete()
Delete an index.
|
reactor.core.publisher.Mono<Boolean> |
deleteTemplate(DeleteTemplateRequest deleteTemplateRequest)
Deletes an index template using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Boolean> |
exists()
checks if an index exists
|
reactor.core.publisher.Mono<Boolean> |
existsTemplate(ExistsTemplateRequest existsTemplateRequest)
Checks if an index template exists using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Map<String,Set<AliasData>>> |
getAliases(String... aliasNames)
gets information about aliases
|
reactor.core.publisher.Mono<Map<String,Set<AliasData>>> |
getAliasesForIndex(String... indexNames)
gets information about aliases
|
IndexCoordinates |
getIndexCoordinates()
get the current
IndexCoordinates. |
reactor.core.publisher.Flux<IndexInformation> |
getInformation(IndexCoordinates index)
Gets the
IndexInformation for the indices defined by ReactiveIndexOperations.getIndexCoordinates(). |
reactor.core.publisher.Mono<Document> |
getMapping()
Get mapping for the index targeted defined by this
ReactiveIndexOperations |
reactor.core.publisher.Mono<Settings> |
getSettings(boolean includeDefaults)
get the settings for the index
|
reactor.core.publisher.Mono<TemplateData> |
getTemplate(GetTemplateRequest getTemplateRequest)
gets an index template using the legacy Elasticsearch interface.
|
reactor.core.publisher.Mono<Boolean> |
putMapping(reactor.core.publisher.Mono<Document> mapping)
writes a mapping to the index
|
reactor.core.publisher.Mono<Boolean> |
putTemplate(PutTemplateRequest putTemplateRequest)
Creates an index template using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Void> |
refresh()
Refresh the index(es) this IndexOperations is bound to
|
executeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteTemplate, existsTemplate, getInformation, getSettings, getTemplate, putMapping, putMappingpublic ReactiveIndicesTemplate(ReactiveElasticsearchIndicesClient client, ElasticsearchConverter elasticsearchConverter, IndexCoordinates index)
public ReactiveIndicesTemplate(ReactiveElasticsearchIndicesClient client, ElasticsearchConverter elasticsearchConverter, Class<?> clazz)
public reactor.core.publisher.Mono<Boolean> create()
ReactiveIndexOperationscreate in interface ReactiveIndexOperationsMono signalling successful operation completion or an error if eg.
the index already exist.public reactor.core.publisher.Mono<Boolean> create(Map<String,Object> settings)
ReactiveIndexOperationscreate in interface ReactiveIndexOperationssettings - index settingsMono signalling successful operation completion or an error if eg.
the index already exist.public reactor.core.publisher.Mono<Boolean> create(Map<String,Object> settings, Document mapping)
ReactiveIndexOperationscreate in interface ReactiveIndexOperationssettings - the index settingsmapping - the index mappingMono signalling successful operation completion or an error if eg.
the index already exist.public reactor.core.publisher.Mono<Boolean> createWithMapping()
ReactiveIndexOperationscreateWithMapping in interface ReactiveIndexOperationsMono signalling successful operation completion or an error if eg.
the index already exist.public reactor.core.publisher.Mono<Boolean> delete()
ReactiveIndexOperationsdelete in interface ReactiveIndexOperationsMono signalling operation completion or an error. If the index does
not exist, a value of false is emitted.public reactor.core.publisher.Mono<Boolean> exists()
ReactiveIndexOperationsexists in interface ReactiveIndexOperationsMono with the result of exist checkpublic reactor.core.publisher.Mono<Void> refresh()
ReactiveIndexOperationsrefresh in interface ReactiveIndexOperationsMono signalling operation completion.public reactor.core.publisher.Mono<Document> createMapping()
ReactiveIndexOperationscreateMapping in interface ReactiveIndexOperationspublic reactor.core.publisher.Mono<Document> createMapping(Class<?> clazz)
ReactiveIndexOperationscreateMapping in interface ReactiveIndexOperationsclazz - the clazz to create a mapping forMono with the mapping documentpublic reactor.core.publisher.Mono<Boolean> putMapping(reactor.core.publisher.Mono<Document> mapping)
ReactiveIndexOperationsputMapping in interface ReactiveIndexOperationsmapping - the Document with the mapping definitionspublic reactor.core.publisher.Mono<Document> getMapping()
ReactiveIndexOperationsReactiveIndexOperationsgetMapping in interface ReactiveIndexOperationspublic reactor.core.publisher.Mono<Settings> createSettings()
ReactiveIndexOperationscreateSettings in interface ReactiveIndexOperationspublic reactor.core.publisher.Mono<Settings> createSettings(Class<?> clazz)
ReactiveIndexOperationscreateSettings in interface ReactiveIndexOperationsclazz - the class to create the index settings frompublic reactor.core.publisher.Mono<Settings> getSettings(boolean includeDefaults)
ReactiveIndexOperationsgetSettings in interface ReactiveIndexOperationsincludeDefaults - whether or not to include all the default settingsMono with a Document containing the index settingspublic reactor.core.publisher.Mono<Boolean> alias(AliasActions aliasActions)
ReactiveIndexOperationsAliasActions.alias in interface ReactiveIndexOperationsaliasActions - the actions to executepublic reactor.core.publisher.Mono<Map<String,Set<AliasData>>> getAliases(String... aliasNames)
ReactiveIndexOperationsgetAliases in interface ReactiveIndexOperationsaliasNames - alias names, must not be nullMono of Map from index names to AliasData for that indexpublic reactor.core.publisher.Mono<Map<String,Set<AliasData>>> getAliasesForIndex(String... indexNames)
ReactiveIndexOperationsgetAliasesForIndex in interface ReactiveIndexOperationsindexNames - alias names, must not be nullMono of Map from index names to AliasData for that indexpublic reactor.core.publisher.Mono<Boolean> putTemplate(PutTemplateRequest putTemplateRequest)
ReactiveIndexOperationsputTemplate in interface ReactiveIndexOperationsputTemplateRequest - template request parameterspublic reactor.core.publisher.Mono<TemplateData> getTemplate(GetTemplateRequest getTemplateRequest)
ReactiveIndexOperationsgetTemplate in interface ReactiveIndexOperationsgetTemplateRequest - the request parameterspublic reactor.core.publisher.Mono<Boolean> existsTemplate(ExistsTemplateRequest existsTemplateRequest)
ReactiveIndexOperationsexistsTemplate in interface ReactiveIndexOperationsexistsTemplateRequest - template request parameterspublic reactor.core.publisher.Mono<Boolean> deleteTemplate(DeleteTemplateRequest deleteTemplateRequest)
ReactiveIndexOperationsdeleteTemplate in interface ReactiveIndexOperationsdeleteTemplateRequest - template request parameterspublic reactor.core.publisher.Flux<IndexInformation> getInformation(IndexCoordinates index)
ReactiveIndexOperationsIndexInformation for the indices defined by ReactiveIndexOperations.getIndexCoordinates().getInformation in interface ReactiveIndexOperationsIndexInformationpublic IndexCoordinates getIndexCoordinates()
ReactiveIndexOperationsIndexCoordinates. These may change over time when the entity class has a SpEL constructed
index name. When this IndexOperations is not bound to a class, the bound IndexCoordinates are returned.getIndexCoordinates in interface ReactiveIndexOperationsCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.