Search in sources :

Example 1 with ContextParser

use of org.opensearch.common.xcontent.ContextParser in project OpenSearch by opensearch-project.

the class MatrixStatsNamedXContentProvider method getNamedXContentParsers.

@Override
public List<NamedXContentRegistry.Entry> getNamedXContentParsers() {
    ParseField parseField = new ParseField(MatrixStatsAggregationBuilder.NAME);
    ContextParser<Object, Aggregation> contextParser = (p, name) -> ParsedMatrixStats.fromXContent(p, (String) name);
    return singletonList(new NamedXContentRegistry.Entry(Aggregation.class, parseField, contextParser));
}
Also used : Aggregation(org.opensearch.search.aggregations.Aggregation) List(java.util.List) Aggregation(org.opensearch.search.aggregations.Aggregation) ParsedMatrixStats(org.opensearch.search.aggregations.matrix.stats.ParsedMatrixStats) MatrixStatsAggregationBuilder(org.opensearch.search.aggregations.matrix.stats.MatrixStatsAggregationBuilder) NamedXContentProvider(org.opensearch.plugins.spi.NamedXContentProvider) NamedXContentRegistry(org.opensearch.common.xcontent.NamedXContentRegistry) ContextParser(org.opensearch.common.xcontent.ContextParser) ParseField(org.opensearch.common.ParseField) Collections.singletonList(java.util.Collections.singletonList) NamedXContentRegistry(org.opensearch.common.xcontent.NamedXContentRegistry) ParseField(org.opensearch.common.ParseField)

Example 2 with ContextParser

use of org.opensearch.common.xcontent.ContextParser in project OpenSearch by opensearch-project.

the class ParentJoinNamedXContentProvider method getNamedXContentParsers.

@Override
public List<NamedXContentRegistry.Entry> getNamedXContentParsers() {
    ParseField parseFieldChildren = new ParseField(ChildrenAggregationBuilder.NAME);
    ParseField parseFieldParent = new ParseField(ParentAggregationBuilder.NAME);
    ContextParser<Object, Aggregation> contextParserChildren = (p, name) -> ParsedChildren.fromXContent(p, (String) name);
    ContextParser<Object, Aggregation> contextParserParent = (p, name) -> ParsedParent.fromXContent(p, (String) name);
    return Arrays.asList(new NamedXContentRegistry.Entry(Aggregation.class, parseFieldChildren, contextParserChildren), new NamedXContentRegistry.Entry(Aggregation.class, parseFieldParent, contextParserParent));
}
Also used : Aggregation(org.opensearch.search.aggregations.Aggregation) Arrays(java.util.Arrays) List(java.util.List) ParentAggregationBuilder(org.opensearch.join.aggregations.ParentAggregationBuilder) ParsedParent(org.opensearch.join.aggregations.ParsedParent) Aggregation(org.opensearch.search.aggregations.Aggregation) NamedXContentProvider(org.opensearch.plugins.spi.NamedXContentProvider) NamedXContentRegistry(org.opensearch.common.xcontent.NamedXContentRegistry) ContextParser(org.opensearch.common.xcontent.ContextParser) ChildrenAggregationBuilder(org.opensearch.join.aggregations.ChildrenAggregationBuilder) ParsedChildren(org.opensearch.join.aggregations.ParsedChildren) ParseField(org.opensearch.common.ParseField) NamedXContentRegistry(org.opensearch.common.xcontent.NamedXContentRegistry) ParseField(org.opensearch.common.ParseField)

Example 3 with ContextParser

use of org.opensearch.common.xcontent.ContextParser in project OpenSearch by opensearch-project.

the class RestHighLevelClient method getDefaultNamedXContents.

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

Aggregations

List (java.util.List)3 ParseField (org.opensearch.common.ParseField)2 ContextParser (org.opensearch.common.xcontent.ContextParser)2 NamedXContentRegistry (org.opensearch.common.xcontent.NamedXContentRegistry)2 NamedXContentProvider (org.opensearch.plugins.spi.NamedXContentProvider)2 Aggregation (org.opensearch.search.aggregations.Aggregation)2 Closeable (java.io.Closeable)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 Collections (java.util.Collections)1 Collections.emptySet (java.util.Collections.emptySet)1 Collections.singleton (java.util.Collections.singleton)1 Collections.singletonList (java.util.Collections.singletonList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Objects (java.util.Objects)1 Optional (java.util.Optional)1 ServiceLoader (java.util.ServiceLoader)1 Set (java.util.Set)1