Class ElasticsearchRollupAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchRollupAsyncClient>
co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient
public class ElasticsearchRollupAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchRollupAsyncClient>
Client for the rollup namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchRollupAsyncClient(ElasticsearchTransport transport)
ElasticsearchRollupAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<DeleteJobResponse>
deleteJob(DeleteJobRequest request)
Deletes an existing rollup job.java.util.concurrent.CompletableFuture<DeleteJobResponse>
deleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn)
Deletes an existing rollup job.java.util.concurrent.CompletableFuture<GetJobsResponse>
getJobs()
Retrieves the configuration, stats, and status of rollup jobs.java.util.concurrent.CompletableFuture<GetJobsResponse>
getJobs(GetJobsRequest request)
Retrieves the configuration, stats, and status of rollup jobs.java.util.concurrent.CompletableFuture<GetJobsResponse>
getJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn)
Retrieves the configuration, stats, and status of rollup jobs.java.util.concurrent.CompletableFuture<GetRollupCapsResponse>
getRollupCaps()
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.java.util.concurrent.CompletableFuture<GetRollupCapsResponse>
getRollupCaps(GetRollupCapsRequest request)
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.java.util.concurrent.CompletableFuture<GetRollupCapsResponse>
getRollupCaps(java.util.function.Function<GetRollupCapsRequest.Builder,ObjectBuilder<GetRollupCapsRequest>> fn)
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse>
getRollupIndexCaps(GetRollupIndexCapsRequest request)
Returns the rollup capabilities of all jobs inside of a rollup index (e.g.java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse>
getRollupIndexCaps(java.util.function.Function<GetRollupIndexCapsRequest.Builder,ObjectBuilder<GetRollupIndexCapsRequest>> fn)
Returns the rollup capabilities of all jobs inside of a rollup index (e.g.java.util.concurrent.CompletableFuture<PutJobResponse>
putJob(PutJobRequest request)
Creates a rollup job.java.util.concurrent.CompletableFuture<PutJobResponse>
putJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn)
Creates a rollup job.java.util.concurrent.CompletableFuture<RollupResponse>
rollup(RollupRequest request)
Rollup an indexjava.util.concurrent.CompletableFuture<RollupResponse>
rollup(java.util.function.Function<RollupRequest.Builder,ObjectBuilder<RollupRequest>> fn)
Rollup an index<TDocument>
java.util.concurrent.CompletableFuture<RollupSearchResponse<TDocument>>rollupSearch(RollupSearchRequest request, java.lang.Class<TDocument> tDocumentClass)
Enables searching rolled-up data using the standard query DSL.<TDocument>
java.util.concurrent.CompletableFuture<RollupSearchResponse<TDocument>>rollupSearch(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)
Enables searching rolled-up data using the standard query DSL.java.util.concurrent.CompletableFuture<StartJobResponse>
startJob(StartJobRequest request)
Starts an existing, stopped rollup job.java.util.concurrent.CompletableFuture<StartJobResponse>
startJob(java.util.function.Function<StartJobRequest.Builder,ObjectBuilder<StartJobRequest>> fn)
Starts an existing, stopped rollup job.java.util.concurrent.CompletableFuture<StopJobResponse>
stopJob(StopJobRequest request)
Stops an existing, started rollup job.java.util.concurrent.CompletableFuture<StopJobResponse>
stopJob(java.util.function.Function<StopJobRequest.Builder,ObjectBuilder<StopJobRequest>> fn)
Stops an existing, started rollup job.ElasticsearchRollupAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchRollupAsyncClient
-
ElasticsearchRollupAsyncClient
public ElasticsearchRollupAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchRollupAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchRollupAsyncClient>
-
deleteJob
public java.util.concurrent.CompletableFuture<DeleteJobResponse> deleteJob(DeleteJobRequest request)Deletes an existing rollup job.- See Also:
- Documentation on elastic.co
-
deleteJob
public final java.util.concurrent.CompletableFuture<DeleteJobResponse> deleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn)Deletes an existing rollup job.- Parameters:
fn
- a function that initializes a builder to create theDeleteJobRequest
- See Also:
- Documentation on elastic.co
-
getJobs
Retrieves the configuration, stats, and status of rollup jobs.- See Also:
- Documentation on elastic.co
-
getJobs
public final java.util.concurrent.CompletableFuture<GetJobsResponse> getJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn)Retrieves the configuration, stats, and status of rollup jobs.- Parameters:
fn
- a function that initializes a builder to create theGetJobsRequest
- See Also:
- Documentation on elastic.co
-
getJobs
Retrieves the configuration, stats, and status of rollup jobs.- See Also:
- Documentation on elastic.co
-
getRollupCaps
public java.util.concurrent.CompletableFuture<GetRollupCapsResponse> getRollupCaps(GetRollupCapsRequest request)Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.- See Also:
- Documentation on elastic.co
-
getRollupCaps
public final java.util.concurrent.CompletableFuture<GetRollupCapsResponse> getRollupCaps(java.util.function.Function<GetRollupCapsRequest.Builder,ObjectBuilder<GetRollupCapsRequest>> fn)Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.- Parameters:
fn
- a function that initializes a builder to create theGetRollupCapsRequest
- See Also:
- Documentation on elastic.co
-
getRollupCaps
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.- See Also:
- Documentation on elastic.co
-
getRollupIndexCaps
public java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse> getRollupIndexCaps(GetRollupIndexCapsRequest request)Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored).- See Also:
- Documentation on elastic.co
-
getRollupIndexCaps
public final java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse> getRollupIndexCaps(java.util.function.Function<GetRollupIndexCapsRequest.Builder,ObjectBuilder<GetRollupIndexCapsRequest>> fn)Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored).- Parameters:
fn
- a function that initializes a builder to create theGetRollupIndexCapsRequest
- See Also:
- Documentation on elastic.co
-
putJob
Creates a rollup job.- See Also:
- Documentation on elastic.co
-
putJob
public final java.util.concurrent.CompletableFuture<PutJobResponse> putJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn)Creates a rollup job.- Parameters:
fn
- a function that initializes a builder to create thePutJobRequest
- See Also:
- Documentation on elastic.co
-
rollup
Rollup an index- See Also:
- Documentation on elastic.co
-
rollup
public final java.util.concurrent.CompletableFuture<RollupResponse> rollup(java.util.function.Function<RollupRequest.Builder,ObjectBuilder<RollupRequest>> fn)Rollup an index- Parameters:
fn
- a function that initializes a builder to create theRollupRequest
- See Also:
- Documentation on elastic.co
-
rollupSearch
public <TDocument> java.util.concurrent.CompletableFuture<RollupSearchResponse<TDocument>> rollupSearch(RollupSearchRequest request, java.lang.Class<TDocument> tDocumentClass)Enables searching rolled-up data using the standard query DSL.- See Also:
- Documentation on elastic.co
-
rollupSearch
public final <TDocument> java.util.concurrent.CompletableFuture<RollupSearchResponse<TDocument>> rollupSearch(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Enables searching rolled-up data using the standard query DSL.- Parameters:
fn
- a function that initializes a builder to create theRollupSearchRequest
- See Also:
- Documentation on elastic.co
-
startJob
Starts an existing, stopped rollup job.- See Also:
- Documentation on elastic.co
-
startJob
public final java.util.concurrent.CompletableFuture<StartJobResponse> startJob(java.util.function.Function<StartJobRequest.Builder,ObjectBuilder<StartJobRequest>> fn)Starts an existing, stopped rollup job.- Parameters:
fn
- a function that initializes a builder to create theStartJobRequest
- See Also:
- Documentation on elastic.co
-
stopJob
Stops an existing, started rollup job.- See Also:
- Documentation on elastic.co
-
stopJob
public final java.util.concurrent.CompletableFuture<StopJobResponse> stopJob(java.util.function.Function<StopJobRequest.Builder,ObjectBuilder<StopJobRequest>> fn)Stops an existing, started rollup job.- Parameters:
fn
- a function that initializes a builder to create theStopJobRequest
- See Also:
- Documentation on elastic.co
-