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

io.reactiverse.elasticsearch.client.reactivex.EnrichClient 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.EnrichClient.class)
public class EnrichClient {

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

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

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

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

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

  public void putPolicyAsync(org.elasticsearch.client.enrich.PutPolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.putPolicyAsync(request, options, handler);
  }

  public void putPolicyAsync(org.elasticsearch.client.enrich.PutPolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    putPolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxPutPolicyAsync(org.elasticsearch.client.enrich.PutPolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      putPolicyAsync(request, options, $handler);
    });
  }

  public void deletePolicyAsync(org.elasticsearch.client.enrich.DeletePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.deletePolicyAsync(request, options, handler);
  }

  public void deletePolicyAsync(org.elasticsearch.client.enrich.DeletePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    deletePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxDeletePolicyAsync(org.elasticsearch.client.enrich.DeletePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      deletePolicyAsync(request, options, $handler);
    });
  }

  public void getPolicyAsync(org.elasticsearch.client.enrich.GetPolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getPolicyAsync(request, options, handler);
  }

  public void getPolicyAsync(org.elasticsearch.client.enrich.GetPolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    getPolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetPolicyAsync(org.elasticsearch.client.enrich.GetPolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getPolicyAsync(request, options, $handler);
    });
  }

  public void statsAsync(org.elasticsearch.client.enrich.StatsRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.statsAsync(request, options, handler);
  }

  public void statsAsync(org.elasticsearch.client.enrich.StatsRequest request, org.elasticsearch.client.RequestOptions options) {
    statsAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStatsAsync(org.elasticsearch.client.enrich.StatsRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      statsAsync(request, options, $handler);
    });
  }

  public void executePolicyAsync(org.elasticsearch.client.enrich.ExecutePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.executePolicyAsync(request, options, handler);
  }

  public void executePolicyAsync(org.elasticsearch.client.enrich.ExecutePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    executePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxExecutePolicyAsync(org.elasticsearch.client.enrich.ExecutePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      executePolicyAsync(request, options, $handler);
    });
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy