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

io.reactiverse.elasticsearch.client.RestHighLevelClient Maven / Gradle / Ivy

The newest version!
/*
[NOTE] This is an automatically generated file.
       Do not make changes to this file but to the shim code generator.

*/
package io.reactiverse.elasticsearch.client;

import io.vertx.core.*;
import io.vertx.codegen.annotations.*;
import org.elasticsearch.client.*;
import org.apache.http.HttpEntity;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchStatusException;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
import org.elasticsearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest;
import org.elasticsearch.action.admin.cluster.storedscripts.GetStoredScriptRequest;
import org.elasticsearch.action.admin.cluster.storedscripts.GetStoredScriptResponse;
import org.elasticsearch.action.admin.cluster.storedscripts.PutStoredScriptRequest;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.delete.DeleteRequest;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.explain.ExplainRequest;
import org.elasticsearch.action.explain.ExplainResponse;
import org.elasticsearch.action.fieldcaps.FieldCapabilitiesRequest;
import org.elasticsearch.action.fieldcaps.FieldCapabilitiesResponse;
import org.elasticsearch.action.get.GetRequest;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.get.MultiGetRequest;
import org.elasticsearch.action.get.MultiGetResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.search.ClearScrollRequest;
import org.elasticsearch.action.search.ClearScrollResponse;
import org.elasticsearch.action.search.MultiSearchRequest;
import org.elasticsearch.action.search.MultiSearchResponse;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.search.SearchScrollRequest;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.client.analytics.InferencePipelineAggregationBuilder;
import org.elasticsearch.client.analytics.ParsedInference;
import org.elasticsearch.client.analytics.ParsedStringStats;
import org.elasticsearch.client.analytics.ParsedTopMetrics;
import org.elasticsearch.client.analytics.StringStatsAggregationBuilder;
import org.elasticsearch.client.analytics.TopMetricsAggregationBuilder;
import org.elasticsearch.client.core.CountRequest;
import org.elasticsearch.client.core.CountResponse;
import org.elasticsearch.client.core.GetSourceRequest;
import org.elasticsearch.client.core.GetSourceResponse;
import org.elasticsearch.client.core.MainRequest;
import org.elasticsearch.client.core.MainResponse;
import org.elasticsearch.client.core.MultiTermVectorsRequest;
import org.elasticsearch.client.core.MultiTermVectorsResponse;
import org.elasticsearch.client.core.TermVectorsRequest;
import org.elasticsearch.client.core.TermVectorsResponse;
import org.elasticsearch.client.tasks.TaskSubmissionResponse;
import org.elasticsearch.common.CheckedConsumer;
import org.elasticsearch.common.CheckedFunction;
import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.xcontent.ContextParser;
import org.elasticsearch.common.xcontent.DeprecationHandler;
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.index.rankeval.RankEvalRequest;
import org.elasticsearch.index.rankeval.RankEvalResponse;
import org.elasticsearch.index.reindex.BulkByScrollResponse;
import org.elasticsearch.index.reindex.DeleteByQueryRequest;
import org.elasticsearch.index.reindex.ReindexRequest;
import org.elasticsearch.index.reindex.UpdateByQueryRequest;
import org.elasticsearch.plugins.spi.NamedXContentProvider;
import org.elasticsearch.rest.BytesRestResponse;
import org.elasticsearch.rest.RestStatus;
import org.elasticsearch.script.mustache.MultiSearchTemplateRequest;
import org.elasticsearch.script.mustache.MultiSearchTemplateResponse;
import org.elasticsearch.script.mustache.SearchTemplateRequest;
import org.elasticsearch.script.mustache.SearchTemplateResponse;
import org.elasticsearch.search.aggregations.Aggregation;
import org.elasticsearch.search.aggregations.bucket.adjacency.AdjacencyMatrixAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.adjacency.ParsedAdjacencyMatrix;
import org.elasticsearch.search.aggregations.bucket.composite.CompositeAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.composite.ParsedComposite;
import org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.filter.FiltersAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilter;
import org.elasticsearch.search.aggregations.bucket.filter.ParsedFilters;
import org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoHashGrid;
import org.elasticsearch.search.aggregations.bucket.geogrid.ParsedGeoTileGrid;
import org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.global.ParsedGlobal;
import org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.histogram.ParsedAutoDateHistogram;
import org.elasticsearch.search.aggregations.bucket.histogram.ParsedDateHistogram;
import org.elasticsearch.search.aggregations.bucket.histogram.ParsedHistogram;
import org.elasticsearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram;
import org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.missing.ParsedMissing;
import org.elasticsearch.search.aggregations.bucket.nested.NestedAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.nested.ParsedNested;
import org.elasticsearch.search.aggregations.bucket.nested.ParsedReverseNested;
import org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.range.GeoDistanceAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.range.IpRangeAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.range.ParsedBinaryRange;
import org.elasticsearch.search.aggregations.bucket.range.ParsedDateRange;
import org.elasticsearch.search.aggregations.bucket.range.ParsedGeoDistance;
import org.elasticsearch.search.aggregations.bucket.range.ParsedRange;
import org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder;
import org.elasticsearch.search.aggregations.bucket.sampler.InternalSampler;
import org.elasticsearch.search.aggregations.bucket.sampler.ParsedSampler;
import org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongRareTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantLongTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedSignificantStringTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringRareTerms;
import org.elasticsearch.search.aggregations.bucket.terms.SignificantLongTerms;
import org.elasticsearch.search.aggregations.bucket.terms.SignificantStringTerms;
import org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms;
import org.elasticsearch.search.aggregations.bucket.terms.LongTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedDoubleTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedLongTerms;
import org.elasticsearch.search.aggregations.bucket.terms.ParsedStringTerms;
import org.elasticsearch.search.aggregations.bucket.terms.StringRareTerms;
import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
import org.elasticsearch.search.aggregations.metrics.AvgAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.CardinalityAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.ExtendedStatsAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.GeoBoundsAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.GeoCentroidAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.InternalHDRPercentileRanks;
import org.elasticsearch.search.aggregations.metrics.InternalHDRPercentiles;
import org.elasticsearch.search.aggregations.metrics.InternalTDigestPercentileRanks;
import org.elasticsearch.search.aggregations.metrics.InternalTDigestPercentiles;
import org.elasticsearch.search.aggregations.metrics.MaxAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.MedianAbsoluteDeviationAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.MinAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.ParsedAvg;
import org.elasticsearch.search.aggregations.metrics.ParsedCardinality;
import org.elasticsearch.search.aggregations.metrics.ParsedExtendedStats;
import org.elasticsearch.search.aggregations.metrics.ParsedGeoBounds;
import org.elasticsearch.search.aggregations.metrics.ParsedGeoCentroid;
import org.elasticsearch.search.aggregations.metrics.ParsedHDRPercentileRanks;
import org.elasticsearch.search.aggregations.metrics.ParsedHDRPercentiles;
import org.elasticsearch.search.aggregations.metrics.ParsedMax;
import org.elasticsearch.search.aggregations.metrics.ParsedMedianAbsoluteDeviation;
import org.elasticsearch.search.aggregations.metrics.ParsedMin;
import org.elasticsearch.search.aggregations.metrics.ParsedScriptedMetric;
import org.elasticsearch.search.aggregations.metrics.ParsedStats;
import org.elasticsearch.search.aggregations.metrics.ParsedSum;
import org.elasticsearch.search.aggregations.metrics.ParsedTDigestPercentileRanks;
import org.elasticsearch.search.aggregations.metrics.ParsedTDigestPercentiles;
import org.elasticsearch.search.aggregations.metrics.ParsedTopHits;
import org.elasticsearch.search.aggregations.metrics.ParsedValueCount;
import org.elasticsearch.search.aggregations.metrics.ParsedWeightedAvg;
import org.elasticsearch.search.aggregations.metrics.ScriptedMetricAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.StatsAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.SumAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.TopHitsAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.ValueCountAggregationBuilder;
import org.elasticsearch.search.aggregations.metrics.WeightedAvgAggregationBuilder;
import org.elasticsearch.search.aggregations.pipeline.DerivativePipelineAggregationBuilder;
import org.elasticsearch.search.aggregations.pipeline.ExtendedStatsBucketPipelineAggregationBuilder;
import org.elasticsearch.search.aggregations.pipeline.InternalBucketMetricValue;
import org.elasticsearch.search.aggregations.pipeline.InternalSimpleValue;
import org.elasticsearch.search.aggregations.pipeline.ParsedBucketMetricValue;
import org.elasticsearch.search.aggregations.pipeline.ParsedDerivative;
import org.elasticsearch.search.aggregations.pipeline.ParsedExtendedStatsBucket;
import org.elasticsearch.search.aggregations.pipeline.ParsedPercentilesBucket;
import org.elasticsearch.search.aggregations.pipeline.ParsedSimpleValue;
import org.elasticsearch.search.aggregations.pipeline.ParsedStatsBucket;
import org.elasticsearch.search.aggregations.pipeline.PercentilesBucketPipelineAggregationBuilder;
import org.elasticsearch.search.aggregations.pipeline.StatsBucketPipelineAggregationBuilder;
import org.elasticsearch.search.suggest.Suggest;
import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder;
import org.elasticsearch.search.suggest.phrase.PhraseSuggestion;
import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder;
import org.elasticsearch.search.suggest.term.TermSuggestion;
import org.elasticsearch.search.suggest.term.TermSuggestionBuilder;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.ServiceLoader;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static java.util.Collections.emptySet;
import static java.util.Collections.singleton;
import static java.util.stream.Collectors.toList;

@VertxGen()
public interface RestHighLevelClient {

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    static RestHighLevelClient create(Vertx vertx, RestClientBuilder restClientBuilder) {
        return new RestHighLevelClientImpl(vertx, restClientBuilder);
    }

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void close();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    IndicesClient indices();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    ClusterClient cluster();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    IngestClient ingest();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    SnapshotClient snapshot();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    RollupClient rollup();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    CcrClient ccr();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    TasksClient tasks();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    XPackClient xpack();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    WatcherClient watcher();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    GraphClient graph();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    LicenseClient license();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    IndexLifecycleClient indexLifecycle();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    AsyncSearchClient asyncSearch();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    MachineLearningClient machineLearning();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    SecurityClient security();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    TransformClient transform();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    EnrichClient enrich();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    EqlClient eql();

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void bulkAsync(BulkRequest bulkRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void reindexAsync(ReindexRequest reindexRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void updateByQueryAsync(UpdateByQueryRequest updateByQueryRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void deleteByQueryAsync(DeleteByQueryRequest deleteByQueryRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void deleteByQueryRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void updateByQueryRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void reindexRethrottleAsync(RethrottleRequest rethrottleRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void getAsync(GetRequest getRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void mgetAsync(MultiGetRequest multiGetRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void existsAsync(GetRequest getRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void existsSourceAsync(GetSourceRequest getSourceRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void getSourceAsync(GetSourceRequest getSourceRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void indexAsync(IndexRequest indexRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void countAsync(CountRequest countRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void updateAsync(UpdateRequest updateRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void deleteAsync(DeleteRequest deleteRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void searchAsync(SearchRequest searchRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void msearchAsync(MultiSearchRequest searchRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void scrollAsync(SearchScrollRequest searchScrollRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void clearScrollAsync(ClearScrollRequest clearScrollRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void searchTemplateAsync(SearchTemplateRequest searchTemplateRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void explainAsync(ExplainRequest explainRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void termvectorsAsync(TermVectorsRequest request, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void mtermvectorsAsync(MultiTermVectorsRequest request, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void msearchTemplateAsync(MultiSearchTemplateRequest multiSearchTemplateRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void rankEvalAsync(RankEvalRequest rankEvalRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void getScriptAsync(GetStoredScriptRequest request, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void deleteScriptAsync(DeleteStoredScriptRequest request, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void putScriptAsync(PutStoredScriptRequest putStoredScriptRequest, RequestOptions options, Handler> handler);

    @GenIgnore(GenIgnore.PERMITTED_TYPE)
    void fieldCapsAsync(FieldCapabilitiesRequest fieldCapabilitiesRequest, RequestOptions options, Handler> handler);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy