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 DeleteJobResponse
deleteJob(DeleteJobRequest request)
Deletes an existing rollup job.DeleteJobResponse
deleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn)
Deletes an existing rollup job.GetJobsResponse
getJobs()
Retrieves the configuration, stats, and status of rollup jobs.GetJobsResponse
getJobs(GetJobsRequest request)
Retrieves the configuration, stats, and status of rollup jobs.GetJobsResponse
getJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn)
Retrieves the configuration, stats, and status of rollup jobs.GetRollupCapsResponse
getRollupCaps()
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.GetRollupCapsResponse
getRollupCaps(GetRollupCapsRequest request)
Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.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.GetRollupIndexCapsResponse
getRollupIndexCaps(GetRollupIndexCapsRequest request)
Returns the rollup capabilities of all jobs inside of a rollup index (e.g.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.PutJobResponse
putJob(PutJobRequest request)
Creates a rollup job.PutJobResponse
putJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn)
Creates a rollup job.RollupResponse
rollup(RollupRequest request)
Rollup an indexRollupResponse
rollup(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.StartJobResponse
startJob(StartJobRequest request)
Starts an existing, stopped rollup job.StartJobResponse
startJob(java.util.function.Function<StartJobRequest.Builder,ObjectBuilder<StartJobRequest>> fn)
Starts an existing, stopped rollup job.StopJobResponse
stopJob(StopJobRequest request)
Stops an existing, started rollup job.StopJobResponse
stopJob(java.util.function.Function<StopJobRequest.Builder,ObjectBuilder<StopJobRequest>> fn)
Stops an existing, started rollup job.ElasticsearchRollupClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods 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:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchRollupClient>
-
deleteJob
public DeleteJobResponse deleteJob(DeleteJobRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an existing rollup job.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
getJobs
Retrieves the configuration, stats, and status of rollup jobs.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
putJob
public PutJobResponse putJob(PutJobRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a rollup job.- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-
rollup
public RollupResponse rollup(RollupRequest request) throws java.io.IOException, ElasticsearchExceptionRollup an index- Throws:
java.io.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- 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.IOException
ElasticsearchException
- See Also:
- Documentation on elastic.co
-