Class ElasticsearchSearchableSnapshotsClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient
public class ElasticsearchSearchableSnapshotsClient extends ApiClient
Client for the searchable_snapshots namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchSearchableSnapshotsClient(Transport transport) -
Method Summary
Modifier and Type Method Description ClearCacheResponseclearCache()Clear the cache of searchable snapshots.ClearCacheResponseclearCache(ClearCacheRequest request)Clear the cache of searchable snapshots.ClearCacheResponseclearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn)Clear the cache of searchable snapshots.MountResponsemount(MountRequest request)Mount a snapshot as a searchable index.MountResponsemount(java.util.function.Function<MountRequest.Builder,ObjectBuilder<MountRequest>> fn)Mount a snapshot as a searchable index.SearchableSnapshotsStatsResponsestats()Retrieve shard-level statistics about searchable snapshots.SearchableSnapshotsStatsResponsestats(SearchableSnapshotsStatsRequest request)Retrieve shard-level statistics about searchable snapshots.SearchableSnapshotsStatsResponsestats(java.util.function.Function<SearchableSnapshotsStatsRequest.Builder,ObjectBuilder<SearchableSnapshotsStatsRequest>> fn)Retrieve shard-level statistics about searchable snapshots.Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchSearchableSnapshotsClient
-
-
Method Details
-
clearCache
Clear the cache of searchable snapshots.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCache
public final ClearCacheResponse clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn) throws java.io.IOExceptionClear the cache of searchable snapshots.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
clearCache
Clear the cache of searchable snapshots.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
mount
Mount a snapshot as a searchable index.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
mount
public final MountResponse mount(java.util.function.Function<MountRequest.Builder,ObjectBuilder<MountRequest>> fn) throws java.io.IOExceptionMount a snapshot as a searchable index.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stats
public SearchableSnapshotsStatsResponse stats(SearchableSnapshotsStatsRequest request) throws java.io.IOExceptionRetrieve shard-level statistics about searchable snapshots.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stats
public final SearchableSnapshotsStatsResponse stats(java.util.function.Function<SearchableSnapshotsStatsRequest.Builder,ObjectBuilder<SearchableSnapshotsStatsRequest>> fn) throws java.io.IOExceptionRetrieve shard-level statistics about searchable snapshots.- Parameters:
fn- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-
stats
Retrieve shard-level statistics about searchable snapshots.- Throws:
java.io.IOException- See Also:
- Documentation on elastic.co
-