Class ElasticsearchRollupAsyncClient

java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient

public class ElasticsearchRollupAsyncClient
extends ApiClient
Client for the rollup namespace.
  • Constructor Details

    • ElasticsearchRollupAsyncClient

      public ElasticsearchRollupAsyncClient​(Transport transport)
  • Method Details

    • deleteJob

      public java.util.concurrent.CompletableFuture<DeleteJobResponse> deleteJob​(DeleteJobRequest request) throws java.io.IOException
      Deletes an existing rollup job.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • deleteJob

      public final java.util.concurrent.CompletableFuture<DeleteJobResponse> deleteJob​(java.util.function.Function<DeleteJobRequest.Builder,​ObjectBuilder<DeleteJobRequest>> fn) throws java.io.IOException
      Deletes an existing rollup job.
      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
    • getJobs

      public java.util.concurrent.CompletableFuture<GetJobsResponse> getJobs​(GetJobsRequest request) throws java.io.IOException
      Retrieves the configuration, stats, and status of rollup jobs.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • getJobs

      public final java.util.concurrent.CompletableFuture<GetJobsResponse> getJobs​(java.util.function.Function<GetJobsRequest.Builder,​ObjectBuilder<GetJobsRequest>> fn) throws java.io.IOException
      Retrieves the configuration, stats, and status of rollup jobs.
      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
    • getRollupCaps

      public java.util.concurrent.CompletableFuture<GetRollupCapsResponse> getRollupCaps​(GetRollupCapsRequest request) throws java.io.IOException
      Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • getRollupCaps

      public final java.util.concurrent.CompletableFuture<GetRollupCapsResponse> getRollupCaps​(java.util.function.Function<GetRollupCapsRequest.Builder,​ObjectBuilder<GetRollupCapsRequest>> fn) throws java.io.IOException
      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 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
    • getRollupIndexCaps

      public java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse> getRollupIndexCaps​(GetRollupIndexCapsRequest request) throws java.io.IOException
      Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored).
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • getRollupIndexCaps

      public final java.util.concurrent.CompletableFuture<GetRollupIndexCapsResponse> getRollupIndexCaps​(java.util.function.Function<GetRollupIndexCapsRequest.Builder,​ObjectBuilder<GetRollupIndexCapsRequest>> fn) throws java.io.IOException
      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 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
    • putJob

      public java.util.concurrent.CompletableFuture<PutJobResponse> putJob​(PutJobRequest request) throws java.io.IOException
      Creates a rollup job.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • putJob

      public final java.util.concurrent.CompletableFuture<PutJobResponse> putJob​(java.util.function.Function<PutJobRequest.Builder,​ObjectBuilder<PutJobRequest>> fn) throws java.io.IOException
      Creates a rollup job.
      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
    • rollup

      public java.util.concurrent.CompletableFuture<RollupResponse> rollup​(RollupRequest request) throws java.io.IOException
      Rollup an index
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • rollup

      public final java.util.concurrent.CompletableFuture<RollupResponse> rollup​(java.util.function.Function<RollupRequest.Builder,​ObjectBuilder<RollupRequest>> fn) throws java.io.IOException
      Rollup an 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
    • rollupSearch

      public <TDocument> java.util.concurrent.CompletableFuture<RollupSearchResponse<TDocument>> rollupSearch​(RollupSearchRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException
      Enables searching rolled-up data using the standard query DSL.
      Throws:
      java.io.IOException
      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) throws java.io.IOException
      Enables searching rolled-up data using the standard query DSL.
      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
    • startJob

      public java.util.concurrent.CompletableFuture<StartJobResponse> startJob​(StartJobRequest request) throws java.io.IOException
      Starts an existing, stopped rollup job.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • startJob

      public final java.util.concurrent.CompletableFuture<StartJobResponse> startJob​(java.util.function.Function<StartJobRequest.Builder,​ObjectBuilder<StartJobRequest>> fn) throws java.io.IOException
      Starts an existing, stopped rollup job.
      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
    • stopJob

      public java.util.concurrent.CompletableFuture<StopJobResponse> stopJob​(StopJobRequest request) throws java.io.IOException
      Stops an existing, started rollup job.
      Throws:
      java.io.IOException
      See Also:
      Documentation on elastic.co
    • stopJob

      public final java.util.concurrent.CompletableFuture<StopJobResponse> stopJob​(java.util.function.Function<StopJobRequest.Builder,​ObjectBuilder<StopJobRequest>> fn) throws java.io.IOException
      Stops an existing, started rollup job.
      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