Class ElasticsearchRollupClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchRollupClient>
co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupClient
public class ElasticsearchRollupClient extends ApiClient<ElasticsearchTransport,ElasticsearchRollupClient>
Client for the rollup namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchRollupClient(ElasticsearchTransport transport)ElasticsearchRollupClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description DeleteJobResponsedeleteJob(DeleteJobRequest request)Deletes an existing rollup job.DeleteJobResponsedeleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn)Deletes an existing rollup job.GetJobsResponsegetJobs()Retrieves the configuration, stats, and status of rollup jobs.GetJobsResponsegetJobs(GetJobsRequest request)Retrieves the configuration, stats, and status of rollup jobs.GetJobsResponsegetJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn)Retrieves the configuration, stats, and status of rollup jobs.GetRollupCapsResponsegetRollupCaps()Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.GetRollupCapsResponsegetRollupCaps(GetRollupCapsRequest request)Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.GetRollupCapsResponsegetRollupCaps(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.GetRollupIndexCapsResponsegetRollupIndexCaps(GetRollupIndexCapsRequest request)Returns the rollup capabilities of all jobs inside of a rollup index (e.g.GetRollupIndexCapsResponsegetRollupIndexCaps(java.util.function.Function<GetRollupIndexCapsRequest.Builder,ObjectBuilder<GetRollupIndexCapsRequest>> fn)Returns the rollup capabilities of all jobs inside of a rollup index (e.g.PutJobResponseputJob(PutJobRequest request)Creates a rollup job.PutJobResponseputJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn)Creates a rollup job.RollupResponserollup(RollupRequest request)Rollup an indexRollupResponserollup(java.util.function.Function<RollupRequest.Builder,ObjectBuilder<RollupRequest>> fn)Rollup an index<TDocument>
RollupSearchResponse<TDocument>rollupSearch(RollupSearchRequest request, java.lang.Class<TDocument> tDocumentClass)Enables searching rolled-up data using the standard query DSL.<TDocument>
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.StartJobResponsestartJob(StartJobRequest request)Starts an existing, stopped rollup job.StartJobResponsestartJob(java.util.function.Function<StartJobRequest.Builder,ObjectBuilder<StartJobRequest>> fn)Starts an existing, stopped rollup job.StopJobResponsestopJob(StopJobRequest request)Stops an existing, started rollup job.StopJobResponsestopJob(java.util.function.Function<StopJobRequest.Builder,ObjectBuilder<StopJobRequest>> fn)Stops an existing, started rollup job.ElasticsearchRollupClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchRollupClient
-
ElasticsearchRollupClient
public ElasticsearchRollupClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchRollupClient>
-
deleteJob
public DeleteJobResponse deleteJob(DeleteJobRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an existing rollup job.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteJob
public final DeleteJobResponse deleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an existing rollup job.- Parameters:
fn- a function that initializes a builder to create theDeleteJobRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getJobs
public GetJobsResponse getJobs(GetJobsRequest request) throws java.io.IOException, ElasticsearchExceptionRetrieves the configuration, stats, and status of rollup jobs.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getJobs
public final GetJobsResponse getJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRetrieves the configuration, stats, and status of rollup jobs.- Parameters:
fn- a function that initializes a builder to create theGetJobsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getJobs
Retrieves the configuration, stats, and status of rollup jobs.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRollupCaps
public GetRollupCapsResponse getRollupCaps(GetRollupCapsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRollupCaps
public final GetRollupCapsResponse getRollupCaps(java.util.function.Function<GetRollupCapsRequest.Builder,ObjectBuilder<GetRollupCapsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns 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- Throws:
java.io.IOExceptionElasticsearchException- 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.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRollupIndexCaps
public GetRollupIndexCapsResponse getRollupIndexCaps(GetRollupIndexCapsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored).- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getRollupIndexCaps
public final GetRollupIndexCapsResponse getRollupIndexCaps(java.util.function.Function<GetRollupIndexCapsRequest.Builder,ObjectBuilder<GetRollupIndexCapsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns 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- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putJob
public PutJobResponse putJob(PutJobRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a rollup job.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putJob
public final PutJobResponse putJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates a rollup job.- Parameters:
fn- a function that initializes a builder to create thePutJobRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollup
public RollupResponse rollup(RollupRequest request) throws java.io.IOException, ElasticsearchExceptionRollup an index- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollup
public final RollupResponse rollup(java.util.function.Function<RollupRequest.Builder,ObjectBuilder<RollupRequest>> fn) throws java.io.IOException, ElasticsearchExceptionRollup an index- Parameters:
fn- a function that initializes a builder to create theRollupRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollupSearch
public <TDocument> RollupSearchResponse<TDocument> rollupSearch(RollupSearchRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException, ElasticsearchExceptionEnables searching rolled-up data using the standard query DSL.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollupSearch
public final <TDocument> RollupSearchResponse<TDocument> rollupSearch(java.util.function.Function<RollupSearchRequest.Builder,ObjectBuilder<RollupSearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOException, ElasticsearchExceptionEnables searching rolled-up data using the standard query DSL.- Parameters:
fn- a function that initializes a builder to create theRollupSearchRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
startJob
public StartJobResponse startJob(StartJobRequest request) throws java.io.IOException, ElasticsearchExceptionStarts an existing, stopped rollup job.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
startJob
public final StartJobResponse startJob(java.util.function.Function<StartJobRequest.Builder,ObjectBuilder<StartJobRequest>> fn) throws java.io.IOException, ElasticsearchExceptionStarts an existing, stopped rollup job.- Parameters:
fn- a function that initializes a builder to create theStartJobRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stopJob
public StopJobResponse stopJob(StopJobRequest request) throws java.io.IOException, ElasticsearchExceptionStops an existing, started rollup job.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stopJob
public final StopJobResponse stopJob(java.util.function.Function<StopJobRequest.Builder,ObjectBuilder<StopJobRequest>> fn) throws java.io.IOException, ElasticsearchExceptionStops an existing, started rollup job.- Parameters:
fn- a function that initializes a builder to create theStopJobRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-