Uses of Class
org.elasticsearch.search.aggregations.BucketOrder
-
Packages that use BucketOrder Package Description org.elasticsearch.search.aggregations org.elasticsearch.search.aggregations.bucket.histogram org.elasticsearch.search.aggregations.bucket.terms -
-
Uses of BucketOrder in org.elasticsearch.search.aggregations
Subclasses of BucketOrder in org.elasticsearch.search.aggregations Modifier and Type Class Description classInternalOrderImplementations forMultiBucketsAggregation.Bucketordering strategies.static classInternalOrder.AggregationMultiBucketsAggregation.Bucketordering strategy to sort by a sub-aggregation.static classInternalOrder.CompoundOrderMultiBucketsAggregation.Bucketordering strategy to sort by multiple criteria.Methods in org.elasticsearch.search.aggregations that return BucketOrder Modifier and Type Method Description static BucketOrderBucketOrder. aggregation(String path, boolean asc)Creates a bucket ordering strategy which sorts buckets based on a single-valued sub-aggregation.static BucketOrderBucketOrder. aggregation(String path, String metricName, boolean asc)Creates a bucket ordering strategy which sorts buckets based on a metric from a multi-valued sub-aggregation.static BucketOrderBucketOrder. compound(List<BucketOrder> orders)Creates a bucket ordering strategy which sorts buckets based on multiple criteria.static BucketOrderBucketOrder. compound(BucketOrder... orders)Creates a bucket ordering strategy which sorts buckets based on multiple criteria.static BucketOrderBucketOrder. count(boolean asc)Creates a bucket ordering strategy that sorts buckets by their document counts (ascending or descending).static BucketOrderBucketOrder. key(boolean asc)Creates a bucket ordering strategy that sorts buckets by their keys (ascending or descending).static BucketOrderInternalOrder.Parser. parseOrderParam(XContentParser parser)Parse aBucketOrderfromXContent.static BucketOrderInternalOrder.Streams. readHistogramOrder(StreamInput in, boolean bwcOrderFlag)ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to read aBucketOrderfrom aStreamInput.static BucketOrderInternalOrder.Streams. readOrder(StreamInput in)Read aBucketOrderfrom aStreamInput.static BucketOrderInternalOrder. validate(BucketOrder order, Aggregator aggregator)Validate a bucket ordering strategy for anAggregator.Methods in org.elasticsearch.search.aggregations that return types with arguments of type BucketOrder Modifier and Type Method Description List<BucketOrder>InternalOrder.CompoundOrder. orderElements()Methods in org.elasticsearch.search.aggregations with parameters of type BucketOrder Modifier and Type Method Description static BucketOrderBucketOrder. compound(BucketOrder... orders)Creates a bucket ordering strategy which sorts buckets based on multiple criteria.static booleanInternalOrder. isCountDesc(BucketOrder order)Determine if the ordering strategy is sorting on bucket count descending.static booleanInternalOrder. isKeyAsc(BucketOrder order)Determine if the ordering strategy is sorting on bucket key ascending.static booleanInternalOrder. isKeyDesc(BucketOrder order)Determine if the ordering strategy is sorting on bucket key descending.static booleanInternalOrder. isKeyOrder(BucketOrder order)Determine if the ordering strategy is sorting on bucket key (ascending or descending).static BucketOrderInternalOrder. validate(BucketOrder order, Aggregator aggregator)Validate a bucket ordering strategy for anAggregator.static voidInternalOrder.Streams. writeHistogramOrder(BucketOrder order, StreamOutput out, boolean bwcOrderFlag)ONLY FOR HISTOGRAM ORDER: Backwards compatibility logic to write aBucketOrderto a stream.static voidInternalOrder.Streams. writeOrder(BucketOrder order, StreamOutput out)Write aBucketOrderto aStreamOutput.Method parameters in org.elasticsearch.search.aggregations with type arguments of type BucketOrder Modifier and Type Method Description static BucketOrderBucketOrder. compound(List<BucketOrder> orders)Creates a bucket ordering strategy which sorts buckets based on multiple criteria. -
Uses of BucketOrder in org.elasticsearch.search.aggregations.bucket.histogram
Methods in org.elasticsearch.search.aggregations.bucket.histogram that return BucketOrder Modifier and Type Method Description BucketOrderDateHistogramAggregationBuilder. order()Return the order to use to sort buckets of this histogram.BucketOrderHistogramAggregationBuilder. order()Return the order to use to sort buckets of this histogram.Methods in org.elasticsearch.search.aggregations.bucket.histogram with parameters of type BucketOrder Modifier and Type Method Description DateHistogramAggregationBuilderDateHistogramAggregationBuilder. order(BucketOrder order)Set a new order on this builder and return the builder so that calls can be chained.HistogramAggregationBuilderHistogramAggregationBuilder. order(BucketOrder order)Set a new order on this builder and return the builder so that calls can be chained.Method parameters in org.elasticsearch.search.aggregations.bucket.histogram with type arguments of type BucketOrder Modifier and Type Method Description DateHistogramAggregationBuilderDateHistogramAggregationBuilder. order(List<BucketOrder> orders)Sets the order in which the buckets will be returned.HistogramAggregationBuilderHistogramAggregationBuilder. order(List<BucketOrder> orders)Sets the order in which the buckets will be returned.Constructors in org.elasticsearch.search.aggregations.bucket.histogram with parameters of type BucketOrder Constructor Description DateHistogramAggregatorFactory(String name, ValuesSourceConfig<ValuesSource> config, long offset, BucketOrder order, boolean keyed, long minDocCount, Rounding rounding, Rounding shardRounding, ExtendedBounds extendedBounds, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metaData)HistogramAggregatorFactory(String name, ValuesSourceConfig<ValuesSource> config, double interval, double offset, BucketOrder order, boolean keyed, long minDocCount, double minBound, double maxBound, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metaData) -
Uses of BucketOrder in org.elasticsearch.search.aggregations.bucket.terms
Fields in org.elasticsearch.search.aggregations.bucket.terms declared as BucketOrder Modifier and Type Field Description protected BucketOrderInternalRareTerms. orderprotected BucketOrderInternalTerms. orderprotected BucketOrderTermsAggregator. orderMethods in org.elasticsearch.search.aggregations.bucket.terms that return BucketOrder Modifier and Type Method Description BucketOrderTermsAggregationBuilder. order()Gets the order in which the buckets will be returned.Methods in org.elasticsearch.search.aggregations.bucket.terms with parameters of type BucketOrder Modifier and Type Method Description TermsAggregationBuilderTermsAggregationBuilder. order(BucketOrder order)Set a new order on this builder and return the builder so that calls can be chained.Method parameters in org.elasticsearch.search.aggregations.bucket.terms with type arguments of type BucketOrder Modifier and Type Method Description TermsAggregationBuilderTermsAggregationBuilder. order(List<BucketOrder> orders)Sets the order in which the buckets will be returned.Constructors in org.elasticsearch.search.aggregations.bucket.terms with parameters of type BucketOrder Constructor Description DoubleTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket> buckets, long docCountError)GlobalOrdinalsStringTermsAggregator(String name, AggregatorFactories factories, ValuesSource.Bytes.WithOrdinals valuesSource, BucketOrder order, DocValueFormat format, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude.OrdinalsFilter includeExclude, SearchContext context, Aggregator parent, boolean remapGlobalOrds, Aggregator.SubAggCollectionMode collectionMode, boolean showTermDocCountError, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)InternalMappedTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<B> buckets, long docCountError)InternalRareTerms(String name, BucketOrder order, long maxDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)InternalTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)LongTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<LongTerms.Bucket> buckets, long docCountError)LongTermsAggregator(String name, AggregatorFactories factories, ValuesSource.Numeric valuesSource, DocValueFormat format, BucketOrder order, TermsAggregator.BucketCountThresholds bucketCountThresholds, SearchContext aggregationContext, Aggregator parent, Aggregator.SubAggCollectionMode subAggCollectMode, boolean showTermDocCountError, IncludeExclude.LongFilter longFilter, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)StringTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData, DocValueFormat format, int shardSize, boolean showTermDocCountError, long otherDocCount, List<StringTerms.Bucket> buckets, long docCountError)StringTermsAggregator(String name, AggregatorFactories factories, ValuesSource valuesSource, BucketOrder order, DocValueFormat format, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude.StringFilter includeExclude, SearchContext context, Aggregator parent, Aggregator.SubAggCollectionMode collectionMode, boolean showTermDocCountError, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)TermsAggregator(String name, AggregatorFactories factories, SearchContext context, Aggregator parent, TermsAggregator.BucketCountThresholds bucketCountThresholds, BucketOrder order, DocValueFormat format, Aggregator.SubAggCollectionMode collectMode, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)UnmappedTerms(String name, BucketOrder order, int requiredSize, long minDocCount, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
-