Class OpenSearchLtrAsyncClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchLtrAsyncClient>
org.opensearch.client.opensearch.ltr.OpenSearchLtrAsyncClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchLtrAsyncClient
extends ApiClient<OpenSearchTransport,OpenSearchLtrAsyncClient>
Client for the ltr namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchLtrAsyncClient(OpenSearchTransport transport) OpenSearchLtrAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionaddFeaturesToSet(Function<AddFeaturesToSetRequest.Builder, ObjectBuilder<AddFeaturesToSetRequest>> fn) Add features to an existing feature set in the default feature store.addFeaturesToSet(AddFeaturesToSetRequest request) Add features to an existing feature set in the default feature store.addFeaturesToSetByQuery(Function<AddFeaturesToSetByQueryRequest.Builder, ObjectBuilder<AddFeaturesToSetByQueryRequest>> fn) Add features to an existing feature set in the default feature store.Add features to an existing feature set in the default feature store.Retrieves cache statistics for all feature stores.Retrieves cache statistics for all feature stores.cacheStats(CacheStatsRequest request) Retrieves cache statistics for all feature stores.Clears the store caches.Clears the store caches.clearCache(ClearCacheRequest request) Clears the store caches.Creates the default feature store.createDefaultStore(Function<CreateDefaultStoreRequest.Builder, ObjectBuilder<CreateDefaultStoreRequest>> fn) Creates the default feature store.Creates the default feature store.Create or update a feature in the default feature store.createFeature(CreateFeatureRequest request) Create or update a feature in the default feature store.createFeatureset(Function<CreateFeaturesetRequest.Builder, ObjectBuilder<CreateFeaturesetRequest>> fn) Create or update a feature set in the default feature store.createFeatureset(CreateFeaturesetRequest request) Create or update a feature set in the default feature store.Create or update a model in the default feature store.createModel(CreateModelRequest request) Create or update a model in the default feature store.createModelFromSet(Function<CreateModelFromSetRequest.Builder, ObjectBuilder<CreateModelFromSetRequest>> fn) Create a model from an existing feature set in the default feature store.Create a model from an existing feature set in the default feature store.Creates a new feature store with the specified name.createStore(CreateStoreRequest request) Creates a new feature store with the specified name.Deletes the default feature store.deleteDefaultStore(Function<DeleteDefaultStoreRequest.Builder, ObjectBuilder<DeleteDefaultStoreRequest>> fn) Deletes the default feature store.Deletes the default feature store.Delete a feature from the default feature store.deleteFeature(DeleteFeatureRequest request) Delete a feature from the default feature store.deleteFeatureset(Function<DeleteFeaturesetRequest.Builder, ObjectBuilder<DeleteFeaturesetRequest>> fn) Delete a feature set from the default feature store.deleteFeatureset(DeleteFeaturesetRequest request) Delete a feature set from the default feature store.Delete a model from the default feature store.deleteModel(DeleteModelRequest request) Delete a model from the default feature store.Deletes a feature store with the specified name.deleteStore(DeleteStoreRequest request) Deletes a feature store with the specified name.Get a feature from the default feature store.getFeature(GetFeatureRequest request) Get a feature from the default feature store.Get a feature set from the default feature store.getFeatureset(GetFeaturesetRequest request) Get a feature set from the default feature store.Get a model from the default feature store.getModel(GetModelRequest request) Get a model from the default feature store.Checks if a store exists.getStore(GetStoreRequest request) Checks if a store exists.Lists all available feature stores.Lists all available feature stores.listStores(ListStoresRequest request) Lists all available feature stores.Search for features in a feature store.Search for features in a feature store.searchFeatures(SearchFeaturesRequest request) Search for features in a feature store.Search for feature sets in a feature store.searchFeaturesets(Function<SearchFeaturesetsRequest.Builder, ObjectBuilder<SearchFeaturesetsRequest>> fn) Search for feature sets in a feature store.Search for feature sets in a feature store.Search for models in a feature store.Search for models in a feature store.searchModels(SearchModelsRequest request) Search for models in a feature store.stats()Provides information about the current status of the LTR plugin.Provides information about the current status of the LTR plugin.stats(LtrStatsRequest request) Provides information about the current status of the LTR plugin.Update a feature in the default feature store.updateFeature(UpdateFeatureRequest request) Update a feature in the default feature store.updateFeatureset(Function<UpdateFeaturesetRequest.Builder, ObjectBuilder<UpdateFeaturesetRequest>> fn) Update a feature set in the default feature store.updateFeatureset(UpdateFeaturesetRequest request) Update a feature set in the default feature store.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchLtrAsyncClient
-
OpenSearchLtrAsyncClient
public OpenSearchLtrAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchLtrAsyncClient>
-
addFeaturesToSet
public CompletableFuture<AddFeaturesToSetResponse> addFeaturesToSet(AddFeaturesToSetRequest request) throws IOException, OpenSearchException Add features to an existing feature set in the default feature store.- Throws:
IOExceptionOpenSearchException
-
addFeaturesToSet
public final CompletableFuture<AddFeaturesToSetResponse> addFeaturesToSet(Function<AddFeaturesToSetRequest.Builder, ObjectBuilder<AddFeaturesToSetRequest>> fn) throws IOException, OpenSearchExceptionAdd features to an existing feature set in the default feature store.- Parameters:
fn- a function that initializes a builder to create theAddFeaturesToSetRequest- Throws:
IOExceptionOpenSearchException
-
addFeaturesToSetByQuery
public CompletableFuture<AddFeaturesToSetByQueryResponse> addFeaturesToSetByQuery(AddFeaturesToSetByQueryRequest request) throws IOException, OpenSearchException Add features to an existing feature set in the default feature store.- Throws:
IOExceptionOpenSearchException
-
addFeaturesToSetByQuery
public final CompletableFuture<AddFeaturesToSetByQueryResponse> addFeaturesToSetByQuery(Function<AddFeaturesToSetByQueryRequest.Builder, ObjectBuilder<AddFeaturesToSetByQueryRequest>> fn) throws IOException, OpenSearchExceptionAdd features to an existing feature set in the default feature store.- Parameters:
fn- a function that initializes a builder to create theAddFeaturesToSetByQueryRequest- Throws:
IOExceptionOpenSearchException
-
cacheStats
public CompletableFuture<CacheStatsResponse> cacheStats(CacheStatsRequest request) throws IOException, OpenSearchException Retrieves cache statistics for all feature stores.- Throws:
IOExceptionOpenSearchException
-
cacheStats
public final CompletableFuture<CacheStatsResponse> cacheStats(Function<CacheStatsRequest.Builder, ObjectBuilder<CacheStatsRequest>> fn) throws IOException, OpenSearchExceptionRetrieves cache statistics for all feature stores.- Parameters:
fn- a function that initializes a builder to create theCacheStatsRequest- Throws:
IOExceptionOpenSearchException
-
cacheStats
public final CompletableFuture<CacheStatsResponse> cacheStats() throws IOException, OpenSearchExceptionRetrieves cache statistics for all feature stores.- Throws:
IOExceptionOpenSearchException
-
clearCache
public CompletableFuture<ClearCacheResponse> clearCache(ClearCacheRequest request) throws IOException, OpenSearchException Clears the store caches.- Throws:
IOExceptionOpenSearchException
-
clearCache
public final CompletableFuture<ClearCacheResponse> clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) throws IOException, OpenSearchExceptionClears the store caches.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- Throws:
IOExceptionOpenSearchException
-
clearCache
public final CompletableFuture<ClearCacheResponse> clearCache() throws IOException, OpenSearchExceptionClears the store caches.- Throws:
IOExceptionOpenSearchException
-
createDefaultStore
public CompletableFuture<CreateDefaultStoreResponse> createDefaultStore(CreateDefaultStoreRequest request) throws IOException, OpenSearchException Creates the default feature store.- Throws:
IOExceptionOpenSearchException
-
createDefaultStore
public final CompletableFuture<CreateDefaultStoreResponse> createDefaultStore(Function<CreateDefaultStoreRequest.Builder, ObjectBuilder<CreateDefaultStoreRequest>> fn) throws IOException, OpenSearchExceptionCreates the default feature store.- Parameters:
fn- a function that initializes a builder to create theCreateDefaultStoreRequest- Throws:
IOExceptionOpenSearchException
-
createDefaultStore
public final CompletableFuture<CreateDefaultStoreResponse> createDefaultStore() throws IOException, OpenSearchExceptionCreates the default feature store.- Throws:
IOExceptionOpenSearchException
-
createFeature
public CompletableFuture<CreateFeatureResponse> createFeature(CreateFeatureRequest request) throws IOException, OpenSearchException Create or update a feature in the default feature store.- Throws:
IOExceptionOpenSearchException
-
createFeature
public final CompletableFuture<CreateFeatureResponse> createFeature(Function<CreateFeatureRequest.Builder, ObjectBuilder<CreateFeatureRequest>> fn) throws IOException, OpenSearchExceptionCreate or update a feature in the default feature store.- Parameters:
fn- a function that initializes a builder to create theCreateFeatureRequest- Throws:
IOExceptionOpenSearchException
-
createFeatureset
public CompletableFuture<CreateFeaturesetResponse> createFeatureset(CreateFeaturesetRequest request) throws IOException, OpenSearchException Create or update a feature set in the default feature store.- Throws:
IOExceptionOpenSearchException
-
createFeatureset
public final CompletableFuture<CreateFeaturesetResponse> createFeatureset(Function<CreateFeaturesetRequest.Builder, ObjectBuilder<CreateFeaturesetRequest>> fn) throws IOException, OpenSearchExceptionCreate or update a feature set in the default feature store.- Parameters:
fn- a function that initializes a builder to create theCreateFeaturesetRequest- Throws:
IOExceptionOpenSearchException
-
createModel
public CompletableFuture<CreateModelResponse> createModel(CreateModelRequest request) throws IOException, OpenSearchException Create or update a model in the default feature store.- Throws:
IOExceptionOpenSearchException
-
createModel
public final CompletableFuture<CreateModelResponse> createModel(Function<CreateModelRequest.Builder, ObjectBuilder<CreateModelRequest>> fn) throws IOException, OpenSearchExceptionCreate or update a model in the default feature store.- Parameters:
fn- a function that initializes a builder to create theCreateModelRequest- Throws:
IOExceptionOpenSearchException
-
createModelFromSet
public CompletableFuture<CreateModelFromSetResponse> createModelFromSet(CreateModelFromSetRequest request) throws IOException, OpenSearchException Create a model from an existing feature set in the default feature store.- Throws:
IOExceptionOpenSearchException
-
createModelFromSet
public final CompletableFuture<CreateModelFromSetResponse> createModelFromSet(Function<CreateModelFromSetRequest.Builder, ObjectBuilder<CreateModelFromSetRequest>> fn) throws IOException, OpenSearchExceptionCreate a model from an existing feature set in the default feature store.- Parameters:
fn- a function that initializes a builder to create theCreateModelFromSetRequest- Throws:
IOExceptionOpenSearchException
-
createStore
public CompletableFuture<CreateStoreResponse> createStore(CreateStoreRequest request) throws IOException, OpenSearchException Creates a new feature store with the specified name.- Throws:
IOExceptionOpenSearchException
-
createStore
public final CompletableFuture<CreateStoreResponse> createStore(Function<CreateStoreRequest.Builder, ObjectBuilder<CreateStoreRequest>> fn) throws IOException, OpenSearchExceptionCreates a new feature store with the specified name.- Parameters:
fn- a function that initializes a builder to create theCreateStoreRequest- Throws:
IOExceptionOpenSearchException
-
deleteDefaultStore
public CompletableFuture<DeleteDefaultStoreResponse> deleteDefaultStore(DeleteDefaultStoreRequest request) throws IOException, OpenSearchException Deletes the default feature store.- Throws:
IOExceptionOpenSearchException
-
deleteDefaultStore
public final CompletableFuture<DeleteDefaultStoreResponse> deleteDefaultStore(Function<DeleteDefaultStoreRequest.Builder, ObjectBuilder<DeleteDefaultStoreRequest>> fn) throws IOException, OpenSearchExceptionDeletes the default feature store.- Parameters:
fn- a function that initializes a builder to create theDeleteDefaultStoreRequest- Throws:
IOExceptionOpenSearchException
-
deleteDefaultStore
public final CompletableFuture<DeleteDefaultStoreResponse> deleteDefaultStore() throws IOException, OpenSearchExceptionDeletes the default feature store.- Throws:
IOExceptionOpenSearchException
-
deleteFeature
public CompletableFuture<DeleteFeatureResponse> deleteFeature(DeleteFeatureRequest request) throws IOException, OpenSearchException Delete a feature from the default feature store.- Throws:
IOExceptionOpenSearchException
-
deleteFeature
public final CompletableFuture<DeleteFeatureResponse> deleteFeature(Function<DeleteFeatureRequest.Builder, ObjectBuilder<DeleteFeatureRequest>> fn) throws IOException, OpenSearchExceptionDelete a feature from the default feature store.- Parameters:
fn- a function that initializes a builder to create theDeleteFeatureRequest- Throws:
IOExceptionOpenSearchException
-
deleteFeatureset
public CompletableFuture<DeleteFeaturesetResponse> deleteFeatureset(DeleteFeaturesetRequest request) throws IOException, OpenSearchException Delete a feature set from the default feature store.- Throws:
IOExceptionOpenSearchException
-
deleteFeatureset
public final CompletableFuture<DeleteFeaturesetResponse> deleteFeatureset(Function<DeleteFeaturesetRequest.Builder, ObjectBuilder<DeleteFeaturesetRequest>> fn) throws IOException, OpenSearchExceptionDelete a feature set from the default feature store.- Parameters:
fn- a function that initializes a builder to create theDeleteFeaturesetRequest- Throws:
IOExceptionOpenSearchException
-
deleteModel
public CompletableFuture<DeleteModelResponse> deleteModel(DeleteModelRequest request) throws IOException, OpenSearchException Delete a model from the default feature store.- Throws:
IOExceptionOpenSearchException
-
deleteModel
public final CompletableFuture<DeleteModelResponse> deleteModel(Function<DeleteModelRequest.Builder, ObjectBuilder<DeleteModelRequest>> fn) throws IOException, OpenSearchExceptionDelete a model from the default feature store.- Parameters:
fn- a function that initializes a builder to create theDeleteModelRequest- Throws:
IOExceptionOpenSearchException
-
deleteStore
public CompletableFuture<DeleteStoreResponse> deleteStore(DeleteStoreRequest request) throws IOException, OpenSearchException Deletes a feature store with the specified name.- Throws:
IOExceptionOpenSearchException
-
deleteStore
public final CompletableFuture<DeleteStoreResponse> deleteStore(Function<DeleteStoreRequest.Builder, ObjectBuilder<DeleteStoreRequest>> fn) throws IOException, OpenSearchExceptionDeletes a feature store with the specified name.- Parameters:
fn- a function that initializes a builder to create theDeleteStoreRequest- Throws:
IOExceptionOpenSearchException
-
getFeature
public CompletableFuture<GetFeatureResponse> getFeature(GetFeatureRequest request) throws IOException, OpenSearchException Get a feature from the default feature store.- Throws:
IOExceptionOpenSearchException
-
getFeature
public final CompletableFuture<GetFeatureResponse> getFeature(Function<GetFeatureRequest.Builder, ObjectBuilder<GetFeatureRequest>> fn) throws IOException, OpenSearchExceptionGet a feature from the default feature store.- Parameters:
fn- a function that initializes a builder to create theGetFeatureRequest- Throws:
IOExceptionOpenSearchException
-
getFeatureset
public CompletableFuture<GetFeaturesetResponse> getFeatureset(GetFeaturesetRequest request) throws IOException, OpenSearchException Get a feature set from the default feature store.- Throws:
IOExceptionOpenSearchException
-
getFeatureset
public final CompletableFuture<GetFeaturesetResponse> getFeatureset(Function<GetFeaturesetRequest.Builder, ObjectBuilder<GetFeaturesetRequest>> fn) throws IOException, OpenSearchExceptionGet a feature set from the default feature store.- Parameters:
fn- a function that initializes a builder to create theGetFeaturesetRequest- Throws:
IOExceptionOpenSearchException
-
getModel
public CompletableFuture<GetModelResponse> getModel(GetModelRequest request) throws IOException, OpenSearchException Get a model from the default feature store.- Throws:
IOExceptionOpenSearchException
-
getModel
public final CompletableFuture<GetModelResponse> getModel(Function<GetModelRequest.Builder, ObjectBuilder<GetModelRequest>> fn) throws IOException, OpenSearchExceptionGet a model from the default feature store.- Parameters:
fn- a function that initializes a builder to create theGetModelRequest- Throws:
IOExceptionOpenSearchException
-
getStore
public CompletableFuture<GetStoreResponse> getStore(GetStoreRequest request) throws IOException, OpenSearchException Checks if a store exists.- Throws:
IOExceptionOpenSearchException
-
getStore
public final CompletableFuture<GetStoreResponse> getStore(Function<GetStoreRequest.Builder, ObjectBuilder<GetStoreRequest>> fn) throws IOException, OpenSearchExceptionChecks if a store exists.- Parameters:
fn- a function that initializes a builder to create theGetStoreRequest- Throws:
IOExceptionOpenSearchException
-
listStores
public CompletableFuture<ListStoresResponse> listStores(ListStoresRequest request) throws IOException, OpenSearchException Lists all available feature stores.- Throws:
IOExceptionOpenSearchException
-
listStores
public final CompletableFuture<ListStoresResponse> listStores(Function<ListStoresRequest.Builder, ObjectBuilder<ListStoresRequest>> fn) throws IOException, OpenSearchExceptionLists all available feature stores.- Parameters:
fn- a function that initializes a builder to create theListStoresRequest- Throws:
IOExceptionOpenSearchException
-
listStores
public final CompletableFuture<ListStoresResponse> listStores() throws IOException, OpenSearchExceptionLists all available feature stores.- Throws:
IOExceptionOpenSearchException
-
searchFeatures
public CompletableFuture<SearchFeaturesResponse> searchFeatures(SearchFeaturesRequest request) throws IOException, OpenSearchException Search for features in a feature store.- Throws:
IOExceptionOpenSearchException
-
searchFeatures
public final CompletableFuture<SearchFeaturesResponse> searchFeatures(Function<SearchFeaturesRequest.Builder, ObjectBuilder<SearchFeaturesRequest>> fn) throws IOException, OpenSearchExceptionSearch for features in a feature store.- Parameters:
fn- a function that initializes a builder to create theSearchFeaturesRequest- Throws:
IOExceptionOpenSearchException
-
searchFeatures
public final CompletableFuture<SearchFeaturesResponse> searchFeatures() throws IOException, OpenSearchExceptionSearch for features in a feature store.- Throws:
IOExceptionOpenSearchException
-
searchFeaturesets
public CompletableFuture<SearchFeaturesetsResponse> searchFeaturesets(SearchFeaturesetsRequest request) throws IOException, OpenSearchException Search for feature sets in a feature store.- Throws:
IOExceptionOpenSearchException
-
searchFeaturesets
public final CompletableFuture<SearchFeaturesetsResponse> searchFeaturesets(Function<SearchFeaturesetsRequest.Builder, ObjectBuilder<SearchFeaturesetsRequest>> fn) throws IOException, OpenSearchExceptionSearch for feature sets in a feature store.- Parameters:
fn- a function that initializes a builder to create theSearchFeaturesetsRequest- Throws:
IOExceptionOpenSearchException
-
searchFeaturesets
public final CompletableFuture<SearchFeaturesetsResponse> searchFeaturesets() throws IOException, OpenSearchExceptionSearch for feature sets in a feature store.- Throws:
IOExceptionOpenSearchException
-
searchModels
public CompletableFuture<SearchModelsResponse> searchModels(SearchModelsRequest request) throws IOException, OpenSearchException Search for models in a feature store.- Throws:
IOExceptionOpenSearchException
-
searchModels
public final CompletableFuture<SearchModelsResponse> searchModels(Function<SearchModelsRequest.Builder, ObjectBuilder<SearchModelsRequest>> fn) throws IOException, OpenSearchExceptionSearch for models in a feature store.- Parameters:
fn- a function that initializes a builder to create theSearchModelsRequest- Throws:
IOExceptionOpenSearchException
-
searchModels
public final CompletableFuture<SearchModelsResponse> searchModels() throws IOException, OpenSearchExceptionSearch for models in a feature store.- Throws:
IOExceptionOpenSearchException
-
stats
public CompletableFuture<LtrStatsResponse> stats(LtrStatsRequest request) throws IOException, OpenSearchException Provides information about the current status of the LTR plugin.- Throws:
IOExceptionOpenSearchException
-
stats
public final CompletableFuture<LtrStatsResponse> stats(Function<LtrStatsRequest.Builder, ObjectBuilder<LtrStatsRequest>> fn) throws IOException, OpenSearchExceptionProvides information about the current status of the LTR plugin.- Parameters:
fn- a function that initializes a builder to create theLtrStatsRequest- Throws:
IOExceptionOpenSearchException
-
stats
Provides information about the current status of the LTR plugin.- Throws:
IOExceptionOpenSearchException
-
updateFeature
public CompletableFuture<UpdateFeatureResponse> updateFeature(UpdateFeatureRequest request) throws IOException, OpenSearchException Update a feature in the default feature store.- Throws:
IOExceptionOpenSearchException
-
updateFeature
public final CompletableFuture<UpdateFeatureResponse> updateFeature(Function<UpdateFeatureRequest.Builder, ObjectBuilder<UpdateFeatureRequest>> fn) throws IOException, OpenSearchExceptionUpdate a feature in the default feature store.- Parameters:
fn- a function that initializes a builder to create theUpdateFeatureRequest- Throws:
IOExceptionOpenSearchException
-
updateFeatureset
public CompletableFuture<UpdateFeaturesetResponse> updateFeatureset(UpdateFeaturesetRequest request) throws IOException, OpenSearchException Update a feature set in the default feature store.- Throws:
IOExceptionOpenSearchException
-
updateFeatureset
public final CompletableFuture<UpdateFeaturesetResponse> updateFeatureset(Function<UpdateFeaturesetRequest.Builder, ObjectBuilder<UpdateFeaturesetRequest>> fn) throws IOException, OpenSearchExceptionUpdate a feature set in the default feature store.- Parameters:
fn- a function that initializes a builder to create theUpdateFeaturesetRequest- Throws:
IOExceptionOpenSearchException
-