Class OpenSearchIndicesAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIndicesAsyncClient>
org.opensearch.client.opensearch.indices.OpenSearchIndicesAsyncClientBase<OpenSearchIndicesAsyncClient>
org.opensearch.client.opensearch.indices.OpenSearchIndicesAsyncClient
public class OpenSearchIndicesAsyncClient
extends OpenSearchIndicesAsyncClientBase<OpenSearchIndicesAsyncClient>
Client for the indices namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIndicesAsyncClient(OpenSearchTransport transport) OpenSearchIndicesAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns mapping for one or more fields.getFieldMapping(GetFieldMappingRequest request) Returns mapping for one or more fields.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.opensearch.indices.OpenSearchIndicesAsyncClientBase
addBlock, addBlock, analyze, analyze, analyze, clearCache, clearCache, clearCache, clone, clone, close, close, create, create, createDataStream, createDataStream, dataStreamsStats, dataStreamsStats, dataStreamsStats, delete, delete, deleteAlias, deleteAlias, deleteDataStream, deleteDataStream, deleteIndexTemplate, deleteIndexTemplate, deleteTemplate, deleteTemplate, exists, exists, existsAlias, existsAlias, existsIndexTemplate, existsIndexTemplate, existsTemplate, existsTemplate, flush, flush, flush, forcemerge, forcemerge, forcemerge, get, get, getAlias, getAlias, getAlias, getDataStream, getDataStream, getDataStream, getIndexTemplate, getIndexTemplate, getIndexTemplate, getMapping, getMapping, getMapping, getSettings, getSettings, getSettings, getTemplate, getTemplate, getTemplate, open, open, putAlias, putAlias, putAlias, putIndexTemplate, putIndexTemplate, putMapping, putMapping, putSettings, putSettings, putTemplate, putTemplate, recovery, recovery, recovery, refresh, refresh, refresh, resolveIndex, resolveIndex, rollover, rollover, segments, segments, segments, shardStores, shardStores, shardStores, shrink, shrink, simulateIndexTemplate, simulateIndexTemplate, simulateTemplate, simulateTemplate, split, split, stats, stats, stats, updateAliases, updateAliases, updateAliases, validateQuery, validateQuery, validateQueryMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchIndicesAsyncClient
-
OpenSearchIndicesAsyncClient
public OpenSearchIndicesAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public OpenSearchIndicesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIndicesAsyncClient>
-
getFieldMapping
public CompletableFuture<GetFieldMappingResponse> getFieldMapping(GetFieldMappingRequest request) throws IOException, OpenSearchException Returns mapping for one or more fields.- Throws:
IOExceptionOpenSearchException
-
getFieldMapping
public final CompletableFuture<GetFieldMappingResponse> getFieldMapping(Function<GetFieldMappingRequest.Builder, ObjectBuilder<GetFieldMappingRequest>> fn) throws IOException, OpenSearchExceptionReturns mapping for one or more fields.- Parameters:
fn- a function that initializes a builder to create theGetFieldMappingRequest- Throws:
IOExceptionOpenSearchException
-