public final class AccountClient extends Object
| Constructor and Description |
|---|
AccountClient() |
| Modifier and Type | Method and Description |
|---|---|
static <T> MultiResponse |
copyIndex(SearchIndex<T> sourceIndex,
SearchIndex<T> destinationIndex)
The method copy settings, synonyms, rules and objects from the source index to the destination
index
|
static <T> MultiResponse |
copyIndex(SearchIndex<T> sourceIndex,
SearchIndex<T> destinationIndex,
RequestOptions requestOptions)
The method copy settings, synonyms, rules and objects from the source index to the destination
index
|
static <T> CompletableFuture<MultiResponse> |
copyIndexAsync(SearchIndex<T> sourceIndex,
SearchIndex<T> destinationIndex)
The method copy settings, synonyms, rules and objects from the source index to the destination
index
|
static <T> CompletableFuture<MultiResponse> |
copyIndexAsync(SearchIndex<T> sourceIndex,
SearchIndex<T> destinationIndex,
RequestOptions requestOptions)
The method copy settings, synonyms, rules and objects from the source index to the destination
index
|
public static <T> MultiResponse copyIndex(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex)
sourceIndex - The source index to copydestinationIndex - The destination indexAlgoliaRuntimeException - If destination index already exist or source and destination
are on the same applicationAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codepublic static <T> MultiResponse copyIndex(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex, RequestOptions requestOptions)
sourceIndex - The source index to copydestinationIndex - The destination indexrequestOptions - Request options to pass to the requestAlgoliaRuntimeException - If destination index already exist or source and destination
are on the same applicationAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codepublic static <T> CompletableFuture<MultiResponse> copyIndexAsync(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex)
sourceIndex - The source index to copydestinationIndex - The destination indexAlgoliaRuntimeException - If destination index already exist or source and destination
are on the same applicationAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codepublic static <T> CompletableFuture<MultiResponse> copyIndexAsync(@Nonnull SearchIndex<T> sourceIndex, @Nonnull SearchIndex<T> destinationIndex, RequestOptions requestOptions)
sourceIndex - The source index to copydestinationIndex - The destination indexrequestOptions - Request options to pass to the requestAlgoliaRuntimeException - If destination index already exist or source and destination
are on the same applicationAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeCopyright © 2019. All rights reserved.