io.reactiverse.elasticsearch.client.reactivex.MachineLearningClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-client-rxjava2 Show documentation
Show all versions of elasticsearch-client-rxjava2 Show documentation
Reactiverse Elasticsearch client :: RxJava2 bindings
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.reactiverse.elasticsearch.client.reactivex;
import java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import org.elasticsearch.client.ml.OpenJobRequest;
import org.elasticsearch.client.ml.StartDatafeedResponse;
import org.elasticsearch.client.ml.GetOverallBucketsResponse;
import org.elasticsearch.client.ml.GetInfluencersResponse;
import org.elasticsearch.client.ml.GetJobRequest;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.ml.OpenJobResponse;
import org.elasticsearch.client.ml.PutDatafeedRequest;
import org.elasticsearch.client.ml.DeleteDatafeedRequest;
import org.elasticsearch.client.ml.PutCalendarRequest;
import org.elasticsearch.client.ml.GetDatafeedResponse;
import org.elasticsearch.client.ml.DeleteForecastRequest;
import org.elasticsearch.client.ml.PreviewDatafeedRequest;
import org.elasticsearch.client.ml.DeleteCalendarRequest;
import org.elasticsearch.client.ml.GetBucketsResponse;
import org.elasticsearch.client.ml.FlushJobRequest;
import org.elasticsearch.client.ml.GetJobStatsRequest;
import org.elasticsearch.client.ml.GetOverallBucketsRequest;
import org.elasticsearch.client.ml.DeleteJobResponse;
import org.elasticsearch.client.ml.StopDatafeedRequest;
import org.elasticsearch.client.ml.StartDatafeedRequest;
import org.elasticsearch.client.ml.PutJobResponse;
import org.elasticsearch.client.ml.UpdateJobRequest;
import org.elasticsearch.client.ml.GetDatafeedStatsResponse;
import org.elasticsearch.client.ml.GetDatafeedRequest;
import org.elasticsearch.client.ml.PutDatafeedResponse;
import org.elasticsearch.client.ml.ForecastJobResponse;
import org.elasticsearch.client.ml.PostDataRequest;
import org.elasticsearch.client.ml.GetCalendarsResponse;
import org.elasticsearch.client.ml.CloseJobRequest;
import org.elasticsearch.client.ml.StopDatafeedResponse;
import org.elasticsearch.client.ml.GetDatafeedStatsRequest;
import io.vertx.core.AsyncResult;
import org.elasticsearch.client.ml.ForecastJobRequest;
import org.elasticsearch.client.ml.PreviewDatafeedResponse;
import org.elasticsearch.client.ml.GetJobResponse;
import org.elasticsearch.client.ml.GetJobStatsResponse;
import org.elasticsearch.client.ml.GetRecordsRequest;
import org.elasticsearch.client.ml.PutCalendarResponse;
import org.elasticsearch.client.ml.GetCategoriesRequest;
import org.elasticsearch.client.ml.GetCalendarsRequest;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.client.ml.PostDataResponse;
import org.elasticsearch.client.ml.DeleteJobRequest;
import org.elasticsearch.client.ml.CloseJobResponse;
import org.elasticsearch.client.ml.GetInfluencersRequest;
import org.elasticsearch.client.ml.FlushJobResponse;
import org.elasticsearch.client.ml.GetRecordsResponse;
import org.elasticsearch.client.ml.PutJobRequest;
import io.vertx.core.Handler;
import org.elasticsearch.client.ml.GetBucketsRequest;
import org.elasticsearch.client.ml.GetCategoriesResponse;
@io.vertx.lang.rx.RxGen(io.reactiverse.elasticsearch.client.MachineLearningClient.class)
public class MachineLearningClient {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MachineLearningClient that = (MachineLearningClient) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final io.vertx.lang.rx.TypeArg __TYPE_ARG = new io.vertx.lang.rx.TypeArg<>( obj -> new MachineLearningClient((io.reactiverse.elasticsearch.client.MachineLearningClient) obj),
MachineLearningClient::getDelegate
);
private final io.reactiverse.elasticsearch.client.MachineLearningClient delegate;
public MachineLearningClient(io.reactiverse.elasticsearch.client.MachineLearningClient delegate) {
this.delegate = delegate;
}
public io.reactiverse.elasticsearch.client.MachineLearningClient getDelegate() {
return delegate;
}
public void putJobAsync(PutJobRequest request, RequestOptions options, Handler> handler) {
delegate.putJobAsync(request, options, handler);
}
public Single rxPutJobAsync(PutJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
putJobAsync(request, options, handler);
});
}
public void getJobAsync(GetJobRequest request, RequestOptions options, Handler> handler) {
delegate.getJobAsync(request, options, handler);
}
public Single rxGetJobAsync(GetJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getJobAsync(request, options, handler);
});
}
public void getJobStatsAsync(GetJobStatsRequest request, RequestOptions options, Handler> handler) {
delegate.getJobStatsAsync(request, options, handler);
}
public Single rxGetJobStatsAsync(GetJobStatsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getJobStatsAsync(request, options, handler);
});
}
public void deleteJobAsync(DeleteJobRequest request, RequestOptions options, Handler> handler) {
delegate.deleteJobAsync(request, options, handler);
}
public Single rxDeleteJobAsync(DeleteJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
deleteJobAsync(request, options, handler);
});
}
public void openJobAsync(OpenJobRequest request, RequestOptions options, Handler> handler) {
delegate.openJobAsync(request, options, handler);
}
public Single rxOpenJobAsync(OpenJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
openJobAsync(request, options, handler);
});
}
public void closeJobAsync(CloseJobRequest request, RequestOptions options, Handler> handler) {
delegate.closeJobAsync(request, options, handler);
}
public Single rxCloseJobAsync(CloseJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
closeJobAsync(request, options, handler);
});
}
public void flushJobAsync(FlushJobRequest request, RequestOptions options, Handler> handler) {
delegate.flushJobAsync(request, options, handler);
}
public Single rxFlushJobAsync(FlushJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
flushJobAsync(request, options, handler);
});
}
public void forecastJobAsync(ForecastJobRequest request, RequestOptions options, Handler> handler) {
delegate.forecastJobAsync(request, options, handler);
}
public Single rxForecastJobAsync(ForecastJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
forecastJobAsync(request, options, handler);
});
}
public void deleteForecastAsync(DeleteForecastRequest request, RequestOptions options, Handler> handler) {
delegate.deleteForecastAsync(request, options, handler);
}
public Single rxDeleteForecastAsync(DeleteForecastRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
deleteForecastAsync(request, options, handler);
});
}
public void putDatafeedAsync(PutDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.putDatafeedAsync(request, options, handler);
}
public Single rxPutDatafeedAsync(PutDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
putDatafeedAsync(request, options, handler);
});
}
public void getDatafeedAsync(GetDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.getDatafeedAsync(request, options, handler);
}
public Single rxGetDatafeedAsync(GetDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getDatafeedAsync(request, options, handler);
});
}
public void deleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.deleteDatafeedAsync(request, options, handler);
}
public Single rxDeleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
deleteDatafeedAsync(request, options, handler);
});
}
public void startDatafeedAsync(StartDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.startDatafeedAsync(request, options, handler);
}
public Single rxStartDatafeedAsync(StartDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
startDatafeedAsync(request, options, handler);
});
}
public void stopDatafeedAsync(StopDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.stopDatafeedAsync(request, options, handler);
}
public Single rxStopDatafeedAsync(StopDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
stopDatafeedAsync(request, options, handler);
});
}
public void getDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options, Handler> handler) {
delegate.getDatafeedStatsAsync(request, options, handler);
}
public Single rxGetDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getDatafeedStatsAsync(request, options, handler);
});
}
public void previewDatafeedAsync(PreviewDatafeedRequest request, RequestOptions options, Handler> handler) {
delegate.previewDatafeedAsync(request, options, handler);
}
public Single rxPreviewDatafeedAsync(PreviewDatafeedRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
previewDatafeedAsync(request, options, handler);
});
}
public void updateJobAsync(UpdateJobRequest request, RequestOptions options, Handler> handler) {
delegate.updateJobAsync(request, options, handler);
}
public Single rxUpdateJobAsync(UpdateJobRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
updateJobAsync(request, options, handler);
});
}
public void getBucketsAsync(GetBucketsRequest request, RequestOptions options, Handler> handler) {
delegate.getBucketsAsync(request, options, handler);
}
public Single rxGetBucketsAsync(GetBucketsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getBucketsAsync(request, options, handler);
});
}
public void getCategoriesAsync(GetCategoriesRequest request, RequestOptions options, Handler> handler) {
delegate.getCategoriesAsync(request, options, handler);
}
public Single rxGetCategoriesAsync(GetCategoriesRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getCategoriesAsync(request, options, handler);
});
}
public void getOverallBucketsAsync(GetOverallBucketsRequest request, RequestOptions options, Handler> handler) {
delegate.getOverallBucketsAsync(request, options, handler);
}
public Single rxGetOverallBucketsAsync(GetOverallBucketsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getOverallBucketsAsync(request, options, handler);
});
}
public void getRecordsAsync(GetRecordsRequest request, RequestOptions options, Handler> handler) {
delegate.getRecordsAsync(request, options, handler);
}
public Single rxGetRecordsAsync(GetRecordsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getRecordsAsync(request, options, handler);
});
}
public void postDataAsync(PostDataRequest request, RequestOptions options, Handler> handler) {
delegate.postDataAsync(request, options, handler);
}
public Single rxPostDataAsync(PostDataRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
postDataAsync(request, options, handler);
});
}
public void getCalendarsAsync(GetCalendarsRequest request, RequestOptions options, Handler> handler) {
delegate.getCalendarsAsync(request, options, handler);
}
public Single rxGetCalendarsAsync(GetCalendarsRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getCalendarsAsync(request, options, handler);
});
}
public void getInfluencersAsync(GetInfluencersRequest request, RequestOptions options, Handler> handler) {
delegate.getInfluencersAsync(request, options, handler);
}
public Single rxGetInfluencersAsync(GetInfluencersRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
getInfluencersAsync(request, options, handler);
});
}
public void putCalendarAsync(PutCalendarRequest request, RequestOptions options, Handler> handler) {
delegate.putCalendarAsync(request, options, handler);
}
public Single rxPutCalendarAsync(PutCalendarRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
putCalendarAsync(request, options, handler);
});
}
public void deleteCalendarAsync(DeleteCalendarRequest request, RequestOptions options, Handler> handler) {
delegate.deleteCalendarAsync(request, options, handler);
}
public Single rxDeleteCalendarAsync(DeleteCalendarRequest request, RequestOptions options) {
return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
deleteCalendarAsync(request, options, handler);
});
}
public static MachineLearningClient newInstance(io.reactiverse.elasticsearch.client.MachineLearningClient arg) {
return arg != null ? new MachineLearningClient(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy