Package org.opensearch.data.client.osc
Class IndicesTemplate
java.lang.Object
org.opensearch.data.client.osc.ChildTemplate<org.opensearch.client.transport.OpenSearchTransport,org.opensearch.client.opensearch.indices.OpenSearchIndicesClient>
org.opensearch.data.client.osc.IndicesTemplate
- All Implemented Interfaces:
org.springframework.data.elasticsearch.core.IndexOperations
public class IndicesTemplate
extends ChildTemplate<org.opensearch.client.transport.OpenSearchTransport,org.opensearch.client.opensearch.indices.OpenSearchIndicesClient>
implements org.springframework.data.elasticsearch.core.IndexOperations
Implementation of the
IndexOperations interface using en OpenSearchIndicesClient.- Since:
- 4.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.data.client.osc.ChildTemplate
ChildTemplate.ClientCallback<CLIENT,RESULT> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class<?>protected final org.springframework.data.elasticsearch.core.mapping.IndexCoordinatesprotected final org.springframework.data.elasticsearch.core.convert.ElasticsearchConverterFields inherited from class org.opensearch.data.client.osc.ChildTemplate
client, exceptionTranslator, requestConverter, responseConverter -
Constructor Summary
ConstructorsConstructorDescriptionIndicesTemplate(org.opensearch.client.opensearch.indices.OpenSearchIndicesClient client, ClusterTemplate clusterTemplate, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter, Class<?> boundClass) IndicesTemplate(org.opensearch.client.opensearch.indices.OpenSearchIndicesClient client, ClusterTemplate clusterTemplate, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter, org.springframework.data.elasticsearch.core.mapping.IndexCoordinates boundIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleanalias(org.springframework.data.elasticsearch.core.index.AliasActions aliasActions) protected Class<?>booleancreate()booleanbooleancreate(Map<String, Object> settings, org.springframework.data.elasticsearch.core.document.Document mapping) org.springframework.data.elasticsearch.core.document.Documentorg.springframework.data.elasticsearch.core.document.DocumentcreateMapping(Class<?> clazz) org.springframework.data.elasticsearch.core.index.Settingsorg.springframework.data.elasticsearch.core.index.SettingscreateSettings(Class<?> clazz) booleanbooleandelete()booleandeleteComponentTemplate(org.springframework.data.elasticsearch.core.index.DeleteComponentTemplateRequest deleteComponentTemplateRequest) booleandeleteIndexTemplate(org.springframework.data.elasticsearch.core.index.DeleteIndexTemplateRequest deleteIndexTemplateRequest) booleandeleteTemplate(org.springframework.data.elasticsearch.core.index.DeleteTemplateRequest deleteTemplateRequest) protected booleandoCreate(org.springframework.data.elasticsearch.core.mapping.IndexCoordinates indexCoordinates, Map<String, Object> settings, org.springframework.data.elasticsearch.core.document.Document mapping) booleanexists()booleanexistsComponentTemplate(org.springframework.data.elasticsearch.core.index.ExistsComponentTemplateRequest existsComponentTemplateRequest) booleanexistsIndexTemplate(org.springframework.data.elasticsearch.core.index.ExistsIndexTemplateRequest existsIndexTemplateRequest) booleanexistsTemplate(org.springframework.data.elasticsearch.core.index.ExistsTemplateRequest existsTemplateRequest) getAliases(String... aliasNames) getAliasesForIndex(String... indexNames) List<org.springframework.data.elasticsearch.core.index.TemplateResponse>getComponentTemplate(org.springframework.data.elasticsearch.core.index.GetComponentTemplateRequest getComponentTemplateRequest) org.springframework.data.elasticsearch.core.mapping.IndexCoordinatesorg.springframework.data.elasticsearch.core.mapping.IndexCoordinatesgetIndexCoordinatesFor(Class<?> clazz) List<org.springframework.data.elasticsearch.core.index.TemplateResponse>getIndexTemplate(org.springframework.data.elasticsearch.core.index.GetIndexTemplateRequest getIndexTemplateRequest) List<org.springframework.data.elasticsearch.core.IndexInformation>getInformation(org.springframework.data.elasticsearch.core.mapping.IndexCoordinates indexCoordinates) org.springframework.data.elasticsearch.core.index.Settingsorg.springframework.data.elasticsearch.core.index.SettingsgetSettings(boolean includeDefaults) org.springframework.data.elasticsearch.core.index.TemplateDatagetTemplate(org.springframework.data.elasticsearch.core.index.GetTemplateRequest getTemplateRequest) booleanputComponentTemplate(org.springframework.data.elasticsearch.core.index.PutComponentTemplateRequest putComponentTemplateRequest) booleanputIndexTemplate(org.springframework.data.elasticsearch.core.index.PutIndexTemplateRequest putIndexTemplateRequest) booleanputMapping(org.springframework.data.elasticsearch.core.document.Document mapping) booleanputTemplate(org.springframework.data.elasticsearch.core.index.PutTemplateRequest putTemplateRequest) voidrefresh()Methods inherited from class org.opensearch.data.client.osc.ChildTemplate
executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.elasticsearch.core.IndexOperations
deleteIndexTemplate, deleteTemplate, existsIndexTemplate, existsTemplate, getIndexTemplate, getInformation, getTemplate, putMapping, putMapping
-
Field Details
-
elasticsearchConverter
protected final org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter -
boundClass
-
boundIndex
@Nullable protected final org.springframework.data.elasticsearch.core.mapping.IndexCoordinates boundIndex
-
-
Constructor Details
-
IndicesTemplate
public IndicesTemplate(org.opensearch.client.opensearch.indices.OpenSearchIndicesClient client, ClusterTemplate clusterTemplate, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter, Class<?> boundClass) -
IndicesTemplate
public IndicesTemplate(org.opensearch.client.opensearch.indices.OpenSearchIndicesClient client, ClusterTemplate clusterTemplate, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter, org.springframework.data.elasticsearch.core.mapping.IndexCoordinates boundIndex)
-
-
Method Details
-
checkForBoundClass
-
create
public boolean create()- Specified by:
createin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
create
- Specified by:
createin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
create
public boolean create(Map<String, Object> settings, org.springframework.data.elasticsearch.core.document.Document mapping) - Specified by:
createin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
createWithMapping
public boolean createWithMapping()- Specified by:
createWithMappingin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
doCreate
-
delete
public boolean delete()- Specified by:
deletein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
refresh
public void refresh()- Specified by:
refreshin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
createMapping
public org.springframework.data.elasticsearch.core.document.Document createMapping()- Specified by:
createMappingin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
createMapping
- Specified by:
createMappingin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
putMapping
public boolean putMapping(org.springframework.data.elasticsearch.core.document.Document mapping) - Specified by:
putMappingin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getMapping
- Specified by:
getMappingin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
createSettings
public org.springframework.data.elasticsearch.core.index.Settings createSettings()- Specified by:
createSettingsin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
createSettings
- Specified by:
createSettingsin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getSettings
public org.springframework.data.elasticsearch.core.index.Settings getSettings()- Specified by:
getSettingsin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getSettings
public org.springframework.data.elasticsearch.core.index.Settings getSettings(boolean includeDefaults) - Specified by:
getSettingsin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
alias
public boolean alias(org.springframework.data.elasticsearch.core.index.AliasActions aliasActions) - Specified by:
aliasin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getAliases
public Map<String,Set<org.springframework.data.elasticsearch.core.index.AliasData>> getAliases(String... aliasNames) - Specified by:
getAliasesin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getAliasesForIndex
public Map<String,Set<org.springframework.data.elasticsearch.core.index.AliasData>> getAliasesForIndex(String... indexNames) - Specified by:
getAliasesForIndexin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
putTemplate
public boolean putTemplate(org.springframework.data.elasticsearch.core.index.PutTemplateRequest putTemplateRequest) - Specified by:
putTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getTemplate
public org.springframework.data.elasticsearch.core.index.TemplateData getTemplate(org.springframework.data.elasticsearch.core.index.GetTemplateRequest getTemplateRequest) - Specified by:
getTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
existsTemplate
public boolean existsTemplate(org.springframework.data.elasticsearch.core.index.ExistsTemplateRequest existsTemplateRequest) - Specified by:
existsTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
deleteTemplate
public boolean deleteTemplate(org.springframework.data.elasticsearch.core.index.DeleteTemplateRequest deleteTemplateRequest) - Specified by:
deleteTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
putIndexTemplate
public boolean putIndexTemplate(org.springframework.data.elasticsearch.core.index.PutIndexTemplateRequest putIndexTemplateRequest) - Specified by:
putIndexTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
existsIndexTemplate
public boolean existsIndexTemplate(org.springframework.data.elasticsearch.core.index.ExistsIndexTemplateRequest existsIndexTemplateRequest) - Specified by:
existsIndexTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getIndexTemplate
public List<org.springframework.data.elasticsearch.core.index.TemplateResponse> getIndexTemplate(org.springframework.data.elasticsearch.core.index.GetIndexTemplateRequest getIndexTemplateRequest) - Specified by:
getIndexTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
deleteIndexTemplate
public boolean deleteIndexTemplate(org.springframework.data.elasticsearch.core.index.DeleteIndexTemplateRequest deleteIndexTemplateRequest) - Specified by:
deleteIndexTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
putComponentTemplate
public boolean putComponentTemplate(org.springframework.data.elasticsearch.core.index.PutComponentTemplateRequest putComponentTemplateRequest) - Specified by:
putComponentTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
existsComponentTemplate
public boolean existsComponentTemplate(org.springframework.data.elasticsearch.core.index.ExistsComponentTemplateRequest existsComponentTemplateRequest) - Specified by:
existsComponentTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getComponentTemplate
public List<org.springframework.data.elasticsearch.core.index.TemplateResponse> getComponentTemplate(org.springframework.data.elasticsearch.core.index.GetComponentTemplateRequest getComponentTemplateRequest) - Specified by:
getComponentTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
deleteComponentTemplate
public boolean deleteComponentTemplate(org.springframework.data.elasticsearch.core.index.DeleteComponentTemplateRequest deleteComponentTemplateRequest) - Specified by:
deleteComponentTemplatein interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getInformation
public List<org.springframework.data.elasticsearch.core.IndexInformation> getInformation(org.springframework.data.elasticsearch.core.mapping.IndexCoordinates indexCoordinates) - Specified by:
getInformationin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getIndexCoordinates
public org.springframework.data.elasticsearch.core.mapping.IndexCoordinates getIndexCoordinates()- Specified by:
getIndexCoordinatesin interfaceorg.springframework.data.elasticsearch.core.IndexOperations
-
getIndexCoordinatesFor
public org.springframework.data.elasticsearch.core.mapping.IndexCoordinates getIndexCoordinatesFor(Class<?> clazz)
-