Class BucketKsAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder<BucketKsAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.BucketKsAggregation.Builder
- All Implemented Interfaces:
WithJson<BucketKsAggregation.Builder>,ObjectBuilder<BucketKsAggregation>
- Enclosing class:
- BucketKsAggregation
public static class BucketKsAggregation.Builder extends BucketPathAggregation.AbstractBuilder<BucketKsAggregation.Builder> implements ObjectBuilder<BucketKsAggregation>
Builder for
BucketKsAggregation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description BucketKsAggregation.Builderalternative(java.lang.String value, java.lang.String... values)A list of string values indicating which K-S test alternative to calculate.BucketKsAggregation.Builderalternative(java.util.List<java.lang.String> list)A list of string values indicating which K-S test alternative to calculate.BucketKsAggregationbuild()Builds aBucketKsAggregation.BucketKsAggregation.Builderfractions(java.lang.Double value, java.lang.Double... values)A list of doubles indicating the distribution of the samples with which to compare to thebuckets_pathresults.BucketKsAggregation.Builderfractions(java.util.List<java.lang.Double> list)A list of doubles indicating the distribution of the samples with which to compare to thebuckets_pathresults.BucketKsAggregation.BuildersamplingMethod(java.lang.String value)Indicates the sampling methodology when calculating the K-S test.protected BucketKsAggregation.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder
bucketsPath, bucketsPathMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, nameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alternative
A list of string values indicating which K-S test alternative to calculate. The valid values are: "greater", "less", "two_sided". This parameter is key for determining the K-S statistic used when calculating the K-S test. Default value is all possible alternative hypotheses.API name:
alternativeAdds all elements of
listtoalternative. -
alternative
public final BucketKsAggregation.Builder alternative(java.lang.String value, java.lang.String... values)A list of string values indicating which K-S test alternative to calculate. The valid values are: "greater", "less", "two_sided". This parameter is key for determining the K-S statistic used when calculating the K-S test. Default value is all possible alternative hypotheses.API name:
alternativeAdds one or more values to
alternative. -
fractions
A list of doubles indicating the distribution of the samples with which to compare to thebuckets_pathresults. In typical usage this is the overall proportion of documents in each bucket, which is compared with the actual document proportions in each bucket from the sibling aggregation counts. The default is to assume that overall documents are uniformly distributed on these buckets, which they would be if one used equal percentiles of a metric to define the bucket end points.API name:
fractionsAdds all elements of
listtofractions. -
fractions
public final BucketKsAggregation.Builder fractions(java.lang.Double value, java.lang.Double... values)A list of doubles indicating the distribution of the samples with which to compare to thebuckets_pathresults. In typical usage this is the overall proportion of documents in each bucket, which is compared with the actual document proportions in each bucket from the sibling aggregation counts. The default is to assume that overall documents are uniformly distributed on these buckets, which they would be if one used equal percentiles of a metric to define the bucket end points.API name:
fractionsAdds one or more values to
fractions. -
samplingMethod
Indicates the sampling methodology when calculating the K-S test. Note, this is sampling of the returned values. This determines the cumulative distribution function (CDF) points used comparing the two samples. Default isupper_tail, which emphasizes the upper end of the CDF points. Valid options are:upper_tail,uniform, andlower_tail.API name:
sampling_method -
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<BucketKsAggregation.Builder>
-
build
Builds aBucketKsAggregation.- Specified by:
buildin interfaceObjectBuilder<BucketKsAggregation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-