All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.reactiverse.elasticsearch.client.reactivex.TransformClient Maven / Gradle / Ivy

The newest version!
/*
 * 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 io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;


@RxGen(io.reactiverse.elasticsearch.client.TransformClient.class)
public class TransformClient {

  @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;
    TransformClient that = (TransformClient) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

  public static final TypeArg __TYPE_ARG = new TypeArg<>(    obj -> new TransformClient((io.reactiverse.elasticsearch.client.TransformClient) obj),
    TransformClient::getDelegate
  );

  private final io.reactiverse.elasticsearch.client.TransformClient delegate;
  
  public TransformClient(io.reactiverse.elasticsearch.client.TransformClient delegate) {
    this.delegate = delegate;
  }

  public TransformClient(Object delegate) {
    this.delegate = (io.reactiverse.elasticsearch.client.TransformClient)delegate;
  }

  public io.reactiverse.elasticsearch.client.TransformClient getDelegate() {
    return delegate;
  }

  public void putTransformAsync(org.elasticsearch.client.transform.PutTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.putTransformAsync(request, options, handler);
  }

  public void putTransformAsync(org.elasticsearch.client.transform.PutTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    putTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxPutTransformAsync(org.elasticsearch.client.transform.PutTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      putTransformAsync(request, options, $handler);
    });
  }

  public void updateTransformAsync(org.elasticsearch.client.transform.UpdateTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.updateTransformAsync(request, options, handler);
  }

  public void updateTransformAsync(org.elasticsearch.client.transform.UpdateTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    updateTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxUpdateTransformAsync(org.elasticsearch.client.transform.UpdateTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      updateTransformAsync(request, options, $handler);
    });
  }

  public void getTransformStatsAsync(org.elasticsearch.client.transform.GetTransformStatsRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getTransformStatsAsync(request, options, handler);
  }

  public void getTransformStatsAsync(org.elasticsearch.client.transform.GetTransformStatsRequest request, org.elasticsearch.client.RequestOptions options) {
    getTransformStatsAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetTransformStatsAsync(org.elasticsearch.client.transform.GetTransformStatsRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getTransformStatsAsync(request, options, $handler);
    });
  }

  public void deleteTransformAsync(org.elasticsearch.client.transform.DeleteTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.deleteTransformAsync(request, options, handler);
  }

  public void deleteTransformAsync(org.elasticsearch.client.transform.DeleteTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    deleteTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxDeleteTransformAsync(org.elasticsearch.client.transform.DeleteTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      deleteTransformAsync(request, options, $handler);
    });
  }

  public void previewTransformAsync(org.elasticsearch.client.transform.PreviewTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.previewTransformAsync(request, options, handler);
  }

  public void previewTransformAsync(org.elasticsearch.client.transform.PreviewTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    previewTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxPreviewTransformAsync(org.elasticsearch.client.transform.PreviewTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      previewTransformAsync(request, options, $handler);
    });
  }

  public void startTransformAsync(org.elasticsearch.client.transform.StartTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.startTransformAsync(request, options, handler);
  }

  public void startTransformAsync(org.elasticsearch.client.transform.StartTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    startTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStartTransformAsync(org.elasticsearch.client.transform.StartTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      startTransformAsync(request, options, $handler);
    });
  }

  public void stopTransformAsync(org.elasticsearch.client.transform.StopTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.stopTransformAsync(request, options, handler);
  }

  public void stopTransformAsync(org.elasticsearch.client.transform.StopTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    stopTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStopTransformAsync(org.elasticsearch.client.transform.StopTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      stopTransformAsync(request, options, $handler);
    });
  }

  public void getTransformAsync(org.elasticsearch.client.transform.GetTransformRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getTransformAsync(request, options, handler);
  }

  public void getTransformAsync(org.elasticsearch.client.transform.GetTransformRequest request, org.elasticsearch.client.RequestOptions options) {
    getTransformAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetTransformAsync(org.elasticsearch.client.transform.GetTransformRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getTransformAsync(request, options, $handler);
    });
  }

  public static TransformClient newInstance(io.reactiverse.elasticsearch.client.TransformClient arg) {
    return arg != null ? new TransformClient(arg) : null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy